237287 Commits

Author SHA1 Message Date
Carlos Valdivia
51b651aea1 introduce GET_PASSWORD_PRIVILEDGED permission.
That will be used to filter in passwords for Session based
AccountManager flows.

Bug: 27590532
Change-Id: I4a6d0540bcff186e416351a6f719600ce35d86a0
2016-04-01 10:55:34 -07:00
Muyuan Li
29cbe66c7d sysui: refactored for extensibility.
refactored button inflate code and add a logic to handle selected style update.

Change-Id: I61f9c77396bea63a24fc78bf02ebad54a426a3ed
(cherry picked from commit b865ae2a4c892e2ffd83947e40ebd27d35b18fa6)
2016-04-01 17:35:12 +00:00
Alan Viverette
a1009c28cc Merge "Clean up ArrayAdapter lint warnings and annotations" into nyc-dev 2016-04-01 17:24:17 +00:00
Aga Wronska
9d5aadd5f2 Merge "Add metrics for drag and drop. Add metrics for search." into nyc-dev 2016-04-01 16:51:51 +00:00
Philip P. Moltmann
a0d2a83cf6 Merge "Make sure PrinterCapabilitiesInfo always have sane values." into nyc-dev 2016-04-01 16:49:42 +00:00
Philip P. Moltmann
4f05eb194c Merge "Make sure PrintDocumentInfo is always sane." into nyc-dev 2016-04-01 16:49:31 +00:00
Philip P. Moltmann
c0e237f63d Merge "Make sure PrintAttributes have sane values." into nyc-dev 2016-04-01 16:48:57 +00:00
Philip P. Moltmann
a97415b0b7 Merge "Make sure to update the selected pages when needed in the right order." into nyc-dev 2016-04-01 16:46:20 +00:00
Philip P. Moltmann
c84bbd576f Merge "Do not rely on documentInfo.pageCount when selecting which pages to scrap" into nyc-dev 2016-04-01 16:46:07 +00:00
Philip P. Moltmann
f6d74737de Merge "When we update slow we override the current state. Make sure to reset the state the operation finishes." into nyc-dev 2016-04-01 16:45:52 +00:00
Russell Brenner
f8c07d68c1 Merge "Add new permission for am.updateLockTaskPackages()" into nyc-dev 2016-04-01 16:23:25 +00:00
Russell Brenner
3ccb35421d Merge "Add new protection level for setup wizard" into nyc-dev 2016-04-01 16:22:49 +00:00
Clara Bayarri
032a76f94b Merge "Remove unused import for KeyboardShortcutGroup" into nyc-dev 2016-04-01 16:18:28 +00:00
John Reck
2aaf681dc0 Merge "Remove warning" into nyc-dev 2016-04-01 16:09:22 +00:00
Tyler Gunn
6c4af8c915 Merge "Add carrier config option to determine if "wifi-only" is supported." into nyc-dev 2016-04-01 15:43:09 +00:00
Adam Powell
991989f318 Merge "Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"" into nyc-dev 2016-04-01 15:41:04 +00:00
Tyler Gunn
53c76457e4 Merge "Add hidden capability to indicate account supports emergency video calls." into nyc-dev 2016-04-01 15:36:08 +00:00
Kenny Guy
fa7b6723e6 Merge "Allow PO to check if it is in a managed profile." into nyc-dev 2016-04-01 14:23:51 +00:00
Todd Kennedy
02424676c6 Merge "Allow retrieving info /system components" into nyc-dev 2016-04-01 14:21:21 +00:00
Alan Viverette
9e623b64b9 Clean up ArrayAdapter lint warnings and annotations
Refactoring only, no code changes.

Change-Id: Ia384a6597c9af84d23aed481f84d67ae817b4ac7
2016-04-01 10:11:25 -04:00
Clara Bayarri
89203de878 Remove unused import for KeyboardShortcutGroup
Left it in accidentally when removing default method.

Change-Id: I6af0712624ffaefff4cb4ad2a9e5a86d7104d2e7
2016-04-01 14:40:34 +01:00
Gustav Sennton
1c177d8dae Add system api to reach WebViewUpdateService Binder interface.
Instead of using reflection in XTS tests we add some system-apis to
enable fetching information about webview packages.

Bug: 26381867
Change-Id: If983a01b6855e4a4c08ef0b5873304918d499b76
2016-04-01 12:39:54 +01:00
Richard Coles
76e287b423 Merge "Update system API to match current code." into nyc-dev 2016-04-01 11:31:12 +00:00
Torne (Richard Coles)
5d3f3bb90d Update system API to match current code.
Somehow a change got submitted which added a system API that doesn't
match system-current.txt - regenerate it to match the current code.

Bug: 27957736
Change-Id: I37e1fffbdb060de3e6a399ee75872468d6d25465
2016-04-01 12:24:36 +01:00
Clara Bayarri
3916bb045c Merge "Keyboard Shortcuts Helper: Include all System shortcuts" into nyc-dev 2016-04-01 11:17:26 +00:00
Andrei Stingaceanu
002f7121b7 Keyboard shortcuts: disable toggling from lockscreen
Do not allow toggling the keyboard shortcuts dialog
if the keyguard is locked.

