summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware/hdmi
Commit message (Collapse)AuthorAgeFilesLines
* CEC: API setSystemAudioModeJinsuk Kim2015-03-301-3/+18
| | | | | | | | | This CL adds a system API to set system audio mode. Previously not available to have the settings app use aidl directly. Now added since other related APIs like setSystemAudioVolume are already in. Change-Id: I51f4f992f66f97a094cad5788548c259ac8bf10f
* CEC: Expose API sendStandby()Jinsuk Kim2015-03-202-0/+27
| | | | | | | | Allows playback/TV device to use the API to turn off TV/other device that accepts the command. Bug: 19802768 Change-Id: I6440626c08efb1473bea5ab577e571d0bb92d4a1
* CEC: Do null/empty check against the parameter for checkRecordSource()Jinsuk Kim2015-01-291-0/+2
| | | | | | | This prevents out-of-bound exception from occurring. Bug: 19188370 Change-Id: I051dccf7760cb542ea3dc9b0adc9625fa2ad8b1f
* CEC: Add logic to return to internal sourceJinsuk Kim2015-01-221-1/+46
| | | | | | | | | | | | | | | | This CL introduces a logic that, upon receiving <Inactive Source> from the active source or a corresponding MHL subcommand, lets the service return to one of internal inputs. Introduced to handle it is a new type for HdmiDevice (INACTIVE) that will be passed to input change listeners. The callback is expected to transform to other mechanism such as intent, to let TV app to decide which input to switch to, which will be one of non-HDMI input that was viewed previously. Bug: 19008579 Change-Id: I1922f4cd20e9220411061bb9d9fbe5fbc5676d48
* Mark TimeUnit as @SystemApiJinsuk Kim2015-01-211-1/+6
| | | | | Bug: 18960664 Change-Id: If2c1259b312138bad9416b10f14a8af0f1a222f4
* CEC: Let MHL device be of type 'source'Jinsuk Kim2015-01-051-3/+9
| | | | | | | | | MHL devices should be of type source that can stream AV contents to the connected TV. This should be supported by the API HdmiDeviceInfo.isSourceType(). Bug: 18897172 Change-Id: I7dcbd7773127bf26797c204504a12c3e2ebbd83b
* CEC: make it sure to send vendor commands when changing a setting.Yuncheol Heo2014-12-021-1/+1
| | | | | | | | | - Remove 'oneway' from IHdmiVendorCommandListener. - Add flush() method to HdmiCecController. - Use IoThread for HdmiCecController. Bug: 18495592 Change-Id: I497f7b49e94dd4402058ecc89cb5b7a3d58bf1e1
* CEC: Fix a bug in HdmiPortInfo.createFromParcel().Yuncheol Heo2014-11-141-1/+12
| | | | | | | - Added equals() for the testing. Bug: 18376178 Change-Id: Icc7d5fe78b3132bf51754fc3bb0d5a40e0d3b20a
* Add recorder address to all recording listerner apis.Jungshik Jang2014-11-053-14/+26
| | | | | | | It enables to recognize which recorder reports record status. Bug: 18248734 Change-Id: I248ad77212ce584dc16863cbe00639e7ac3c184a
* CEC: Fix apilint errors.Yuncheol Heo2014-10-2410-98/+126
| | | | | | | | | | | - Change 'protected' to 'package private'. - Change '@hide' to '{@hide}' for methods which should be still hidden for linting. - Rename addVendorCommandListener to setVendorCommandListener and make sure to be called once. - Fix the implementation of removeHotplugEventListener(). Bug: 18063669 Change-Id: I5c032736f17bab9518f21596f7adeac2f88ba4c1
* CEC: Fix JavaDoc errors.Yuncheol Heo2014-10-241-1/+1
| | | | | | | - Removed the link tag to the non-public objects. Bug: 18063758 Change-Id: I17c79510c184df8a62cde9a6a1d18109c299c15d
* CEC: Add a callback for vendor when HDMI control setting is changed.Yuncheol Heo2014-10-203-5/+37
| | | | | | | | | - removed unregisterContentObserver() to reactivate the service later. - added the parameter destAddress to onReceived() callback to distinguish whether the message is broadcast or not. Bug: 17962624 Change-Id: I552d14661583f63bb66b07866092f972b259b15a
* CEC: add getDeviceList()Jinsuk Kim2014-10-202-0/+19
| | | | | | | | | | | | | | | | Returns the list of all the connected CEC device information. This is different from getInputDevices() which returns devices of source type only. For this, turned the local device address list to unmodifiable so that it can be used by any threads. Now respects the device type info passed through <Report Physical Address> rather than always defaulting to the one from HdmiUtil.getTypeFromAddress(). This ensures future compatibility when a device of reserved logical address comes with a specific type. Bug: 18046603 Change-Id: I5f7d5e31706efba1ad5dcf4bcfd4ffc918d1d940
* Change visibility of RecordSource into public.Jungshik Jang2014-10-021-1/+3
| | | | | | | | RecordSource should be accessible outside of android.hardware.hdmi. Bug: 17775014 Change-Id: I4c8879dc1504aad9672555c17d5b7f6643ed5188
* CEC: Bug fixes for vendor-specific command handlingJinsuk Kim2014-09-121-0/+1
| | | | | | | | | | - Add sendStandby() - Respond with <Feature Abort>[INCORRECT_MODE] when the listener is not ready Bug: 17379243 Bug: 17358887 Change-Id: I26a4157a70f11206978763fbbe69e4190e3e1d5c
* Replace the MHL register name 'scratchpad' with 'vendor'Jinsuk Kim2014-09-123-28/+27
| | | | | Bug: 17479050 Change-Id: If6fe2949d17ad2d407df5b797c1915eb0e9bf421
* CEC: Revamp volume control action.Jungshik Jang2014-09-051-0/+19
| | | | | | | | | | | | | Here is a list of changes 1. Change volume control into event base not level base 2. Hide volume ui if volume change is triggered by CEC 3. Report volume change triggered by CEC in OSD message 4. Revamp HdmiLogger so that normal class uses static method only. 5. Apply format message to HdmiLogger's helper methods. Bug: 17367215 Change-Id: I9f3cd41f7c66f76919059b463df956ed5176b054
* CEC: Implement dump() of HdmiControlServiceTerry Heo2014-08-281-1/+1
| | | | | | | In addition, use hexadecimal address representation in HdmiPortInfo.toString() Bug: 17310007 Change-Id: Iaba8f718f86a18a23b50f983053c7589dcdcfaf8
* Fix several bugs in HdmiControlService.Jungshik Jang2014-08-261-0/+6
| | | | | | | | | | | 1. Fix HdmniLogger null pointer exception 2. Should check arc enabled port for arc requests 3. Disallow ARC action coming from indirect AVR device. 4. Check original opcode of feature action 5. Add bitmasking to all parameters of cec message. Bug: 17243701, Bug: 17238394, Bug: 17241401 Change-Id: Iff0da78b0de9a29fb00e683c261528e0baea66af
* Implement interfaces for MHL scratchpad commandJungshik Jang2014-08-224-41/+136
| | | | | | | | | | | | 1. Add sendScratchpadCommand to IHdmiControlService interface, which is used to send scratchpad command. 2. Add IHdmiMhlScratchpadCommandListener to handle incoming MHL scratchpad command. Bug: 17146522 Change-Id: I8e8e743dc08a18c80867be470997ce79d3292c15
* CEC: Hook up device select API to MHL device RAPJinsuk Kim2014-08-201-4/+6
| | | | | | | | This lets the input selection on UI perform MHL RAP signalling, and CEC routing control. Bug: 17141884 Change-Id: Ic1605175c5779a9a3c43df954baf9fdb6f154d36
* CEC: Invoke events listener upon MHL device state changeJinsuk Kim2014-08-191-1/+1
| | | | | | | | | With this change, mobile devices state changes are propagated through TIF to UI, hence the input pickers shows the mobile devices as expected. Bug: 16986744 Change-Id: Id633207acf4f814f57d43cc1de5f8cb88ac23ad6
* CEC: Replace the usage of logical address with id for HdmiDeviceInfoJinsuk Kim2014-08-142-18/+67
| | | | | | | | | Introduced 'id' of HdmiDeviceInfo to replace the direct use of logical address as id. This accomodates the identification of MHL device with ease. Also updated TIF to use id instead of logical address. Bug: 16986744 Change-Id: Ifa827fb5e5fcf1d2f612f0845accbfe5c03734aa
* Move input change event handling out of TVInputManagerJinsuk Kim2014-08-121-0/+37
| | | | | | | | | | | | | | | | HDMI input change event should be handled best in TIS implementation of HDMI input since the input change request from TV/other device needs to be properly coordinated. This requires the listener be moved the input service. Provided an interface in HdmiTvClient for the input service to access the API through getSystemService(Context.HDMI_CONTROL_SERVICE). Conflicts: services/core/java/com/android/server/tv/TvInputHardwareManager.java Bug: 15570939 Change-Id: Ie2ad10d77907de3d4501f9c892ca553b75365467
* Hook up device power status change to TIFJungshik Jang2014-08-112-2/+11
| | | | | | | | Instead of introducing new api update existing IDeviceEventListener Bug: 16445063 Change-Id: I93bfc736a06a78e83c95877a53f4f241b51ed9c0
* CEC: Content observer to handle TV Setting updateJinsuk Kim2014-08-082-51/+0
| | | | | | | | | Replaced the API setOption with content observer to read/get informed of the CEC settings. Bug: 16855247 Change-Id: Ieff2399bbfe83f05af4448e7337f91ef40d1e24d
* Rename HdmiCecDeviceInfo into HdmiDeviceInfo.Jungshik Jang2014-08-0710-300/+440
| | | | | | | | | In order to include mhl device info to device info, rename HdmiCecDeviceInfo into HdmiDeviceInfo. BUG: 16215362 Change-Id: I30fb0216061fbbdd6fdc1b82c63af83f1b678597
* Prevent hot plug detection action from multiple device pollingJungshik Jang2014-08-071-1/+1
| | | | | | | Along with this removed unused code and wrong references in java doc. Change-Id: I8b2fd8065f582f60cde5ada0e1669515b6a60f3f
* More tweaks for recordingJungshik Jang2014-08-051-2/+3
| | | | | | | 1. Mask TimerClearedStatus message result. 2. Use proper mask for media info. Change-Id: I7ed6f6839c333460a7bef5e5a84af2a9a34c6d97
* Refine recode apis.Jungshik Jang2014-08-052-14/+18
| | | | | | | | | 1. add return type, int, to toByteArray method so that caller can know how many of bytes it consumes. 2. put final keyword Change-Id: Ia942016fa35ecb04b49be51170739101644c3e31
* Merge "Fix invalid annotation, @throw" into lmp-devJungshik Jang2014-08-051-4/+4
|\
| * Fix invalid annotation, @throwJungshik Jang2014-08-051-4/+4
| | | | | | | | Change-Id: Id22635414567a8b525032df792f2309102d7ae62
* | Plumbing for HdmiTvClient and HdmiControlServiceJinsuk Kim2014-08-053-15/+68
|/ | | | | | | Added a few more methods in HdmiTvClient to use the API provided by HdmiControlService Change-Id: Ib506699b9661b99cefc837b96ac64347a4e9420c
* Implement clear timer.Jungshik Jang2014-08-054-17/+285
| | | | | | | | | | | This change implements clear timer, which sends <Clear xxx Timer> to recorder, and reponse of it, <Timer Cleared Status>. Along with it, add result parser for [Timer Status Data]. Bug: 16160962 Change-Id: I1f48ec055aa93dc836156525de8b7ef921aad8b5
* Fix several bugs on timer recoder code.Jungshik Jang2014-08-041-11/+11
| | | | Change-Id: I331d5c61fa11513584c926fdeea55a5d7adbbad9
* System API HdmiControlService.getActiveSourceJinsuk Kim2014-08-012-0/+13
| | | | | | | Added getActiveSource to provide Tv Input Service with the information on HDMI active source/routing path. TIS side will be handled separately. Change-Id: I3d7c12a6c9da9f96a7f22ba1f66ac2559928858d
* Send TV app the intent for the new active sourceJinsuk Kim2014-07-291-7/+43
| | | | | | | | | | When signalled by an external CEC device about to become a new active source, TIF(TvInputHardwareManager) sends an intent for TV app to tune to the input mapped to the device. For non-CEC devices or MHL device the device info comes with port ID only, which should be used to find the right input. Change-Id: I71c8454fead037d880ee440b0a8d64dd361ed558
* Add MHL getPortInfoJinsuk Kim2014-07-281-0/+11
| | | | | | | Allows MHL support flag to be put into port information Bug: 16215362 Change-Id: I1873c8e60b02f47a97509576fc40d57efb056817
* Merge "Add portID information in HdmiCecDeviceInfo" into lmp-devJinsuk Kim2014-07-241-3/+17
|\
| * Add portID information in HdmiCecDeviceInfoJinsuk Kim2014-07-251-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | This change makes it convenient to get the HDMI port ID from the device info without having to look it up through a separate HdmiPortInfo, which happens in many places. Also removed port information lookup loop by introducing two maps variable in Control Service: port path ->port ID, and port ID -> port info. Bug: 16547583 Change-Id: Ibfff722a16b626230766058efcc819e9c8ca0663
* | Replace osd message for record status with IHdmiRecordCallback.Jungshik Jang2014-07-258-90/+214
|/ | | | | | | | | | | | | | | Add new interface, IHdmiRecordCallback, in order to handle result of all recording features, One Touch Record and Timer Recording. HdmiRecordCallback is clientside interface which uses RecordSource as return of getOneTouchRecordSource, instead of raw byte array. Along with it, add TimerRecordingAction. Bug: 16160962 Change-Id: If0ed7abc5f45b020b39555cac585becbe8ee7da4
* Implement OneTouchRecordAction and stop one touch record.Jungshik Jang2014-07-244-8/+155
| | | | | | | | | | In addition to it, add api for clearTimerRecording as well. Separately, I will replace logic for notifying message with callback interface. Bug: 16160962 Change-Id: I2368f7c697eb44ed4542c0ec4412c63a6ae41a5c
* Add @hide and @SystemApi to HdmiTimerRecordSourcesJungshik Jang2014-07-241-0/+8
| | | | Change-Id: I3938b26af4ca2fe8d70224bd7bac30ba627d6d44
* Fix buildJae Seo2014-07-231-0/+4
| | | | Change-Id: Icc1bf76ef748b10cc7ea745bc37c4e7bc0d7ff43
* Fix unknown tag @throwJungshik Jang2014-07-231-3/+3
| | | | Change-Id: I8c017a83175c447d02d8eb28f571e31921ae77c6
* Add startTimerRecording api to IHdmiControlService.Jungshik Jang2014-07-233-11/+454
| | | | | | | | | | | | | In order to support timer recording we need separate API, startTimerRecording. Also added HdmiTimerRecordingSources which is used to help creating timer recording information such as timing information and program information. Besides, in order to distinguish one touch record and timer recording, rename startRecord with startOneTouchRecording. Bug: 16160962 Change-Id: I8c3d4034665a2f84ddf07135aee73e17ac17cd82
* Define a constant for HDMI-CEC logical address used for internal sourceJinsuk Kim2014-07-221-1/+7
| | | | Change-Id: Ic7d6a5378361d7ed8ae4b635312b956b063fc95a
* Add two apis for one touch record.Jungshik Jang2014-07-214-2/+838
| | | | | | | | | | | | | | | | | | This change introduces new two apis for one touch record. 1. setRecordRequestListener It's used to get notified when a recorder device initiates "one touch record". As return of callback, client should generate "record source" and return it. 2. startRecord It's used to initiate "one touch record" from Tv. Along with this, add HdmiRecordSources which is a helper class assisting buidling byte array form from the given record source information. Bug: 16160962 Change-Id: I403d37b752c9b7f799c6d8188a071ef420fe8ac2
* Support HdmiControlService.sendKeyEvent for both TV/playback deviceJinsuk Kim2014-07-112-1/+29
| | | | | | | | Added another parameter deviceType for HdmiControlService to run the specified local device for sendKeyEvent. Bug: 15844076 Change-Id: I598ef320ae94bba0ace38701ae0ca12fd0625559
* Add HdmiCecMessageValidator to verify the incoming messages.Yuncheol Heo2014-07-101-0/+6
| | | | | | | - Remove all param's length-check-logics in the package. Bug: 16051295, Bug: 16117332, Bug: 15841545 Change-Id: If48ad9731f4f4613fd22aa3d9ada7ba3142bc999