Commit Graph

304244 Commits

Author SHA1 Message Date
Matthew Ng
72800a9373 Remove accessibility labels of application info and dimiss
After moving application info and dismiss actions into custom actions
this will remove the talkback options by removing their labels.

Test: listened to options with talkback
Fixes: 29360763
Change-Id: Ia2cc788b22d1fcede58cb43cdbfe23c055604105
2017-01-24 15:10:38 -08:00
Yohei Yukawa
8977e0693f Merge "Delay tasks from IMMS constructor to later phase" 2017-01-24 01:51:07 +00:00
TreeHugger Robot
5c5e0ac419 Merge "Eliminating sections." 2017-01-24 01:41:57 +00:00
TreeHugger Robot
e1c8372fb6 Merge "Fix NPE in LockPatternUtils" 2017-01-24 01:26:44 +00:00
TreeHugger Robot
24454ca4b8 Merge "Add an 'am crash' shell command" 2017-01-24 01:25:12 +00:00
Hongming Jin
7439b7cb61 Merge "Test: AccountManagerService APCT test." 2017-01-24 00:50:22 +00:00
Chris Tate
a89f76fb7e Merge "Send USB_STATE broadcast to manifest receivers" 2017-01-24 00:49:30 +00:00
Chris Craik
540dbd08ad Merge "Use @CriticalNative in Canvas" 2017-01-24 00:15:02 +00:00
TreeHugger Robot
8e9a42e84b Merge "light HAL uses "default" service name" 2017-01-24 00:14:34 +00:00
Dmitri Plotnikov
d11b9e77e4 Merge "Adding TvExtender channel override" 2017-01-24 00:07:42 +00:00
Dianne Hackborn
5f1a2a34d9 Merge "Optimize bg check flow." 2017-01-24 00:05:38 +00:00
Chris Phoenix
e9d42decca light HAL uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934
Change-Id: Id22d27d7e401de426b1a236067c1b4c7f6c99a3e
2017-01-23 23:56:38 +00:00
Rubin Xu
4929a5d3b4 Fix NPE in LockPatternUtils
mDevicePolicyManager field can be null if getDevicePolicyManager()
is never called. A previous refactor removed an apparent unused call
to getDevicePolicyManager(), leading to NPE when mDevicePolicyManager
is accessed. We should always use getDevicePolicyManager() to access
DevicePolicyManager instance.

Test: manual
Bug: 34612758
Change-Id: Ic964b4ee4e3c56301295b8f0629bd005c732c5c4
2017-01-23 23:55:28 +00:00
TreeHugger Robot
2ba96eced0 Merge "Add tests for b/34598346" 2017-01-23 23:46:00 +00:00
TreeHugger Robot
70a1a72eff Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable" 2017-01-23 23:27:59 +00:00
Yohei Yukawa
7924782c00 Delay tasks from IMMS constructor to later phase
This is	a preparation CL for Bug 32343335.

This CL basically addresses the concern raised in a previous CL [1]
that added several synchnonized blocks in the constructor of
InputMethodManagerService (IMMS).

After hours of code reading and investigation, it is concluded to be
safe IMMS to behave as if there was no IME available until
SystemService.PHASE_ACTIVITY_MANAGER_READY phase. This allows IMMS to
register callbacks not in the constructor but in the later phase to
addresses the concern that object references to IMMS could be leaked
into different threads before IMMS object is properly constructed.

As far as performance is concerned, basically the amount of tasks
to be done in the main thread remains same, or could be reduced a bit
if some unnecessary callback events were skipped. To confirm this, we
can check the total number of the following performance metrics.
 - StartInputMethodManagerLifecycle
 - StartActivityManagerReadyPhase

 [1]: I9d4d3d7232c984432185c10c13fb726a6158cac8
      8f202f82fd86a3b40bc5e7d62779eddff21096b1

