summaryrefslogtreecommitdiffstats
path: root/services
Commit message (Collapse)AuthorAgeFilesLines
* Fix a race when removing from LegacyTypeTracker.Lorenzo Colitti2015-05-121-18/+23
| | | | | | | | | | | | | | | Because LegacyTypeTracker#remove can send broadcasts that cause apps to refresh their view of network state, it needs to be called only after network state has been updated. This requires that callers determine whether the network was the default, and updating state, before calling remove(). While I'm at it, fix maybeLogBroadcast's concept of whether the network it's logging about is/was the default. This has never been correct. Bug: 20613953 Change-Id: Ia175ac454aa4e0a4c4f0151866314ebada681438
* UsbManager / UsbService / UsbDeviceManager: delete unused codeNick Kralevich2015-05-102-23/+0
| | | | | | These functions are never called. Change-Id: Ic436e1036bed717d2c64701fddd9a810abb9443e
* Merge "CEC: Update ARC feature flag on hotplug" into mnc-devJinsuk Kim2015-05-101-2/+10
|\
| * CEC: Update ARC feature flag on hotplugJinsuk Kim2015-05-111-2/+10
| | | | | | | | | | | | | | | | | | ARC feature flag should have been updated whenever hotplug[on] was detected, so that the ARC can be established upon device discovery. This CL rectifies the bug. Bug: 20817208 Change-Id: I5053ad3f576d0e405b6d8fc0c4e6584e66ed0a86
* | Fix devices with primary physical storage.Jeff Sharkey2015-05-101-24/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always assume the factory-reset default primary storage before parsing storage settings. Without this, we'd always default to picking internal emulated storage during first boot or upgrade. Bump version code to re-evaluate this for devices that default to physical storage as primary. Also restrict available move targets when storage is physical, since we can't really translate between multi-user and non-multi-user aware storage. Bug: 20836019 Change-Id: I186ded1aa3dd9cea67497a4f53b0973031174ccd
* | Disable multi-user background recordingFyodor Kupolov2015-05-084-13/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On user switch, kill existing processes of the background user with android.permission.RECORD_AUDIO permission. Home activity should not be killed to avoid an expensive restart of the home launcher, when the user switches back. Introduced DISALLOW_RECORD_AUDIO user restriction, which is enabled for the background user, and removed for the foreground user. Introduced a concept of system controlled user restriction, which can only be set by the system, rather than device administrator. Bug: 20346194 Change-Id: Ic942fd565e80d14424230dae612965a8e229c4ef
* | Merge "Remove restrictions PIN functionality" into mnc-devFyodor Kupolov2015-05-081-189/+0
|\ \
| * | Remove restrictions PIN functionalityFyodor Kupolov2015-05-061-189/+0
| | | | | | | | | | | | | | | Bug: 20852231 Change-Id: I5666ee28ff1341ead9b258bc0852d8ba6d313c5e
* | | am e8334254: am 4f35e169: am 4475e7df: am ea2c4033: Mark persistent apps as ↵Christopher Tate2015-05-081-4/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | such when the ProcessRecord is created * commit 'e83342540b2b7dc7571c12768007697685a6add5': Mark persistent apps as such when the ProcessRecord is created
| * \ \ am 4f35e169: am 4475e7df: am ea2c4033: Mark persistent apps as such when the ↵Christopher Tate2015-05-081-4/+13
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ProcessRecord is created * commit '4f35e1699a4b62bd71bed27fece85e2c026210d1': Mark persistent apps as such when the ProcessRecord is created
| | * \ \ am 4475e7df: am ea2c4033: Mark persistent apps as such when the ↵Christopher Tate2015-05-081-4/+13
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ProcessRecord is created * commit '4475e7dfa12e684df64c59a9053c110d79d83c1f': Mark persistent apps as such when the ProcessRecord is created
| | | * \ \ am ea2c4033: Mark persistent apps as such when the ProcessRecord is createdChristopher Tate2015-05-081-4/+13
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ea2c403311f741f5a0a9688847cfd17041c81c0d': Mark persistent apps as such when the ProcessRecord is created
| | | | * | | Mark persistent apps as such when the ProcessRecord is createdChristopher Tate2015-05-081-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...rather than only during the OS's "time to start the persistent apps" boot phase. This closes a window of opportunity during which a persistent app container may be live without having been properly noted as such, because it wound up being launched prior to the [rather late] boot phase at which the persistent apps are directly enumerated and bookkeeping for them established. Bug 20855725 Change-Id: I41822b412de4540dbdeab300b38089303678f76c
* | | | | | | Merge "Clean-up component states in AMS when component is disabled" into mnc-devWale Ogunwale2015-05-086-100/+189
|\ \ \ \ \ \ \
| * | | | | | | Clean-up component states in AMS when component is disabledWale Ogunwale2015-05-086-100/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 15804187 Change-Id: I2b5856c5a0a012f34698fb64f8596d32924bbd1f
* | | | | | | | Merge "Zen: Tweak default automatic rules." into mnc-devJohn Spurlock2015-05-082-1/+20
|\ \ \ \ \ \ \ \
| * | | | | | | | Zen: Tweak default automatic rules.John Spurlock2015-05-082-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a new default rule for calendar events. - Rename all default rules to singular form. i.e. Weekend/Weeknight/Event Bug: 20064962 Change-Id: Iee13238e0479fd2a05abdef4a5584455dcdd0c53
* | | | | | | | | Merge "Zen: Simplify notification policy api, add zenmode api." into mnc-devJohn Spurlock2015-05-083-84/+91
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Zen: Simplify notification policy api, add zenmode api.John Spurlock2015-05-083-84/+91
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove the concept of a notification policy management token in favor of a simple grant/deny per app. Currently, all requests are immediately granted. - Add zen mode getter/setting, limit to apps that have been granted policy access. - Add intent for zen mode changes. - Public name for zen mode = "interruption filter", moved from NotificationListenerService to NotificationManager. - Add settings metadata for new DND access Settings screen. - Add the split sender settings for calls vs messages to the public Policy api. - This change is meant to finalize the public api, persisting granted app status and showing the user-visible dialog will be done as followups. Bug: 18298798 Change-Id: I511be98d69939f057c0c7dc1a6dfe63d1c468193
* | | | | | | | | Merge "Cleanup keystore password changing and unlocking" into mnc-devChad Brubaker2015-05-081-22/+17
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Cleanup keystore password changing and unlockingChad Brubaker2015-05-081-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add KeyStore.onUserPasswordChanged for the lockscreen to call when the user changes their password. Keystore will then handle the logic of deleting keys. Instead of calling Keystore.password_uid for both unlocking and password changes the behavior has been split into Keystore.unlock and onUserPasswordChanged. Change-Id: I324914c00195d762cbaa8c63084e41fa796b7df8
* | | | | | | | | | Merge "Add 'App Summary' section to meminfo." into mnc-devRichard Uhler2015-05-081-4/+9
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Add 'App Summary' section to meminfo.Richard Uhler2015-05-081-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'App Summary' section is shown by default when other memory details are shown. This adds a new meminfo flag '-s' to show only the App Summary section. Change-Id: I66913673cd3afca873a8b13e45abe071d4c57b82
* | | | | | | | | | | Merge "DevicePolicyManager API review changes" into mnc-devCraig Lafayette2015-05-081-1/+1
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | DevicePolicyManager API review changesCraig Lafayette2015-05-071-1/+1
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renamed DO_NOT_ASK_CREDENTIALS_ON_BOOT to RESET_PASSWORD_DO_NOT_ASK_CREDENTIALS_ON_BOOT. Bug: 20820907 Change-Id: I6455f9a6d370afbd5154505f402b409dba3b7918
* | | | | | | | | | Merge "Fix IMMS#mInputShown state inconsistency." into mnc-devYohei Yukawa2015-05-081-0/+1
|\ \ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / |/| | | | | | | | |
| * | | | | | | | | Fix IMMS#mInputShown state inconsistency.Seigo Nonaka2015-05-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal of this CL is to keep IMMS#mInputShown consistent with the actual visibility of the software keyboard. Doing it indeed fixes many user-visible inconsistency, especially when a physical keyboards is attached. It turned out that there are much more cases where IMMS#mInputShown should have been updated. Basically every time when the software keyboard is shown or hiden by non-user actions, IMMS#mInputShown was not updated to the new state. Typical cases are: - the IME shows its Emoji keyboard when the ALT key is pressed. - the system hides software keyboard when physical keyboard is connected. With this CL, all known issues will disapper by updating IMMS#mInputShown in IMMS#setImeWindowStatus(). Note that this CL depends on following preparation CLs directly or indirectly. - I7002ff063e490928309e9a9a0f6557ce3d12e6aa - I1e50ee42838a1bf64a612da4904aa93458d44ea4 - I3decaf37198e5864a1763a059df4a36ebc70c5a7 - Id156c85535a221235737ea6dcc15a67f1c4b9f71 - I9f797d07ba02363fab58ceb9aecb3cc11fbc407e - I60963f1474457ff37cca85e262460dca8105acff Simply cherry-picking this CL into L branch is supposed to be insufficient to fix all the issues and would result in different regressions indeed. BUG: 18722991 BUG: 20763994 BUG: 20764441 BUG: 20926844 Change-Id: I20ae2749a93bc33840df560aa71d4635e9ec849a
* | | | | | | | | | Merge "multiuser: postpone user cleanup to systemready" into mnc-devXiaohui Chen2015-05-081-4/+8
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | multiuser: postpone user cleanup to systemreadyXiaohui Chen2015-05-061-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | User cleanup was too early and causing exceptions during boot. Bug: 20826665 Change-Id: Idace66d41cefaff1d80f490c161f8868e91d36d9
* | | | | | | | | | | Merge "Always destroy virtual display on Binder death." into mnc-devMichael Wright2015-05-081-8/+8
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | Always destroy virtual display on Binder death.Michael Wright2015-05-061-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20265052 Change-Id: I039d3f2bab0dcbbcdc99b7105b04de5bc3845e05
* | | | | | | | | | | Merge "Optionally add a default MOBILE request." into mnc-devErik Kline2015-05-081-26/+90
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Optionally add a default MOBILE request.Erik Kline2015-05-081-26/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables persisting the mobile internet data connection, even when Wi-Fi is enabled and serving as the default network (for faster network switching). Change-Id: I9d1512b3a8413c4f163c63d57e66bded017101e4
* | | | | | | | | | | | Merge "Fixed a bug where the heads-up would not show when full screen" into ↵Selim Cinek2015-05-082-4/+39
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mnc-dev
| * | | | | | | | | | | | Fixed a bug where the heads-up would not show when full screenSelim Cinek2015-05-072-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 20728541 Change-Id: I74bc74c4936b003a4c0c37b7c7da2d1fa138c077
* | | | | | | | | | | | | Fixed a bug with svelte and voice assistSelim Cinek2015-05-081-2/+3
| |_|_|_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handling the case that no info is around. Bug: 20925281 Change-Id: Id5a4c4373877909a898c8852891a854eacbc1f6c
* | | | | | | | | | | | Merge "Add IntentFilter auto verification - part 8" into mnc-devFabrice Di Meglio2015-05-072-10/+16
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Add IntentFilter auto verification - part 8Fabrice Di Meglio2015-05-062-10/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix clearing of Intent Verification Status: now do it at the correct time when the PackageSettings info is still there - reduce writing of Settings See bug #19628909 Change-Id: I9113333c330964249342108fa1ca7b8ec89c3322
* | | | | | | | | | | | | Merge "MidiManager: Improve output of "dumpsys midi"" into mnc-devMike Lockwood2015-05-071-1/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | MidiManager: Improve output of "dumpsys midi"Mike Lockwood2015-05-071-1/+3
| | |_|_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Include each device's port status from MidiDeviceStatus - MidiDeviceInfo.toString() now outputs all the names and values in the properties Bundle Change-Id: Ic9329153e4ae4d5619e274d27a420943473377e5
* | | | | | | | | | | | | Merge "Improve keying for theme caches, rebase system theme on config ↵Alan Viverette2015-05-072-2/+9
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | change" into mnc-dev
| * | | | | | | | | | | | | Improve keying for theme caches, rebase system theme on config changeAlan Viverette2015-05-062-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Themes now use an array of applied styles rather than a String to store their history. They are keyed based on a hash code computed from the history of applied styles. The themed drawable cache has been abstracted out into its own class. Also updates system context to use DayNight as the default and ensures that GlobalActions uses the correct context, which exercises the change. CTS tests have been added in another CL. Bug: 20421157 Change-Id: I9eb4b7dffd198ad24d02f656eaf0839570b59caa
* | | | | | | | | | | | | | Delete a bunch of dead codeJohn Reck2015-05-071-7/+1
| |/ / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rotation wasn't supported, so just nuke all the code around it. Fixes some unused field warnings Change-Id: Ic33d56ed3b42e3261bddc5007c5a029831254f83
* | | | | | | | | | | | | Merge "CEC: Make wakeup on hotplug optional" into mnc-devJinsuk Kim2015-05-072-1/+8
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | CEC: Make wakeup on hotplug optionalJinsuk Kim2015-05-072-1/+8
| | |_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new system property to make the feature optional. True by default. Bug: 20897914 Change-Id: I8bfca5144b802b95361e63b29abd6371971c7dbb
* | | | | | | | | | | | Merge "Retry "Always show auxiliary subtypes from NavBar keyboard icon."" ↵Yohei Yukawa2015-05-071-6/+26
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | | | | | | | | Retry "Always show auxiliary subtypes from NavBar keyboard icon."Seigo Nonaka2015-05-061-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL relands I1e50ee42838a1bf64a612da4904aa93458d44ea4, which was reverted by I3decaf37198e5864a1763a059df4a36ebc70c5a7 due to the build breakage in 'layoutlib' target, with a proper fix. Hereafter the original CL description is repeated. The auxiliary subtypes should be listed if the input method picker is opened from NavBar keyboard icon. However there is only IMM#showInputMethodPicker() API to open input method picker and this is also used from LockScreen or Settings UI. Auxiliary subtypes should not be listed there(Id7cf5d122). Thus framework shows auxiliary subtypes based on IMMS#mInputShown and LockScreen state, but it is not a perfect solution. If a physical keyboard is connected, the soft input may be gone. As the result, auxiliary subtypes won't be listed even if it is opened from NavBar keyboard icon. To fix this issue, this CL introduces IMM#showInputMethodPicker(boolean) to be able to decide showing auxiliary subtypes by caller. Note that IMM#showInputMethodPicker(boolean) is still hidden with @hide. There is no public API change in this CL. Bug: 20763994 Change-Id: Id156c85535a221235737ea6dcc15a67f1c4b9f71
* | | | | | | | | | | | | Bluetooth: Ensure Bluetooth interface handle is validNitin Arora2015-05-061-17/+12
|/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds null checks to Bluetooth interface handle to prevent using null references when BluetoothService is not up. Also removed the callbacks for the intermediate state removed for now as they are not being used. Change-Id: I0e72ff4da467a8bcf5a4e5ac48d8558e7f308c7e
* | | | | | | | | | | | Merge "Revert "Always show auxiliary subtypes from NavBar keyboard icon."" ↵Bart Sears2015-05-071-26/+6
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into mnc-dev
| * | | | | | | | | | | | Revert "Always show auxiliary subtypes from NavBar keyboard icon."Bart Sears2015-05-071-26/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CL is breaking the build. Discussed with Seigo and verting until he can take a look at it. This reverts commit 80ff4ed6bb8dbdad7192d679a01096aa888e090b. Change-Id: I3decaf37198e5864a1763a059df4a36ebc70c5a7