summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* DO NOT MERGE: Start Device Discovery after logical address allocation.Jungshik Jang2014-06-026-16/+96
| | | | | | | | | | Usually TV initiates Device Discovery sequence after logical address allocation of local devices. For that added new callback interface to AddressAllocationCallback to HdmiCecDevice. Along with this, add onAddressAllocated to HdmiLocalDevice so that start sending local device information once logical allocation is done. Change-Id: I4cdc5dd7770674a17a0f23c383a6c1ca221e3104
* DO NOT MERGE: Stop publishing HdmiCecService, start publishing ↵Jinsuk Kim2014-06-023-16/+3
| | | | | | | | | | | | | | HdmiControlService HdmiCecService will soon be deprecated and replaced with HdmiControlService. Stopped publishing the service, and turned the corresponding manager to stub so that it will do nothing but print out a warning msg instead. Will help the app transition to the new service in the meantime. Once the migration is finished, will gut out all the HdmiCecService/ HdmiCecManager stuff. Change-Id: Ic34a69c4fb99f4e5a2c8323538195204ab16a545
* DO NOT MERGE: Do not reply with <Feature Abort> to CEC Broadcast messageJinsuk Kim2014-06-021-8/+8
| | | | | | | | | Broadcast message is not targeted to a specific device but for announcement. Individual reponse with <Feature Abort> is neither necessary nor useful. Changed to send the message back only for direct messages. Change-Id: I927aa8e58a9868e158ed945c753492207e7c97f6
* DO NOT MERGE: Dispatch incoming CEC messages to feature actionsJinsuk Kim2014-06-021-2/+11
| | | | | | | This CL dispatches incoming CEC messages to feature actions that the service manages. Change-Id: I9221d6a25648846327d00fe5404aaf1e8ec786ce
* DO NOT MERGE: Implement device discovery sequence.Jungshik Jang2014-06-024-6/+434
| | | | | | | | | | | | | | | | When device discover is launched it goes through the following step 1. clear all existing devices 2. send <Polling Message> of all logical addresses excecpt one of local device 3. Once got all allocated logical addresses, gather physical address of them 4. Once got physical address of them, gather display name of them 5. Once got display names, gather vendor id of them 5. Once got vendor id of them, register all gathered info to internal device info list. Change-Id: Ic9aca3b15d88ac7650f10b6d0bfa9c97923975e8
* DO NOT MERGE: Fix a couple of bugs in CEC servicesJinsuk Kim2014-06-021-1/+2
| | | | | | | - Correct conversion for byte to int for cec opcode - Use the right Handler.obtainMessage() to pass an integer variable Change-Id: Ie3e86225f1702decce454aeb197911a371f51c17
* DO NOT MERGE: Add cec message handler to hdmi cec jni implementationJungshik Jang2014-06-023-81/+169
| | | | | | | | | | | Notification for incoming cec message can be issued from any thread but jni can call java method in the thread that jni knows like service thread. So this change delegates incoming message to jni-friendly thread, service thread by exploit looper of service thread. Change-Id: If3b141d917df3e209912af1778eb509777199969
* DO NOT MERGE: Fix a bug using wrong addresses for CEC logical address allocationJinsuk Kim2014-06-021-1/+1
| | | | Change-Id: I41da586c16dca4f325d147bb3abe5d4e09f7b91c
* DO NOT MERGE: Hook up the CEC playback API to service internal logic.Jinsuk Kim2014-06-022-17/+105
| | | | | | | | This change enables CEC playback API (oneTouchPlay, queryDisplayStatus). Also updated local device list type to SparseArray to make it easy to get one based on device type. Change-Id: I6f88b2dac2d873c493a90411549a4e5719a5e460
* DO NOT MERGE: Add HdmiCecDeviceInfo to HdmiCecLocalDeviceJungshik Jang2014-06-022-3/+27
| | | | | | | As HdmiCecLoclaDevice is a wrapper for local devices it should include cec device info. Change-Id: I479665b2aa6bd56470b79dbbb7fb1015f6356090
* DO NOT MERGE: Implement <Polling Message>.Jungshik Jang2014-06-022-20/+140
| | | | | | | | | | | | | | | | When Device Discovery is launched or Hot-plug detection is launched, the first step of it is to send <Polling Message> to all remote devices. According to type of feature, it may have different retry count for sending <Polling Message>. As <Polling Message> to all devices should be serialized operation it runs on io thread as single operation. Along with this, added assertRunOnIoThread and assertRunOnServiceThread used to make sure that all methods are called in proper thread. Change-Id: I2d2df0216867c188e99ba24b216ec73f3396eeae
* DO NOT MERGE: Add the constants for the callback result of SendCecCommand().Yuncheol Heo2014-06-025-18/+16
| | | | | | | | - Move the send failure warning messages into HdmiCecController.sendCommand() from each Actions. - Stringfy with more detail messages for some opcodes. Change-Id: Ib7ce24dd2a1f290e6c3a0b26738772ef1d4a9630
* DO NOT MERGE: CEC Initialization per device typeJinsuk Kim2014-06-024-53/+199
| | | | | | | | | CEC initialization may vary from device type to type. Changed logical address map to HdmiCecLocalDevice map to handle it. These per-type classes for local device will be extended also to take care of incoming CEC commands that should require different action based on device type. Change-Id: Ia59a464607b14e942fcf83e63aa1d6310ca6a575
* DO NOT MERGE: Add SendMessageCallback to Hdmi control service.Jungshik Jang2014-06-026-165/+184
| | | | | | | | | | | As we have separate IO thread, we should have async callback mechanism to get result of send request. For that, I added SendMessageCallback interface to HdmiControl Service Along with this, replace message-based IO handling with post Runnable based one for consistency Change-Id: I61cf5b751b4f2af3b34956060869f3512f161d11
* Merge "Add a path for generic event from a session to an application in Tv ↵Dongwon Kang2014-06-011-0/+36
|\ | | | | | | Input Framework." into lmp-preview-dev
| * Add a path for generic event from a session to an application in Tv Input ↵Youngsang Cho2014-05-291-0/+36
| | | | | | | | | | | | | | | | | | Framework. Plus, Video size changed event is also added. Bug: 14126559 Change-Id: I04c553481fbaf8d92adbcc34f3c9d26acc87b361
* | Merge "Fade scrim in unlock animation." into lmp-preview-devJorim Jaggi2014-05-311-2/+4
|\ \
| * | Fade scrim in unlock animation.Jorim Jaggi2014-05-311-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also introduces a startTime which gets sent from window manager to SystemUI, which tells when the animation should start, to allow for a more synchronized animation with fading out the scrim and fading in the activity behind. Bug: 15163546 Change-Id: I16212b1ef9eb76f1f98734da1d14fc5b7e626937
* | | Merge "Per-app media directories on external storage." into lmp-preview-devJeff Sharkey2014-05-301-0/+12
|\ \ \ | |/ / |/| |
| * | Per-app media directories on external storage.Jeff Sharkey2014-05-301-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change defines per-app directories on external storage that will be scanned and included in MediaStore. This gives apps a way to write content to secondary shared storage in a way that can easily be surfaced to other apps. Bug: 14382377 Change-Id: I4cb367c870509e76f0c2c598f01e2f699780030a
* | | Merge changes I16ad392e,Ie26a7d01 into lmp-preview-devRoboErik2014-05-302-24/+26
|\ \ \ | |/ / |/| | | | | | | | | | | * changes: Refactor transport controls APIs API changes to sessions
| * | API changes to sessionsRoboErik2014-05-292-24/+26
| | | | | | | | | | | | | | | | | | | | | Changes requested by API Council review. A second CL will refactor TransportController and TransportPerformer based on feedback. Change-Id: Ie26a7d01d7021232a66c2edf1eb58120437fdfde
* | | Add people signals to Zen mode.Chris Wren2014-05-302-5/+36
| | | | | | | | | | | | | | | Depends-On: I51fcf689ddbee7715e3387b865f18a715887c943 Change-Id: I7c91dec1afeb54505426c4da59ec4d072a60c240
* | | Merge "Track Zen Mode status in the NotificationRecord" into lmp-preview-devChris Wren2014-05-309-224/+278
|\ \ \
| * | | Track Zen Mode status in the NotificationRecordChris Wren2014-05-309-224/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This requires the record to be present in makeRankingUpdateForListener, however, if the ranking object is created before the post to the handler, then no cloning is necessary. Depends-On: I907a1ff28123219db1c08889d723ad1b70b191ab Change-Id: I51fcf689ddbee7715e3387b865f18a715887c943
* | | | Support legacy routes added by apps via ensureRouteToHost().Sreeram Ramachandran2014-05-302-26/+48
| | | | | | | | | | | | | | | | | | | | Change-Id: I0ee1ca89fdc859d75a89021ca8c1902811b1e4a9 (cherry picked from commit fb17b32550de624b7f476b70b7a2fc77f31dde7d)
* | | | More work on voice interaction visuals.Dianne Hackborn2014-05-301-1/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is now a special theme for voice interaction activities to use, so they can be a panel that is better intergrated with the rest of the voice interaction experience. This is still not completely working, I have some hacks in the demo app to get it right; I'll fix that in a future change. Also improve VoiceInteractor to be retained across activity instances, for things like rotation. And bump up the number of concurrent broadcasts that are allowed on non-svelte devices, since they can handle more and this makes the boot experience better when dispatching BOOT_COMPLETED. Change-Id: Ie86b5fd09b928da20d645ec2200577dee3e6889d
* | | Merge "Only allow 1 Stack on Leanback-only devices" into lmp-preview-devJose Lima2014-05-301-1/+23
|\ \ \ | |_|/ |/| |
| * | Only allow 1 Stack on Leanback-only devicesJose Lima2014-05-271-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | - For Leanback only devices we will force all activities to live in the same app stack. This is a design decision for the shy/gregarious changes we are planning to implement for leanback devices. Change-Id: I5e65f9b079830a9485b5a136700993755c3f555f
* | | Merge "DO NOT MERGE Implementation of TaskManager reschedule/cancel" into ↵Christopher Tate2014-05-2910-517/+908
|\ \ \ | | | | | | | | | | | | lmp-preview-dev
| * | | DO NOT MERGE Implementation of TaskManager reschedule/cancelMatthew Williams2014-05-2910-517/+908
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issues here: "Reschedule" of an idle-mode task is not well-defined. In the API I throw an error if you try to set a back-off policy on an idle mode task. Implementation-wise, i add a delay for a reschedule request of an idle mode task. This means that if the phone's still in idle mode after the delay they app will get a call back, but otherwise it'll have to wait til the next one. Implemented all API functions
* | | | Merge "Updating task view style, fixing performance on enter-recents ↵Winson Chung2014-05-291-1/+1
|\ \ \ \ | |_|_|/ |/| | | | | | | animation." into lmp-preview-dev
| * | | Updating task view style, fixing performance on enter-recents animation.Winson Chung2014-05-291-1/+1
| | | | | | | | | | | | | | | | Change-Id: I42ca9296170a93a14184ae8963abbd3f0494e503
* | | | Merge "Revert "Modify task navigation to return to recent tasks." DO NOT ↵Craig Mautner2014-05-294-103/+88
|\ \ \ \ | | | | | | | | | | | | | | | MERGE" into lmp-preview-dev
| * | | | Revert "Modify task navigation to return to recent tasks." DO NOT MERGECraig Mautner2014-05-294-103/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1a4e211e03f1f795d935058e27356a0e8bc5df7c. Change-Id: Ia691b93347c7eb2395933e5a5ba385ea94e08d6f
* | | | | Merge "Add methods to coordinate unlock animation." into lmp-preview-devCraig Mautner2014-05-292-5/+55
|\ \ \ \ \
| * | | | | Add methods to coordinate unlock animation.Jorim Jaggi2014-05-272-5/+55
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce IWindowManager.keyguardGoingAway to notify that Keyguard wants to dismiss it self. This method starts the state machine in WindowAnimator which animates in the activity behind the keyguard. Animating out the keyguard is done by the StatusBar/Keyguard software when it receives the startKeyguardExitAnimation() callback. Bug: 14118756 Change-Id: Id3b8f41189410bad808b4892fbec74245e59efce
* | | | | Don't break things if a network goes back to CONNECTED.Lorenzo Colitti2014-05-291-4/+18
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, if a network goes from CONNECTED to some other "live" state (e.g., CONNECTING, because it's VERIFYING_POOR_LINK) and back, ConnectivityService treats it as if a new network had connected. This causes it to attempt to create the network (which fails, since a network with that netid already exists), to trigger verification, and if the verification succeeds, to tear down the network because the request it's satisfying is already satisfied by the network itself. Instead, if creating the network fails, assume it's because the network had already been created, and bail out. Also, when validation completes, ignore NetworkRequests that were being served by the same NetworkAgent as before. Bug: 15244052 (cherry picked from commit cfff026ec47afc7e31f60f80e3deea7f4e2f9be5) Change-Id: I52c2220e8f1d98fca765880be3040593e92722ed
* | | | Merge "Add system layer for voice interaction services." into lmp-preview-devDianne Hackborn2014-05-298-27/+81
|\ \ \ \ | |_|/ / |/| | |
| * | | Add system layer for voice interaction services.Dianne Hackborn2014-05-288-27/+81
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New window layer that voice interaction service windows go in to. Includes a new voice-specific content rectangle that voice activities are placed in to. Add specific animations for this layer, sliding down from the top (though this can be customized by the voice interaction service). Also add the concept of activities running for voice interaction services for purposes of adjusting the animation used for them, again sliding from the top, but not (yet?) customizable by the voice interaction service. Change-Id: Ic9e0e8c843c2e2972d6abb4087dce0019326155d
* | | Merge "Don't crash on boot" into lmp-preview-devChristopher Tate2014-05-281-2/+2
|\ \ \
| * | | Don't crash on bootChristopher Tate2014-05-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...when removing dangling preferred-activity entries. Bug 15310848 Change-Id: Ibe9d82a06f8c608b866a2c3c6b286da2ededacca
* | | | Move to dalvik.vm.lib.2 to force default to libartBrian Carlstrom2014-05-281-1/+1
|/ / / | | | | | | | | | | | | Bug: 14298175 Change-Id: I8afa91bddfb6fec6b61c39286a16594eb947830e
* | | Merge "DO NOT MERGE - Run the task manager service at startup" into ↵Christopher Tate2014-05-286-48/+188
|\ \ \ | | | | | | | | | | | | lmp-preview-dev
| * | | DO NOT MERGE - Run the task manager service at startupChristopher Tate2014-05-236-48/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also moves most of it into android.app.task rather than android.content. (Cherrypick from master) Change-Id: Ic07a664bf54bc3e40aa0b892946edba4bf37262a
* | | | Merge "NoMan: Don't unbind system listeners" into lmp-preview-devChristoph Studer2014-05-281-3/+7
|\ \ \ \ | |_|/ / |/| | |
| * | | NoMan: Don't unbind system listenersChristoph Studer2014-05-261-3/+7
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Listeners registered via INotificationMananger.registerListener() must not be unbound by NoMan because it won't be able to re-bind them later. Bug: 15131411 Change-Id: Ic5088252c86e7c32c522ba1606f123cefde3720d
* | | Revert "Only allow 1 Stack on Leanback-only devices"Fabrice Di Meglio2014-05-281-18/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is making a HH device (and probably others) in a reboot loop This reverts commit 0cac71e9bdee1e9e6b2faafec0f9f894effbcb67. === See: W/dalvikvm( 2320): threadid=1: thread exiting with uncaught exception (group=0x952d3f28) E/AndroidRuntime( 2320): *** FATAL EXCEPTION IN SYSTEM PROCESS: main E/AndroidRuntime( 2320): java.lang.RuntimeException: Failed to create service com.android.server.am.ActivityManagerService$Lifecycle: service constructor threw an exception E/AndroidRuntime( 2320): at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:89) E/AndroidRuntime( 2320): at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:304) E/AndroidRuntime( 2320): at com.android.server.SystemServer.run(SystemServer.java:244) E/AndroidRuntime( 2320): at com.android.server.SystemServer.main(SystemServer.java:161) E/AndroidRuntime( 2320): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2320): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 2320): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836) E/AndroidRuntime( 2320): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631) E/AndroidRuntime( 2320): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 2320): Caused by: java.lang.reflect.InvocationTargetException E/AndroidRuntime( 2320): at java.lang.reflect.Constructor.constructNative(Native Method) E/AndroidRuntime( 2320): at java.lang.reflect.Constructor.newInstance(Constructor.java:423) E/AndroidRuntime( 2320): at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:78) E/AndroidRuntime( 2320): ... 8 more E/AndroidRuntime( 2320): Caused by: java.lang.NullPointerException E/AndroidRuntime( 2320): at com.android.server.am.ActivityStackSupervisor.isLeanbackOnlyDevice(ActivityStackSupervisor.java:3508) E/AndroidRuntime( 2320): at com.android.server.am.ActivityStackSupervisor.<init>(ActivityStackSupervisor.java:220) E/AndroidRuntime( 2320): at com.android.server.am.ActivityManagerService.<init>(ActivityManagerService.java:2145) E/AndroidRuntime( 2320): at com.android.server.am.ActivityManagerService$Lifecycle.<init>(ActivityManagerService.java:2073) E/AndroidRuntime( 2320): ... 11 more E/AndroidRuntime( 2320): Error reporting crash E/AndroidRuntime( 2320): java.lang.NullPointerException E/AndroidRuntime( 2320): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:89) E/AndroidRuntime( 2320): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) E/AndroidRuntime( 2320): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) E/AndroidRuntime( 2320): at dalvik.system.NativeStart.main(Native Method) I/Process ( 2320): Sending signal. PID: 2320 SIG: 9 I/ServiceManager( 174): service 'power' died I/ServiceManager( 174): service 'sensorservice' died Change-Id: Ib90ae4dff6542d67f5827b100a3ab6158ce88ae2
* | | Only allow 1 Stack on Leanback-only devicesJose Lima2014-05-271-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | - For Leanback only devices we will force all activities to live in the same app stack. This is a design decision for the shy/gregarious changes we are planning to implement for leanback devices. Change-Id: I201f56541ba22356e9598f09419ad41e588c74dc
* | | Merge "Add and improve logged TrustAgent connection events" into lmp-preview-devAdrian Roos2014-05-272-0/+23
|\ \ \