summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Send TV app the intent for the new active source"Jinsuk Kim2014-07-211-8/+2
| | | | | | This reverts commit 9808af71a190844cd5eb493d87870238a31fa408. Change-Id: I0e019534c07b230173230d064c6d8bc389fafcbc
* Send TV app the intent for the new active sourceJinsuk Kim2014-07-211-2/+8
| | | | | | | 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. Change-Id: I29b28a4365d1454a8bbe947ddb5df4371960c71a
* Merge "Change UsageStatsService to check uses-permission" into lmp-devAdam Lesinski2014-07-211-4/+16
|\
| * Change UsageStatsService to check uses-permissionAdam Lesinski2014-07-211-4/+16
| | | | | | | | | | | | | | Have UsageStatsService check permission grants when AppOps returns the default MODE_IGNORED mode for a package. Change-Id: I784a708451a56863b13fc5f178e10bba6ce37a2f
* | Rename setApplicationBlocked to setApplicationHiddenAmith Yamasani2014-07-215-57/+67
| | | | | | | | | | | | | | | | This corrects the expected behavior of the app state. Hidden apps can be installed by the store to be brought out of hidden state. Bug: 16191518 Change-Id: Id128ce971ceee99ba1dea14ba07ce03bd8d77335
* | Detect bundled app ABI for cluster-style layout.Jeff Sharkey2014-07-211-4/+26
|/ | | | | | | | Now that build system switched to cluster-style layout for bundled apps, we need to detect primary/secondary ABI based on that layout. Bug: 16456263 Change-Id: If6daf60ee1815bb6fde560a0c373b4f2bc8bd3a8
* Fix GpsLocationProvider to return GpsStatus and Nmea events.destradaa2014-07-211-1/+1
| | | | | | b/16393308 Change-Id: Idda9e769b96bcbc3e1beb9f506a853a6403ea254
* 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
* Defend against null ApplicationInfos.Dan Sandler2014-07-211-0/+3
| | | | | Bug: 16303792 Change-Id: Id2d7a70f92718ecda8e3ff418c4e109f6982a75f
* TIF: fix indexOfValue usageWonsik Kim2014-07-211-4/+13
| | | | | | | | SparseArray.indexOfValue() was used in place where comparison using equals() on value was desired, but the method actually uses == instead of equals(). Change-Id: Id9fb3317d1e0f0cb60ce6512f6d0c0a7bcf2fb20
* Merge "Add two apis for one touch record." into lmp-devJungshik Jang2014-07-173-3/+40
|\
| * Add two apis for one touch record.Jungshik Jang2014-07-213-3/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "TIF: Extend multiple TV input per service for HDMI logical devices" ↵Ji-Hwan Lee2014-07-172-82/+167
|\ \ | |/ |/| | | into lmp-dev
| * TIF: Extend multiple TV input per service for HDMI logical devicesJi-Hwan Lee2014-07-212-82/+167
| | | | | | | | | | | | | | | | Remove ITvInputManager.registerTvInputInfo() and let addTvInputInfo*() cover the registration. Bug: 15570939 Change-Id: Ic36701de96696e7fe32fc1faa0d5f6fde53f6666
* | Merge "Do no send <Feature Abort> as response of <Feature Abort>" into lmp-devJungshik Jang2014-07-171-8/+13
|\ \ | |/ |/|
| * Do no send <Feature Abort> as response of <Feature Abort>Jungshik Jang2014-07-171-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | Cec service replies <Feature Abort> back to original device if incoming message is not handled by any of feature action or device. It's applied to <Feature Abort> message itself, but it can cause weird sideeffect of it. This change just ignore <Feature Abort> even though it's not handled by any of local device or feature actions. Bug: 16359564 Change-Id: I925e89ca4db49a637dd296447c04eee1ba679c6b
* | Merge "Invoke callback for HdmiControlService.deviceSelect() for internal ↵Jinsuk Kim2014-07-171-2/+5
|\ \ | | | | | | | | | source" into lmp-dev
| * | Invoke callback for HdmiControlService.deviceSelect() for internal sourceJinsuk Kim2014-07-211-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | The call should be always successful if device to switch to is internal TV source as setting it as the active source doesn't require communication with other devices. Added the missing callback invocation. Change-Id: I9968098316a955509f4de0e7af6f4407087ad4a2
* | | Merge "TIF: Register IHdmiInputChangeListener to physical input manager" ↵Jinsuk Kim2014-07-171-23/+44
|\ \ \ | | | | | | | | | | | | into lmp-dev
| * | | TIF: Register IHdmiInputChangeListener to physical input managerJinsuk Kim2014-07-211-23/+44
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This lets the manager receive the callback from HdmiControlService when a CEC device requests that it shall be the active source. It will be transformed to an intent with a channel URI associated with the corresponding TV input. Change-Id: I02d4b24d5d05ad7a093e3b996942cbc43fd1ce8b
* | | TIF: Add sendAppPrivateCommand()Jae Seo2014-07-201-0/+21
|/ / | | | | | | | | | | | | | | Added a way to send a private command from the application to the TV input. This can be used to provide domain-specific features that are only known between certain TV inputs and their clients. Change-Id: I7548311a64147b8ff27562ec680b941e2ec10bc0
* | Fix synchronization issues in AlwaysOnHotwordDetectorSandeep Siddhartha2014-07-202-12/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove unnecessary recognition status from AlwaysOnHotwordDetector - Remove unnecessary recognition started callback from IRecognitionStatusCallback - Fix a bug around the fact that we weren't picking up enrollment at runtime because we were storing the availability at instantiation time. - Handle 0-length arrays in SoundTrigger classes while parceling/unparceling - Fix issue in SoundTrigger helper where we were not comparing binders for start/stop calls - Unload the previous model when starting a new recognition - Add more debug logging Change-Id: Icc56d7f3dd1ffa49a8cfeea49080e3ab4d342c32
* | Fix issue #16400873: Apps that show ads as new tasks stay in recents...Dianne Hackborn2014-07-202-11/+29
| | | | | | | | | | | | | | | | | | | | ...even when I hit back or close the activity in UI Change the semantics of NEW_DOCUMENT to have the recents entry be removed by default when its activity is finished, with various ways to explicitly turn off this behavior. Change-Id: Idc717706d27de80f28b53ad76f9e375d85118d71
* | Rename USAGE_NOTIFICATION_TELEPHONY_RINGTONEJean-Michel Trivi2014-07-202-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | AudioAttributes: rename USAGE_NOTIFICATION_TELEPHONY_RINGTONE to USAGE_NOTIFICATION_RINGTONE in the list of usage values. Temporarily keep the old definition to prevent transient build breakages, will be removed after telephony packages have been updated. Bug 16401631 Change-Id: I9398443fd7ba3c30e9d371c5c5a2934b9ea6f30a
* | Move sound trigger calls to VoiceInteractionManagerServiceSandeep Siddhartha2014-07-203-17/+356
| | | | | | | | | | | | - This ensures that any data being loaded on the DSP comes from the framework Change-Id: Ie15f0994850ba8f298ca07c49fe0b89e066d9e2b
* | Merge "TIF: revise API names" into lmp-devWonsik Kim2014-07-171-2/+3
|\ \
| * | TIF: revise API namesSungsoo Lim2014-07-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | - TvInputManager: TvInputCallback -> TvInputListenter - TvParentalControlManager: ParentalControlCallback -> ParentalControlListener - TvView: unblockContent -> requestUnblockContent Change-Id: I58220e86a4e59ee7d8f28fab833f09cd603b1e38
* | | Zen mode filtering should use new usage constants.John Spurlock2014-07-195-47/+62
|/ / | | | | | | | | | | | | Refactor stream-based calls to usage-based calls. Bug:15279516 Change-Id: I3f7757d8123c14670e2ad5f8e6aa4e9803efe7ec
* | TIF: misc fix for TvInputHalWonsik Kim2014-07-192-54/+38
| | | | | | | | | | | | | | | | - Fixed synchronization issues - Add a few debugging logs - Removed unused types from TvInputHal. Change-Id: Ia5eb8a496cc3e98cb2c2ed0f77a6a313d33bf6c9
* | Allow dreams to wake up gently.Jeff Brown2014-07-183-33/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new DreamService.wakeUp() method to allow a dream to wake itself up gently and perform a transition before finally finishing. The power manager will ask a dream to wake up gently in most cases but may force it to happen immediately when necessary. If the dream takes too long to finish itself then the dream controller will douse it with water summarily after 5 seconds. Change-Id: Ib0564c5650cd5a454e1acc5aa91fe46995eecfa7
* | Add new Display.STATE_DOZE_SUSPEND power state.Jeff Brown2014-07-182-2/+4
| | | | | | | | Change-Id: Ia62f4f0d25234281dc600d0b7f08b3c6a312db7a
* | Merge "TIF: Add a way to notify whether the current program content is ↵Jae Seo2014-07-181-0/+17
|\ \ | | | | | | | | | allowed" into lmp-dev
| * | TIF: Add a way to notify whether the current program content is allowedJae Seo2014-07-181-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we have a complete set of API to tell the entire cases (allowed and blocked), which makes possible for the application to rely more on actions taken by TV input services transferring the responsibility for parental control. Bug: 13172379 Change-Id: I7b0dcf16b870782c76a428a1dac6ef1a528b7d40
* | | Fix which index goes whereChristopher Tate2014-07-191-2/+2
| | | | | | | | | | | | Change-Id: If4cf7efd4d7962eb5c10b487482653d86d92d2c6
* | | Make the booting flag update unconditionalPrashant Malani2014-07-181-4/+2
|/ / | | | | | | | | | | | | | | | | | | | | In case an Activity is started before we idle, there is a chance the booting flag might never get updated. Bug: 16015648 Change-Id: I46504bd126573e3a2ce1f914be922765ae9fe560 Conflicts: services/core/java/com/android/server/am/ActivityStackSupervisor.java
* | First iteration of a public UsageStats APIAdam Lesinski2014-07-1810-1253/+900
| | | | | | | | | | | | | | | | | | | | UsageStats API that allows apps to get a list of packages that have been recently used, along with basic stats like how long they have been in the foreground and the most recent time they were running. Bug: 15165667 Change-Id: I2a2d1ff69bd0b5703ac3d9de1780df42ad90d439
* | Quit NetworkMonitors at end of life.Robert Greenwalt2014-07-181-2/+2
| | | | | | | | | | | | | | | | We were creating and orphaning a thread for each network. Cleanup after ourselves. bug:16119890 Change-Id: I8c8a9fe471e43f31f712844915992084074e8047
* | Merge "Tear down agents properly at EOD in full restore" into lmp-devChristopher Tate2014-07-171-1/+18
|\ \
| * | Tear down agents properly at EOD in full restoreChristopher Tate2014-07-171-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The restore engine wasn't tearing down the bound agent after reaching the end of data for the app, and furthermore was allowing the restore operation to resume running the queue before all data had been delivered to the current target. Also make LocalTransport deliver data in 2K chunks rather than 32K, as a first step towards making its timing characteristics more like we'll see in networked situations. Finally, added a bunch of MORE_DEBUG output for finding odd bugs like this. Change-Id: Icdbe6a070af6cc7c708a938ad044108d40ebce9a
* | | Merge "TIF: Add unblock content" into lmp-devYoungsang Cho2014-07-171-0/+20
|\ \ \
| * | | TIF: Add unblock contentJaewan Kim2014-07-181-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a TV content is blocked by the parental control settings, TV input service will notify TV to request user's PIN code verification. If the verification succeeds, TV input service will be notified back that content is unblocked so it can keep playing the content. Bug: 13172379 Change-Id: I7b31d762eb54612c4d8779ee133211f32fb73b05
* | | | Merge "TIF: Add onInputAdded and onInputRemoved" into lmp-devYoungsang Cho2014-07-181-14/+52
|\ \ \ \ | |/ / / |/| | |
| * | | TIF: Add onInputAdded and onInputRemovedJaewan Kim2014-07-181-14/+52
| | | | | | | | | | | | | | | | | | | | Bug: 16166859 Change-Id: I51bd87aded3e8619e36be200009e924e73cd348e
* | | | Merge "Cancel notification group children when summary is canceled" into lmp-devChristoph Studer2014-07-171-9/+66
|\ \ \ \ | |/ / / |/| | |
| * | | Cancel notification group children when summary is canceledChristoph Studer2014-07-161-9/+66
| | | | | | | | | | | | | | | | | | | | Bug: 15865959 Change-Id: I29f8f5357f85eac3d4129ff9a15168f52caaa613
* | | | Merge "TIF: Add a notification for surface change from TvView to ↵Youngsang Cho2014-07-171-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | TvInputService" into lmp-dev
| * | | | TIF: Add a notification for surface change from TvView to TvInputServiceYoungsang Cho2014-07-171-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15447352 Change-Id: I3e91609c5eb03be84cc7c88507457b9e74750de8
* | | | | TIF: Add a method to get TvInputInfo for a given TV inputJae Seo2014-07-171-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is going to be needed by applications to get information about the inputs that are just added thus not included in the previously retrieved input list. Bug: 16166859, Bug: 15838097 Change-Id: Icecd03fcea208a0c4d41caab1eec64e574f40877
* | | | | Merge "TIF: Add TvParentalControlManager" into lmp-devJae Seo2014-07-171-0/+17
|\ \ \ \ \
| * | | | | TIF: Add TvParentalControlManagerJae Seo2014-07-171-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Each TV input service is now required to query the system whether the user is allowed to watch the current program before showing it to the user if the parental control is turned on, which can be checked by calling TvParentalControlManager.isEnabled(). Whether the TV input service should block the content or not is determined by invoking TvParentalControlManager.isRatingBlocked() with the content rating for the current program. Then the TvParentalControlManager makes a judgment based on the user blocked ratings stored in the secure settings and returns the result. If the rating in question turns out to be blocked, the TV input service must immediately block the content and call this method with the content rating of the current program to prompt the PIN verification screen. Each TV input service also needs to continuously listen to any changes made to the parental control settings by registering a TvParentalControlManager.ParentalControlCallback() to the manager and immediately reevaluate the current program with the new parental control settings. Bug: 13172379 Change-Id: I8e1900d4b8d28c56798986d5c3906bd418ab97ac