Bug: 32343335
Test: Manual: pre-installed IME on Direct-Boot disabled device
Test: Manual: pre-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot enabled device
Test: Manual: user-installed IME on Direct-Boot disabled device
Test: Manual: user switching scenario on Direct-Boot enabled device
Test: Manual: user switching scenario on Direct-Boot disabled device
Test: Manual: device unlocking scenario on Direct-Boot enabled device
Change-Id: I5b37c450db4b25b3e635b6d634293a34eec8b9d4
2017-01-23 15:26:15 -08:00
Ta-wei Yen
a132bbd5a8 Merge "Extend carrier configs for visual voicemail" 2017-01-23 23:22:34 +00:00
Hongming Jin
c1a892a967 Test: AccountManagerService APCT test.
Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.

Bug: 31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c
2017-01-23 15:20:54 -08:00
TreeHugger Robot
19655fc019 Merge "SysUI fragments: Integrate new support for constructing" 2017-01-23 23:01:09 +00:00
Christopher Tate
4ca071da28 Send USB_STATE broadcast to manifest receivers
Bug 34594920

Change-Id: I5d026f469710960b792dcf1bfebc1c07f90c6182
2017-01-23 14:35:28 -08:00
Svetoslav Ganov
4bd54c70fa Merge "Allow shared lib and package name to match" 2017-01-23 22:25:48 +00:00
Chris Craik
bfa0b29883 Use @CriticalNative in Canvas
Bug: 33460152
Test: ViewShowHidePerfTests

Switches non-drawing @FastNative methods to @CriticalNative, except
where out arguments prevent it.

Performance in ViewShowHidePerfTests not significantly impacted.

Change-Id: I3edc963accb4f87f73d175c7b2534868602a7db3
2017-01-23 14:25:06 -08:00
TreeHugger Robot
6500b1450d Merge "Do not allow ephemeral apps to access ShortcutManager" 2017-01-23 22:24:48 +00:00
Svetoslav Ganov
5733d9de2c Allow shared lib and package name to match
The old package manager implementation was guarding for
shared libs to not match any package name but due to a
bug this was not enfroced and as a result we have apps
where the package and lib match, e.g. GCore. The new
static shared lib support properly enforced the rule
breaking apps. So, this CL relexes the constraint.

Test: CTS test in the topic passes

bug:34598313

Change-Id: I15d22fd1c3a44a27c4b9b8379de3992ae553dd05
2017-01-23 22:23:05 +00:00
Adrian Roos
5304e89dfd Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked" 2017-01-23 22:21:07 +00:00
Dianne Hackborn
c3af19a87d Optimize bg check flow.
No longer need to look up the application info, target SDK is
explicitly passed in to the check.  For the external method, we
change this to just checked to see if background is completely
disabled, which doesn't need a target SDK check (and is the only
thing any of the current clients care about).

Now allow SystemUI to put targets of notification pending intents
on the temporary whitelist when they fire, so developers can avoid
dealing with background restrictions in this case (if the user
interacts with their notification, they will temporarily be
considered in the foreground).

Remove any thoughts of enforing restrictions on registerReceiver(),
so we don't need to deal with target SDK versions there (which can't
be done all that efficiently).

Also bring back the old "allow starts coming from foreground apps"
only for the MODE_IGNORE app op, since it should provide some
better compatibility.

Test: ran them.

Change-Id: Id4ea7f992d12ce4bd8e54f1dbaeb4a460a3dee59
2017-01-23 14:18:33 -08:00
John Reck
47aa8d1477 Add tests for b/34598346
Test: unit test passes
Bug: 34598346
Change-Id: I7e5144aa875e42487718059cc06b86e32db28702
2017-01-23 14:07:53 -08:00
Adrian Roos
ef7a402268 PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable
Adds a regression test for NPEs around executeRunnableDismissingKeyguard when
a null runnable is passed.

The bug was fixed in I89477a8a0067e285e5d0122e918fac45274c57ad.

Fixes: 33489225
Test: runtest systemui
Change-Id: Ia8981bc4c2a1a0f6d8c48e6d66e2af801d6cddac
2017-01-23 13:43:59 -08:00
Jason Monk
20ff3f9255 SysUI fragments: Integrate new support for constructing
Use a new system for constructing fragments so they can be swapped
out in place maintaining state. This will allow easier integration
with plugin lifecycle as parents who have child plugin fragments
can depend on the class existing and won't have to listen to
the lifecycle.