Bug: 27717058
Change-Id: I4a16a863ed1a4d3cefa7ca41c1361592ef3c5b3c
2016-04-01 10:07:29 +00:00
Insun Kang
faecc3f800 Merge "ExifInterface: Code clean up" into nyc-dev 2016-04-01 08:55:01 +00:00
Jaewan Kim
2edfe0106a Merge "PIP: Apply the animation spec for the PIP in Recents" into nyc-dev 2016-04-01 06:19:53 +00:00
Jaewan Kim
a0d4d2588d PIP: Apply the animation spec for the PIP in Recents
Bug: 27540465
Change-Id: Ibdd4a4e3fd194978ccbc29235a1c620ebddff942
2016-04-01 15:03:51 +09:00
Keisuke Kuroyanagi
aea43f8414 Merge "Fix: doRunAdvance returns wrong value when offset == count." into nyc-dev 2016-04-01 05:27:38 +00:00
Svetoslav Ganov
c1b8e88329 Merge "Sanitize app op service inputs" into nyc-dev 2016-04-01 03:05:14 +00:00
Svetoslav Ganov
f73adb6c72 Sanitize app op service inputs
bug:26587386

This reverts commit 9888e00b7a36cd03821001a58e4ff86224e3d858.

Change-Id: I37069b6eb50ee1a1b29d6f116e96ad9f226883c9
2016-03-31 20:02:06 -07:00
Insun Kang
8884af3ee9 ExifInterface: Code clean up
Replaces deprecated constants with newly added constants in the actual
implementation.

Bug: 27932489
Change-Id: Id54236a05127cd7ce3bf0668c002635fb86489a9
2016-04-01 11:53:14 +09:00
Peng Xu
3dd991d117 Merge "Fix a few known issue in sensor framework" into nyc-dev 2016-04-01 01:54:39 +00:00
Prashant Malani
10ace25816 Merge "Make display brightness ramp rate fast configurable" into nyc-dev 2016-04-01 00:59:02 +00:00
Aga Wronska
44af36f474 Merge "Add comment for FLAG_TRANSLUCENT_STATUS added in CL 898928" into nyc-dev 2016-04-01 00:58:25 +00:00
Aga Wronska
cf59d32e59 Add comment for FLAG_TRANSLUCENT_STATUS added in CL 898928
Change-Id: I8f4ad4e00c6ce46e61afc087daa890eb90ed18a1
2016-03-31 17:55:44 -07:00
Lorenzo Colitti
f5120236c4 Merge "Honour the DHCP MTU option." into nyc-dev 2016-04-01 00:55:08 +00:00
Adam Lesinski
30906ad2d6 Merge "AAPT2: Change how we generate Java classes" into nyc-dev 2016-04-01 00:44:21 +00:00
Yang Ni
0c6ed67c3a Merge "Added CloseGuard for BaseObj" into nyc-dev 2016-04-01 00:33:58 +00:00
Russell Brenner
b3ad567624 Add new permission for am.updateLockTaskPackages()
Adds android.permission.UPDATE_LOCK_TASK_PACKAGES, available only to
the system and setup wizard, providing access to
updateLockTaskPackages() without registering with the device policy
manager as a device owner.

Bug: 20016740
Change-Id: I6eceb5cece9407c84eabf3a818bb908f95989b91
2016-03-31 17:32:08 -07:00
Russell Brenner
b23346639b Add new protection level for setup wizard
Adds PROTECTION_LEVEL_SETUP, a privileged permission for use only by
the setup wizard.

Bug: 20016740

Change-Id: Ib95e349c54d5d12465bf43162975dfb628ef2434
2016-03-31 17:32:07 -07:00
Aga Wronska
b8572b3d50 Merge "Fix dialogs layout after keyboard shows up" into nyc-dev 2016-03-31 23:54:11 +00:00
Adam Lesinski
6cbfb1de49 AAPT2: Change how we generate Java classes
Previously we would be writing out the Manifest.java file as we
processed the AndroidManifest.xml. This would lead to empty
Manifest classes if there were no permissions or permission groups
defined in the AndroidManifest.xml.

This would pose problems for processes that checked for public classes
and considered them part of the API (support lib).

Now we collect the structure of the Java class in memory before deciding
if a file should be created.

Change-Id: I6b909f28d74356414c6ef5ad005180d6ea5e44ca
2016-03-31 16:43:04 -07:00
Aga Wronska
c573bec8cf Add metrics for drag and drop.
Add metrics for search.

Change-Id: I77cb1d13360d764556730303eeb44e14e917b0fa
Fixed: 27940726
2016-03-31 16:39:56 -07:00
Wei Wang
3054d01032 Merge "Add death monitor to AsyncChannel Server." into nyc-dev 2016-03-31 23:13:35 +00:00
Winson Chung
0b0b9a5e80 Merge "Fixing small regression in clear-all button and scrim alpha animation." into nyc-dev 2016-03-31 23:05:48 +00:00
Jaesung Chung
d37577d109 Merge "ExifInterface: deprecate duplicated tags" into nyc-dev 2016-03-31 23:04:43 +00:00
Winson
47c78f93c2 Fixing small regression in clear-all button and scrim alpha animation.
Bug: 27702186
Change-Id: Ie26fa7e2cd73fe8e5e6800e47859ac3bbd763fe4
2016-03-31 23:04:40 +00:00
Yang Ni
6484b6be5c Added CloseGuard for BaseObj
Bug: 27719830

To turn on warnings, apps have to add to their Activity.onCreate() method
the following code.

        StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder()
                               .detectLeakedClosableObjects()
                               .penaltyLog()
                               .build());

For Slang generated ScriptC derived classes, we assume their
constructors won't throw exceptions after calling the ScriptC
constructor. In addition, ScriptIntrinsic derived classes do not seem
to throw exceptions in their constructors either. Therefore, we can
leave the guard.open() call in the Script constructor. This may be
only an approximation, but allows us to add CloseGuard for script
objects without making changes to slang.

Change-Id: I77ed45239a60b85af5c811dee6c124fb53da9060
(cherry picked from commit eb4dd08ec132f83745b8b28fa7da58eb4478b5b9)
2016-03-31 15:57:23 -07:00