summaryrefslogtreecommitdiffstats
path: root/services/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE Implement cloneTvInputEventSungsoo Lim2015-01-051-1/+28
| | | | | | | | | memcpy() only copies the memory address value of device_info.audio_address, and it could be invalid when onDeviceAvailable() is called. Bug: 18819334 Change-Id: I827da8032a982abf3029874b8454ca79290bb0e0 (cherry picked from commit 898de6fd8c78d84ae1425e052b27a97ec6f230ad)
* DO NOT MERGE TIF: change TvInputHal events to run on its own threadWonsik Kim2015-01-051-38/+65
| | | | | | Bug: 18688119 Change-Id: Id60f82295cdbc45065be416c9828eae144b6799f (cherry picked from commit 57b37f610d33989f1b23e1b8d9e61fb177456364)
* CEC: Pass port ID for set_audio_return_channelJinsuk Kim2014-12-171-6/+6
| | | | | | | | | This CL passes a port ID when enabling/disabling ARC in case there are multiple HDMI ports that support the feature. Bug: 18781204 Change-Id: I632518132bf07c8ae6f0ff5135429ca719b596b2
* Show error dialogs over apps that dismiss keyguardCraig Mautner2014-11-111-6/+0
| | | | | | | | | | | | | | | | | | Error dialogs absorb all input to ensure that they are not missed. This can cause the screen to lock up if they are not displayed but are still absorbing touches. This was what was happening when there was an error dialog up at the same time as a phone call came in as in b/17648830. This fix recognizes when an app is dismissing the keyguard and forces any error dialogs to be shown over such an app. This also removes the private flags from the input system as they are no longer needed. Fixes bug 17648830. Change-Id: I5c98b8265a1448b445fdb2f745fc78892f8656a4
* Fix reference leak in GPS measurement JNI layer.destradaa2014-10-311-0/+1
| | | | | | | b/16727892 b/17075171 Change-Id: I5f41c6db114078b927e56a7614fa7c09a288e2b2
* TIF: fix wrong config comparison & confusing method nameWonsik Kim2014-10-221-6/+6
| | | | | | | | | | TvStreamConfig should do deep comparison in TvInputHardwareManager where the object gets created from binder calls. In addition to this fix, modify [aA]ddStream to [aA]ddOrUpdateStream so that the method name better reflects what it does. Bug: 18027719 Change-Id: I43fa668f91cb9433beee97ee31b4b1f58f21bfcf
* Merge "USB string descriptors are not UTF8, so it is not safe to treat them ↵Mike Lockwood2014-09-191-5/+5
|\ | | | | | | as such." into lmp-dev
| * USB string descriptors are not UTF8, so it is not safe to treat them as such.Mike Lockwood2014-09-081-5/+5
| | | | | | | | | | | | | | Add AndroidRuntime::NewStringLatin1() to convert non-UTF8 strings to Java strings. Bug: 17427781 Change-Id: I7df1d4e94a7beebc8b1a74c0c0a163b794025ae8
* | Merge "CEC: Stub MHL Controller" into lmp-devJinsuk Kim2014-09-102-3/+0
|\ \
| * | CEC: Stub MHL ControllerJinsuk Kim2014-09-092-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | Replace MHL Controller with a stub impl Bug: 17259897 Change-Id: Id57bac363441f72b3da3f30d31c68c6d3b502237
* | | Remove unused variables from UsbHostManager.Michael Wright2014-09-081-3/+0
| |/ |/| | | | | Change-Id: I68067b69de077667482633cc6ecd97ee94ecb699
* | Merge "Allow for event dispatching when in non-interactive states." into lmp-devMichael Wright2014-09-051-8/+12
|\ \ | |/ |/|
| * Allow for event dispatching when in non-interactive states.Michael Wright2014-09-041-8/+12
| | | | | | | | | | | | | | | | | | We need to allow for event dispatching in non-interactive states so that we can enable a richer set of interactions when a device is dozing (i.e. is in a low power state with an Always-on-Display). Bug: 17167296 Change-Id: I8ae0f544a8106cb91ff38c2309b8b57cbe2f2c72
* | Reload GPS configuration after carrier info is available.Tsuwei Chen2014-08-301-38/+72
|/ | | | Bug: 17110478 Change-Id: I1ecb71c4ca661df3dfeaea1622d73caeacb1350e
* Remove system_server classes from the boot image.Narayan Kamath2014-08-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | We set the system_server classpath in the environment (like we do with BOOTCLASSPATH). After the zygote forks the system_server, we dexopt the classpath (if needed) and then launch the system server with the correct PathClassLoader. This needed several small / medium refactorings : - The logic for connecting to installd is now in a separate class and belongs in the system_server. - SystemService / SystemServiceManager have now moved to classes.jar. They are only used from there, and since they use Class.forName, we want them to be loaded by the system_server classloader, and not the bootclassloader. - BootReceiver now moves to frameworks.jar, because it is used by ActivityThread and friends. bug: 16555230 Change-Id: Ic84f0b2baf611eeedff6d123cb7191bb0259e600
* Merge "Update FlpHardwareProvider native layer, to stop raising ↵destradaa2014-08-121-1/+6
|\ | | | | | | FatalErrors." into lmp-dev
| * Update FlpHardwareProvider native layer, to stop raising FatalErrors.destradaa2014-08-121-1/+6
| | | | | | | | | | | | b/16800814 Change-Id: Ic619f37c02c7e4dddc4ef06369f8730cbd66e6bd
* | Add additional logging around AGPS IP Address handling.destradaa2014-08-121-0/+21
|/ | | | | | | | | The additional logging is expected to help troubleshoot and prevent the issue tracked by the following bugs: b/16875580 b/16961654 Change-Id: Ibee7fe0774efa3db77ab53af96c128ced186b40e
* TIF: fix JTvInputHal::removeStream issueWonsik Kim2014-08-051-11/+8
| | | | Bug: 16803334 Change-Id: I3f92a12479cdded7a3bf572cc59e68367a0797ad
* TIF: fix TvInputHal bug for multiple devicesWonsik Kim2014-07-311-0/+2
| | | | | | | | In addition, add toString() method to TvStreamConfig for easier debugging. Bug: 16561829, Bug: 16666251 Change-Id: Ic192aef30f4d193b73bac7bc93a1563aa9af4377
* Add support for sources in Geofencing APIs.destradaa2014-07-301-1/+3
| | | | | | | | | | Support setting the source when adding geofences. b/14117199 Surface the source when FLP geofence changes state. b/14119200 Change-Id: I50dc40a9caee400594e1778c98e284e0db0d5e66
* Allow VPNs to add/remove link addresses dynamically.Sreeram Ramachandran2014-07-292-1/+51
| | | | | Bug: 15409819 Change-Id: If91fc6891d7ce04060362c6cde8c57462394c4e8
* Remove DozeHardware since it will not be used.Jeff Brown2014-07-263-103/+0
| | | | | Bug: 16516536 Change-Id: I14597d3c9470c94e3bc5b8cff500d2fe6b2fd977
* MHL controller for subcommand receptionJinsuk Kim2014-07-261-2/+2
| | | | | | | | Implement HdmiMhlController command reception part. Bug: 16215362 Change-Id: Iabf46dfaa762fae8c537e4d4ebd3469388a6b7c3
* Add a frame capture API of TV inputTerry Heo2014-07-241-0/+12
| | | | | | | - Added new permission CAPTURE_TV_INPUT Bug: 15736756 Change-Id: I2ae8b2e3f5b1ad1d525854ed89ab2043cf66acbe
* Expose Gps Navigation Messages in the platform.destradaa2014-07-231-3/+124
| | | | | | b/16405976 Change-Id: Ic982ea2467d116585780c20c2fa7e974e50f8345
* Add uncertainty for GPS received TOW field.destradaa2014-07-221-0/+9
| | | | | | b/16463499 Change-Id: I5dde8a2737d9345eb7f77edc64ab7286254a65e4
* Update GPS HAL raw measurements support.destradaa2014-07-211-76/+60
| | | | | | | | | | | | | Align the GPS framework with the GPS HAL b/16374800 Remove localTime field from API b/16241708 Update Property containers for measurements to use bit masks b/16238371 Change-Id: Id4db16c3153d0020bf2edb5a67f59353662762d0
* Permit settings to "wipe" the persistent partitionAndres Morales2014-07-171-2/+49
| | | | | | | | | | | | One of the requirements is that when the user does a factory reset through settings, all data on the persistent partition should be cleared. This adds one last API method that allows settings to wipe the partition. Bug: 14288780 Change-Id: Ib87ee741d1e5195814516ae1d66eb7c4cf754dcf
* Update location framework to accept raw data from GPS HAL.destradaa2014-07-111-20/+486
| | | | Change-Id: Ib4feca004b53fa89dcece4299974ab08913455a0
* Update HdmiControlService JNI to the change in HAL definitionJinsuk Kim2014-07-111-3/+3
| | | | Change-Id: Iab235785c4d0242ab5845d1f8ad62d78770ff9c4
* Convert Vpn from NetworkStateTracker to NetworkAgent.Paul Jensen2014-07-101-124/+0
| | | | | | | | | | | | This eliminates the need for the ConnectivityService.VpnCallback class. This requires shifting VPNs to the new "network" netd API. VpnService.protect() is modified to no longer go through ConnectivityService. NetworkCapabilities is extended to add a transport type for VPNs and a capability requiring a non-VPN (so the default NetworkRequest isn't satisfied by a VPN). bug:15409918 Change-Id: Ic4498f1961582208add6f375ad16ce376ee9eb95
* Service for reading and writing blocks to PST partitionAndres Morales2014-07-093-0/+67
| | | | | | | | | | | | | | | Permits apps with permission android.permission.ACCESS_PERSISTENT_PARTITION to obtain a read and write data blocks to the PST partition. Only one block ever exists at one time in PST. When a client writes another block, the previous one is overwritten. This permits storing a block of data that will live across factory resets. Change-Id: I8f23df3531f3c0512118eb4b7530eff8a8e81c83
* Merge "Implement support for buffer producer profile"Wonsik Kim2014-07-021-25/+250
|\
| * Implement support for buffer producer profileWonsik Kim2014-07-081-25/+250
| | | | | | | | | | Bug: 15177117 Change-Id: I7776a8b2959281f10cba742ab75f15f80f6feecf
* | Add port number to hot plug event handler.Jungshik Jang2014-07-081-2/+4
|/ | | | | | | | This is to remove a TODO about adding port number to jni interface. Bug: 15844074 Change-Id: I4dba0879527035a4cabad6cc80e359e6c1fd39b0
* kNative_8888_SkColorType is now kN32_SkColorTypeMike Reed2014-07-071-1/+1
| | | | Change-Id: I13421a21de611203c62c1c1c36570a8cc803907b
* TIF: Let TvInputHal handle multiple streamsWonsik Kim2014-07-071-34/+66
| | | | | Bug: 15579918 Change-Id: Iad972c36d675fb99b5950bcecf5925e660272cb4
* Remove the usage of TX_STATUS in HdmiControlServiceJinsuk Kim2014-07-031-6/+0
| | | | | | Reflects the change to come in CEC HAL Change-Id: I3a64e19bbdd8067855911ef11653fe64049b8880
* Fix native calls to null pointerWonsik Kim2014-06-231-1/+0
| | | | | | | | | Since DEVICE_AVAILABLE event fires right after initialization, it could happen before TvInputHal.mPtr is set, which causes calls to null pointer. Fix the bug by allowing TvInputHal to wait for mPtr to be set before calling native methods. Change-Id: Id07f15130beb69f77c16bf3c735285c31ae4a3a4
* stop using (deprecated) SkBitmap::ConfigMike Reed2014-06-201-2/+1
| | | | Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
* TvInputHardware: Add HDMI port IDWonsik Kim2014-06-191-0/+9
| | | | | Bug: 15570939 Change-Id: I957804124fa5e417de8c98c6d41332609097d995
* TvInputHardware: Integration with audio framework changesWonsik Kim2014-06-191-4/+66
| | | | | | | | TvInputHardwareManager detects AudioPort specified by tv_input and connect source to sink via AudioManager.createAudioPatch(). Bug: 15177175 Change-Id: I2252eb0df2d8287889ed28cc7d76dc1a659fd08b
* Fixed a wrong path to HdmiPortInfo classJinsuk Kim2014-06-131-2/+2
| | | | | | This fixes a JNI error for HdmiCecController Change-Id: I8ce987dfa3126ecffd455a964c01d27fb9aa01eb
* RoutingControlAction for HdmiControlServiceJinsuk Kim2014-06-121-1/+38
| | | | | | | | Routing control action is initiated in various cases, such as manual TV input port switching, routing change of a different CEC switch, and so on. The action determines the device to be a new active source. Change-Id: I1efcd6ff1919dd94d6fa0e0ffa6e430c48d4e9c6
* DeviceSelectAction for HdmiControlServiceJinsuk Kim2014-06-121-34/+21
| | | | | | | DeviceSelectAction is the main handler for the API deviceSelect() which is used to choose a new active source among logical devices on the bus. Change-Id: I77582a1f873423fc316d89f67a89a867461a76b2
* Move message handling logic to local device instead of service.Jungshik Jang2014-06-121-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | Local device is in charge of handling incoming messages and for some messages such as <set menum language> or <report physical address> each device has slightly different behavior. Instread of checking destination address and local device status from service, this change leaves it to each local device. Note that some messages are still left on service and will be refactored in the following changes. Along with this, following changes are included. 1. add missing jin interfaces set_option set_audio_return_channel is_connected Note that get_port_info is under review of jinsuk's change 2. if tv device receives <Report Physical Address>, starts NewDeviceAction. 3. add constants variables related to new interfaces. 4. add two helper methods for physical address and vendor id handling Change-Id: I9c9d04744bc09fbf38431ecfa6e77097b0618a37
* IPv6 support for GPS HAL.destradaa2014-06-101-13/+105
| | | | Change-Id: Iacaf3ab86009975ba07e1a13dbe539cf47c5a6f7
* merge 4ce22057, regen api/current.txtEd Heyl2014-06-093-760/+0
|\ | | | | | | Change-Id: I39186b5c4d41753c729c5d1ee7ee96b03a45c514
| * Remove HdmiCecServiceJinsuk Kim2014-06-093-760/+0
| | | | | | | | | | | | | | The service is replaced with HdmiControlService. Removing all the related classes and the initialization of the service. Change-Id: Ic7baaddffb9873613ddd1096e874f226da983939