Test: runtest systemui
Change-Id: I517f4ce3d114abd49b1b5baca388d19e929b8f90
2017-01-23 16:28:03 -05:00
Richard Coles
2536cc6872 Merge "Expose isMultiProcessEnabled via WebViewDelegate." 2017-01-23 21:23:45 +00:00
TreeHugger Robot
65e8f0adf3 Merge "Workaround libmemunreachable lockup" 2017-01-23 21:16:55 +00:00
Ashutosh Joshi
f1d9a7e6e4 Merge "Remove AR packages from preloaded classes." 2017-01-23 21:03:01 +00:00
TreeHugger Robot
8eb691db0e Merge "Restore foreground service notifications" 2017-01-23 20:58:53 +00:00
TreeHugger Robot
0fd8eb2342 Merge "Better error message for privapp-permissions test" 2017-01-23 20:53:24 +00:00
Soonil Nagarkar
086ab84878 Merge "Add background location throttling to LocationManagerService" 2017-01-23 20:42:49 +00:00
Adrian Roos
0b1853f997 KeyguardManager: Fix user resolution of isDeviceSecure/Locked
Fixes isDeviceSecure and isDeviceLocked APIs to use
the user id of the app that executes the code rather
than that of any incoming binder call.

Change-Id: Ib7772b60c35a3ebf96830f9b013c539021e1f063
Fixes: 34592592
Test: manual
2017-01-23 12:40:30 -08:00
Aurimas Liutikas
4ced22d644 Merge "Port RecyclerView to com.android.internal.widget.RecyclerView" 2017-01-23 20:38:42 +00:00
TreeHugger Robot
2d31375d94 Merge "Remove all calls to SkCanvas::getClipStack from HWUI unit tests" 2017-01-23 20:37:16 +00:00
TreeHugger Robot
2505b72247 Merge "Add ResolverActivity testing" 2017-01-23 20:32:53 +00:00
TreeHugger Robot
1f42d9a6ec Merge "Fix recent checkPermission() bug." 2017-01-23 20:27:32 +00:00
Makoto Onuki
66e4a2b801 Do not allow ephemeral apps to access ShortcutManager
Bug: 34178279
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Change-Id: I5672f15705a1bf6568a8df58b66e48c802c11852
2017-01-23 12:20:29 -08:00
TreeHugger Robot
eeb4e1d219 Merge "Change WebView fallback mechanism to consider all users' package states." 2017-01-23 20:20:15 +00:00
Christopher Tate
8aa8fe1289 Add an 'am crash' shell command
Induce a normal VM crash via adb, because it's quite different from the
effects of 'am kill'.

Test: induced crashes via adb shell using both pid & pkg

Change-Id: I79654afa7c4a70364cfd7d3af3e80a7b0e59b882
2017-01-23 20:18:45 +00:00
TreeHugger Robot
4a65687b85 Merge "Expose fonts.xml via public API with a service" 2017-01-23 19:57:23 +00:00
TreeHugger Robot
55725f0023 Merge "Add missing nothingToDraw() check" 2017-01-23 19:51:37 +00:00
Brad Ebinger
38e704cace Merge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1 am: 50315f010c
am: aaad10d729

Change-Id: I35639813b1d356df1fea82c9470bd18fda1c5267
2017-01-23 19:49:34 +00:00
Brad Ebinger
aaad10d729 Merge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1
am: 50315f010c

Change-Id: I89621d6f584ee743b67838a11fde212d2030900c
2017-01-23 19:38:42 +00:00
Brad Ebinger
50315f010c Merge "Deprecate old TelecomManager actions" am: d1ab15a1af
am: ee9a9babb1

Change-Id: Ib24d46d70b10cd8bb6ac39fd4dc915ac9a19a3ba
2017-01-23 19:31:18 +00:00
TreeHugger Robot
0078315a2a Merge "Work on sysui dependencies" 2017-01-23 19:31:15 +00:00
TreeHugger Robot
953038d1ce Merge changes from topic 'anb'
* changes:
  Adding HardwareBuffer, a Java wrapper around AHardwareBuffer.
  AHardwareBuffer implementation.
2017-01-23 19:29:05 +00:00