OSDN Git Service

android-x86/frameworks-base.git
7 years agoWhitelist CHANGE_DEVICE_IDLE_TEMP_WHITELIST for systemui
Fyodor Kupolov [Tue, 24 Jan 2017 19:39:23 +0000 (11:39 -0800)]
Whitelist CHANGE_DEVICE_IDLE_TEMP_WHITELIST for systemui

Test: device starts without warning
Change-Id: Ia13f7cee3da7eb2ac185415b44b6905f0f28c487

7 years agoMerge "Fix crash on user switch"
TreeHugger Robot [Tue, 24 Jan 2017 17:23:04 +0000 (17:23 +0000)]
Merge "Fix crash on user switch"

7 years agoMerge "Implement time markers for TTS."
Niels Egberts [Tue, 24 Jan 2017 17:19:30 +0000 (17:19 +0000)]
Merge "Implement time markers for TTS."

7 years agoMerge "Implement TextClassification-related methods."
TreeHugger Robot [Tue, 24 Jan 2017 16:54:52 +0000 (16:54 +0000)]
Merge "Implement TextClassification-related methods."

7 years agoMerge "Create Public API which exposes if the device is in a state where simultaneous...
Pankaj Kanwar [Tue, 24 Jan 2017 16:47:02 +0000 (16:47 +0000)]
Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible."

7 years agoMerge "Fix ImeSubtypeListItem#compareTo()"
Yohei Yukawa [Tue, 24 Jan 2017 16:37:06 +0000 (16:37 +0000)]
Merge "Fix ImeSubtypeListItem#compareTo()"

7 years agoMerge "Changes the default value of Notification.Action.mAllowGeneratedReplies"
Alexander Hills [Tue, 24 Jan 2017 16:31:38 +0000 (16:31 +0000)]
Merge "Changes the default value of Notification.Action.mAllowGeneratedReplies"

7 years agoFix crash on user switch
Jason Monk [Tue, 24 Jan 2017 15:53:57 +0000 (10:53 -0500)]
Fix crash on user switch

Don't re-register a user switcher while getting a user switched
callback, because that will cause a crash.

Test: switch users.
Fixes: 34661001
Change-Id: I31453d75aabe6ecd657e7500cf1823890d5262a0

7 years agoChanges the default value of Notification.Action.mAllowGeneratedReplies
Alex Hills [Thu, 12 Jan 2017 16:24:46 +0000 (11:24 -0500)]
Changes the default value of Notification.Action.mAllowGeneratedReplies

Changes the default from false to true

Bug:31934635
Fixes:31934635
Test: CTS tests in ag/1824710
Change-Id: I1c7097627e77eed12bb9cc644c1cbb5c3197a750

7 years agoMerge "Provisioning terms screen constants"
Mahaver Chopra [Tue, 24 Jan 2017 15:33:53 +0000 (15:33 +0000)]
Merge "Provisioning terms screen constants"

7 years agoImplement time markers for TTS.
Niels Egberts [Fri, 23 Dec 2016 12:01:32 +0000 (12:01 +0000)]
Implement time markers for TTS.

The service can inform the framework at which frame a part of the input
is spoken, and that information is then relayed to the client.

This can be used to highlight the currently spoken word/sentence or to
resume synthesis requests at the start of the last word/sentence.

Test: manual
Change-Id: Ie20a6764a8788cc3539cb058425e55eb6fde07db

7 years agoMerge "Add updatable fields to Ranking"
Julia Reynolds [Tue, 24 Jan 2017 15:15:24 +0000 (15:15 +0000)]
Merge "Add updatable fields to Ranking"

7 years agoMerge "add "splitName" attribute"
TreeHugger Robot [Tue, 24 Jan 2017 15:13:47 +0000 (15:13 +0000)]
Merge "add "splitName" attribute"

7 years agoImplement TextClassification-related methods.
Abodunrinwa Toki [Fri, 13 Jan 2017 21:46:33 +0000 (13:46 -0800)]
Implement TextClassification-related methods.

 Implements TextClassificationManager.detectLanguages
 Implements TextClassifier interface

Bug: 34661057
Test: See: Ic2a5eceeaec4cd2943c6c753084df46d30511fee
Change-Id: Ic640b96f48bcad7cdd8c4dfac354b008a7ae3961

7 years agoMerge "[SettingsProvider] Auto disable ringtone sync"
TreeHugger Robot [Tue, 24 Jan 2017 15:05:22 +0000 (15:05 +0000)]
Merge "[SettingsProvider] Auto disable ringtone sync"

7 years agoMerge "Update TextAssistant interface."
Abodunrinwa Toki [Tue, 24 Jan 2017 15:04:26 +0000 (15:04 +0000)]
Merge "Update TextAssistant interface."

7 years agoUpdate TextAssistant interface.
Abodunrinwa Toki [Wed, 4 Jan 2017 23:51:42 +0000 (23:51 +0000)]
Update TextAssistant interface.

Rename to TextClassifier
Move to android.view.textclassifier package
Adds getTextClassifierInfo(...)
Changes addLinks(...) to getLinks(...)

This CL also integrates this interface with framework components
and passes a context to TextClassificationManager.

Test: Tests will be added with implementation.
Bug: 34661057
Change-Id: If9e90f034ebb702c1f78e72b6a844f39eebf738f

7 years agoMerge "Tron - Omit overlong lines and warn when doing so."
Alison Cichowlas [Tue, 24 Jan 2017 14:39:26 +0000 (14:39 +0000)]
Merge "Tron - Omit overlong lines and warn when doing so."

7 years agoAdd updatable fields to Ranking
Julia Reynolds [Thu, 19 Jan 2017 14:52:07 +0000 (09:52 -0500)]
Add updatable fields to Ranking

- NotificationChannel
- Badging

Test: runtest systemuinotification & cts

Change-Id: I7fd1f2dc06148927e9a4bd5b760d436e2c5e8a98

7 years agoMerge "Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_1256...
TreeHugger Robot [Tue, 24 Jan 2017 11:35:14 +0000 (11:35 +0000)]
Merge "Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d"

7 years ago[SettingsProvider] Auto disable ringtone sync
Andre Lago [Thu, 22 Sep 2016 17:00:41 +0000 (18:00 +0100)]
[SettingsProvider] Auto disable ringtone sync

Disable the SYNC_PARENT_SOUNDS setting if a work profile ringtone is set

Test: cts-tradefed --test com.android.cts.devicepolicy.ManagedProfileTest
Bug: 30658854
Change-Id: I172f5396b47f03ac8afa365db0ec90f3a2dd0e29

7 years agoFix ImeSubtypeListItem#compareTo()
Yohei Yukawa [Tue, 24 Jan 2017 08:29:07 +0000 (00:29 -0800)]
Fix ImeSubtypeListItem#compareTo()

It turns out that ImeSubtypeListItem#compareTo() does not satisfy the
contract of Comparable#compareTo(), which can trigger
IllegalArgumentException from Collections.sort() depending on the
runtime condition.

This CL makes it clear that two instances of ImeSubtypeListItem will be
compared with with those fileds in the following order.

  1. ImeSubtypeListItem#mImeName
  2. ImeSubtypeListItem#mSubtypeName
  3. ImeSubtypeListItem#mIsSystemLocale
  4. ImeSubtypeListItem#mIsSystemLanguage

Bug: 34255739
Test: adb shell am instrument -w -e class com.android.internal.inputmethod.InputMethodSubtypeSwitchingControllerTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I47f902cc8f5873926d238c30e462d08d7dbebcf7

7 years agoMerge "Add an accidentally removed call to update libs"
TreeHugger Robot [Tue, 24 Jan 2017 05:58:36 +0000 (05:58 +0000)]
Merge "Add an accidentally removed call to update libs"

7 years agoMerge "More APIs for cache status and behavior."
TreeHugger Robot [Tue, 24 Jan 2017 05:32:56 +0000 (05:32 +0000)]
Merge "More APIs for cache status and behavior."

7 years agoMerge "Fix crashloop in CarStatusBar."
TreeHugger Robot [Tue, 24 Jan 2017 04:04:34 +0000 (04:04 +0000)]
Merge "Fix crashloop in CarStatusBar."

7 years agoMore APIs for cache status and behavior.
Jeff Sharkey [Tue, 24 Jan 2017 03:37:05 +0000 (20:37 -0700)]
More APIs for cache status and behavior.

Add APIs for apps to query their cache usage compared to their
currently allocated quota.  Since an app's private storage may live
on a different storage volume than the primary shared/external
storage, offer APIs to retrieve those values separately.

Add APIs to control two new cache purging behaviors:

-- setCacheBehaviorAtomic() which causes a marked directory and its
contents to be treated as an atomic unit.
-- setCacheBehaviorTombstone() which causes the OS to truncate
files instead of deleting them.

Test: builds, boots
Bug: 338118263396585827948817
Change-Id: I45de165623775c359f78b4ee544c2b5831b8d483

7 years agoMerge "Introduce RecoverableSecurityException."
Jeff Sharkey [Tue, 24 Jan 2017 03:19:15 +0000 (03:19 +0000)]
Merge "Introduce RecoverableSecurityException."

7 years agoMerge "Allow the profile owner to enforce auto time."
Jason Parks [Tue, 24 Jan 2017 02:46:26 +0000 (02:46 +0000)]
Merge "Allow the profile owner to enforce auto time."

7 years agoMerge "Document dependency between Intent symbols and dumpstate"
Chris Tate [Tue, 24 Jan 2017 02:17:11 +0000 (02:17 +0000)]
Merge "Document dependency between Intent symbols and dumpstate"

7 years agoMerge "Expose colorimetry capabilities on Display"
TreeHugger Robot [Tue, 24 Jan 2017 02:15:54 +0000 (02:15 +0000)]
Merge "Expose colorimetry capabilities on Display"

7 years agoDocument dependency between Intent symbols and dumpstate
Christopher Tate [Mon, 23 Jan 2017 20:21:13 +0000 (12:21 -0800)]
Document dependency between Intent symbols and dumpstate

Bug 34594835

Test: N/A
Change-Id: I4494c224bc6341c7a41b79361ba599befc408341

7 years agoFix crashloop in CarStatusBar.
Rakesh Iyer [Tue, 24 Jan 2017 02:10:21 +0000 (18:10 -0800)]
Fix crashloop in CarStatusBar.

System ui seems to be undergoing a refactor to bring in
dependency injection, in the process, mBatteryController
in CarStatusBar was not being set, causing a NPE.

Since it looks like the work is still ongoing, this is
just a spot fix for the crash, once the dependency injection
migration is complete, we can reexamine the CarStatusBar
implementation.

Bug: 34633087
Test: Verified that system booted correctly.
Change-Id: Idd3e0286fd87196ae572349904d5bef744d54353

7 years agoCreate Public API which exposes if the device is in a state where simultaneous
pkanwar [Thu, 19 Jan 2017 20:24:19 +0000 (12:24 -0800)]
Create Public API which exposes if the device is in a state where simultaneous
voice and data are possible.

BUG: 32912296
Test: Not required.
Change-Id: If603aa37c774157f0a3af12ca4ac6bafad94340d

7 years agoMerge "Delay tasks from IMMS constructor to later phase"
Yohei Yukawa [Tue, 24 Jan 2017 01:51:04 +0000 (01:51 +0000)]
Merge "Delay tasks from IMMS constructor to later phase"

7 years agoMerge "Eliminating sections."
TreeHugger Robot [Tue, 24 Jan 2017 01:41:54 +0000 (01:41 +0000)]
Merge "Eliminating sections."

7 years agoMerge "Fix NPE in LockPatternUtils"
TreeHugger Robot [Tue, 24 Jan 2017 01:26:39 +0000 (01:26 +0000)]
Merge "Fix NPE in LockPatternUtils"

7 years agoMerge "Add an 'am crash' shell command"
TreeHugger Robot [Tue, 24 Jan 2017 01:25:09 +0000 (01:25 +0000)]
Merge "Add an 'am crash' shell command"

7 years agoExpose colorimetry capabilities on Display
Romain Guy [Sat, 21 Jan 2017 02:41:06 +0000 (18:41 -0800)]
Expose colorimetry capabilities on Display

Test: CtsDisplayTestCases
Bug: 32984164
Change-Id: I11e6a85a27959c578eeac276ac0e2c8ab8db70bf

7 years agoMerge "Test: AccountManagerService APCT test."
Hongming Jin [Tue, 24 Jan 2017 00:50:18 +0000 (00:50 +0000)]
Merge "Test: AccountManagerService APCT test."

7 years agoMerge "Send USB_STATE broadcast to manifest receivers"
Chris Tate [Tue, 24 Jan 2017 00:49:27 +0000 (00:49 +0000)]
Merge "Send USB_STATE broadcast to manifest receivers"

7 years agoAdd an accidentally removed call to update libs
Svetoslav Ganov [Tue, 24 Jan 2017 00:36:40 +0000 (16:36 -0800)]
Add an accidentally removed call to update libs

Disabled system package may define a lib which its
update does not. When the update is uninstalled we
need to upate the libs so ppl can use the lib in
the now restored sys package.

Change-Id: I22e6aafde86838fa76aa74eda8dfe2c528f998aa

7 years agoIntroduce RecoverableSecurityException.
Jeff Sharkey [Mon, 23 Jan 2017 23:58:02 +0000 (16:58 -0700)]
Introduce RecoverableSecurityException.

This takes advantage of the recently added behavior that offers to
send Parcelable exception types across Binder calls.

Certain SecurityException can be resolved if we involve the end user,
such as when a password has expired, or a user challenge is required
to proceed.  This new subclass of SecurityException provides
user-visible messaging and convenience methods for quickly rendering
that messaging as a notification or dialog.

Test: builds, boots, throws, shows as notification and dialog
Bug: 33749182
Change-Id: Iba66c7466b8fabca9e3f83c60db5a4ab849a256f

7 years agoMerge "Use @CriticalNative in Canvas"
Chris Craik [Tue, 24 Jan 2017 00:14:57 +0000 (00:14 +0000)]
Merge "Use @CriticalNative in Canvas"

7 years agoMerge "light HAL uses "default" service name"
TreeHugger Robot [Tue, 24 Jan 2017 00:14:29 +0000 (00:14 +0000)]
Merge "light HAL uses "default" service name"

7 years agoMerge "Adding TvExtender channel override"
Dmitri Plotnikov [Tue, 24 Jan 2017 00:07:38 +0000 (00:07 +0000)]
Merge "Adding TvExtender channel override"

7 years agoMerge "Optimize bg check flow."
Dianne Hackborn [Tue, 24 Jan 2017 00:05:34 +0000 (00:05 +0000)]
Merge "Optimize bg check flow."

7 years agolight HAL uses "default" service name
Chris Phoenix [Mon, 23 Jan 2017 22:18:26 +0000 (14:18 -0800)]
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

7 years agoFix NPE in LockPatternUtils
Rubin Xu [Mon, 23 Jan 2017 23:55:28 +0000 (23:55 +0000)]
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

7 years agoMerge "Add tests for b/34598346"
TreeHugger Robot [Mon, 23 Jan 2017 23:45:56 +0000 (23:45 +0000)]
Merge "Add tests for b/34598346"

7 years agoTron - Omit overlong lines and warn when doing so.
Alison Cichowlas [Thu, 19 Jan 2017 14:47:17 +0000 (09:47 -0500)]
Tron - Omit overlong lines and warn when doing so.

Test: updated LogBuilderTest

Change-Id: I0218acfacca53598a546cea5b3adeecd0d639031

7 years agoAllow the profile owner to enforce auto time.
Jason Parks [Tue, 17 Jan 2017 21:25:17 +0000 (15:25 -0600)]
Allow the profile owner to enforce auto time.

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Change-Id: I1cb04cce5d232fba668535dd391459a050d62dd7

7 years agoMerge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable"
TreeHugger Robot [Mon, 23 Jan 2017 23:27:53 +0000 (23:27 +0000)]
Merge "PhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable"

7 years agoDelay tasks from IMMS constructor to later phase
Yohei Yukawa [Mon, 23 Jan 2017 23:26:15 +0000 (15:26 -0800)]
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

7 years agoMerge "Extend carrier configs for visual voicemail"
Ta-wei Yen [Mon, 23 Jan 2017 23:22:29 +0000 (23:22 +0000)]
Merge "Extend carrier configs for visual voicemail"

7 years agoTest: AccountManagerService APCT test.
Hongming Jin [Mon, 23 Jan 2017 19:37:27 +0000 (11:37 -0800)]
Test: AccountManagerService APCT test.

Add tests for startUpdateCredentials, finishSession and isCredentialsUpdateSuggested.

Bug: 31346530
Change-Id: I8c93b6b0db50086a83894eadfcf6a2398be81b6c

7 years agoMerge "SysUI fragments: Integrate new support for constructing"
TreeHugger Robot [Mon, 23 Jan 2017 23:01:05 +0000 (23:01 +0000)]
Merge "SysUI fragments: Integrate new support for constructing"

7 years agoSend USB_STATE broadcast to manifest receivers
Christopher Tate [Mon, 23 Jan 2017 22:35:28 +0000 (14:35 -0800)]
Send USB_STATE broadcast to manifest receivers

Bug 34594920

Change-Id: I5d026f469710960b792dcf1bfebc1c07f90c6182

7 years agoMerge "Allow shared lib and package name to match"
Svetoslav Ganov [Mon, 23 Jan 2017 22:25:44 +0000 (22:25 +0000)]
Merge "Allow shared lib and package name to match"

7 years agoUse @CriticalNative in Canvas
Chris Craik [Fri, 20 Jan 2017 03:12:36 +0000 (19:12 -0800)]
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

7 years agoMerge "Do not allow ephemeral apps to access ShortcutManager"
TreeHugger Robot [Mon, 23 Jan 2017 22:24:44 +0000 (22:24 +0000)]
Merge "Do not allow ephemeral apps to access ShortcutManager"

7 years agoAllow shared lib and package name to match
Svetoslav Ganov [Mon, 23 Jan 2017 22:13:30 +0000 (14:13 -0800)]
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

7 years agoMerge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"
Adrian Roos [Mon, 23 Jan 2017 22:21:03 +0000 (22:21 +0000)]
Merge "KeyguardManager: Fix user resolution of isDeviceSecure/Locked"

7 years agoOptimize bg check flow.
Dianne Hackborn [Sat, 21 Jan 2017 01:00:44 +0000 (17:00 -0800)]
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

7 years agoAdd tests for b/34598346
John Reck [Mon, 23 Jan 2017 19:20:37 +0000 (11:20 -0800)]
Add tests for b/34598346

Test: unit test passes
Bug: 34598346
Change-Id: I7e5144aa875e42487718059cc06b86e32db28702

7 years agoMerge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d
Nancy Zheng [Mon, 23 Jan 2017 22:04:19 +0000 (14:04 -0800)]
Merge commit '12562abcd47de4aee3b0469cb04bf771c2072113' into manual_merge_12562abcd47d

Test: manually tested upstream

Change-Id: I8ca2eebcb468f73bf609ed09dc141a2bf40b8697

7 years agoadd "splitName" attribute
Todd Kennedy [Mon, 23 Jan 2017 14:49:29 +0000 (06:49 -0800)]
add "splitName" attribute

Attribute is availble on activity, provider and service components. Allows
specifying which split contains that component.

Test: built test app with attribute
Change-Id: Ibc615321035f76a71d0dce5a6fae3f3ef4c3e762

7 years agoPhoneStatusBar: Add test for executeRunnableDismissingKeyguard with null runnable
Adrian Roos [Thu, 19 Jan 2017 22:48:35 +0000 (14:48 -0800)]
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

7 years agoQuery for the settings package in KeyguardManager instead of hardcoding it. am: e256a...
Nancy Zheng [Mon, 23 Jan 2017 21:34:45 +0000 (21:34 +0000)]
Query for the settings package in KeyguardManager instead of hardcoding it. am: e256a18dcd
am: ed92230c38

Change-Id: I41ef0f14cbd3f7e19e6fde0cdf636619683704a2

7 years agoSysUI fragments: Integrate new support for constructing
Jason Monk [Mon, 9 Jan 2017 20:13:23 +0000 (15:13 -0500)]
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

7 years agoMerge "Expose isMultiProcessEnabled via WebViewDelegate."
Richard Coles [Mon, 23 Jan 2017 21:23:41 +0000 (21:23 +0000)]
Merge "Expose isMultiProcessEnabled via WebViewDelegate."

7 years agoQuery for the settings package in KeyguardManager instead of hardcoding it.
Nancy Zheng [Mon, 23 Jan 2017 21:23:40 +0000 (21:23 +0000)]
Query for the settings package in KeyguardManager instead of hardcoding it.
am: e256a18dcd

Change-Id: I9e83ca9e1cab882fc0f508ba6c538e08b4fa7499

7 years agoMerge "Workaround libmemunreachable lockup"
TreeHugger Robot [Mon, 23 Jan 2017 21:16:50 +0000 (21:16 +0000)]
Merge "Workaround libmemunreachable lockup"

7 years agoMerge "Remove AR packages from preloaded classes."
Ashutosh Joshi [Mon, 23 Jan 2017 21:02:57 +0000 (21:02 +0000)]
Merge "Remove AR packages from preloaded classes."

7 years agoMerge "Restore foreground service notifications"
TreeHugger Robot [Mon, 23 Jan 2017 20:58:49 +0000 (20:58 +0000)]
Merge "Restore foreground service notifications"

7 years agoMerge "Better error message for privapp-permissions test"
TreeHugger Robot [Mon, 23 Jan 2017 20:53:20 +0000 (20:53 +0000)]
Merge "Better error message for privapp-permissions test"

7 years agoMerge "Add background location throttling to LocationManagerService"
Soonil Nagarkar [Mon, 23 Jan 2017 20:42:45 +0000 (20:42 +0000)]
Merge "Add background location throttling to LocationManagerService"

7 years agoKeyguardManager: Fix user resolution of isDeviceSecure/Locked
Adrian Roos [Mon, 23 Jan 2017 20:38:13 +0000 (12:38 -0800)]
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

7 years agoMerge "Port RecyclerView to com.android.internal.widget.RecyclerView"
Aurimas Liutikas [Mon, 23 Jan 2017 20:38:38 +0000 (20:38 +0000)]
Merge "Port RecyclerView to com.android.internal.widget.RecyclerView"

7 years agoMerge "Remove all calls to SkCanvas::getClipStack from HWUI unit tests"
TreeHugger Robot [Mon, 23 Jan 2017 20:37:11 +0000 (20:37 +0000)]
Merge "Remove all calls to SkCanvas::getClipStack from HWUI unit tests"

7 years agoMerge "Add ResolverActivity testing"
TreeHugger Robot [Mon, 23 Jan 2017 20:32:47 +0000 (20:32 +0000)]
Merge "Add ResolverActivity testing"

7 years agoMerge "Fix recent checkPermission() bug."
TreeHugger Robot [Mon, 23 Jan 2017 20:27:27 +0000 (20:27 +0000)]
Merge "Fix recent checkPermission() bug."

7 years agoDo not allow ephemeral apps to access ShortcutManager
Makoto Onuki [Mon, 23 Jan 2017 19:37:45 +0000 (11:37 -0800)]
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

7 years agoMerge "Change WebView fallback mechanism to consider all users' package states."
TreeHugger Robot [Mon, 23 Jan 2017 20:20:10 +0000 (20:20 +0000)]
Merge "Change WebView fallback mechanism to consider all users' package states."

7 years agoAdd an 'am crash' shell command
Christopher Tate [Sat, 21 Jan 2017 01:50:32 +0000 (17:50 -0800)]
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

7 years agoMerge "Expose fonts.xml via public API with a service"
TreeHugger Robot [Mon, 23 Jan 2017 19:57:16 +0000 (19:57 +0000)]
Merge "Expose fonts.xml via public API with a service"

7 years agoMerge "Add missing nothingToDraw() check"
TreeHugger Robot [Mon, 23 Jan 2017 19:51:34 +0000 (19:51 +0000)]
Merge "Add missing nothingToDraw() check"

7 years agoMerge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1 am: 50315f010c
Brad Ebinger [Mon, 23 Jan 2017 19:49:34 +0000 (19:49 +0000)]
Merge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1 am: 50315f010c
am: aaad10d729

Change-Id: I35639813b1d356df1fea82c9470bd18fda1c5267

7 years agoMerge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1
Brad Ebinger [Mon, 23 Jan 2017 19:38:42 +0000 (19:38 +0000)]
Merge "Deprecate old TelecomManager actions" am: d1ab15a1af am: ee9a9babb1
am: 50315f010c

Change-Id: I89621d6f584ee743b67838a11fde212d2030900c

7 years agoMerge "Deprecate old TelecomManager actions" am: d1ab15a1af
Brad Ebinger [Mon, 23 Jan 2017 19:31:18 +0000 (19:31 +0000)]
Merge "Deprecate old TelecomManager actions" am: d1ab15a1af
am: ee9a9babb1

Change-Id: Ib24d46d70b10cd8bb6ac39fd4dc915ac9a19a3ba

7 years agoMerge "Work on sysui dependencies"
TreeHugger Robot [Mon, 23 Jan 2017 19:31:11 +0000 (19:31 +0000)]
Merge "Work on sysui dependencies"

7 years agoMerge changes from topic 'anb'
TreeHugger Robot [Mon, 23 Jan 2017 19:29:01 +0000 (19:29 +0000)]
Merge changes from topic 'anb'

* changes:
  Adding HardwareBuffer, a Java wrapper around AHardwareBuffer.
  AHardwareBuffer implementation.

7 years agoMerge "Deprecate old TelecomManager actions"
Brad Ebinger [Mon, 23 Jan 2017 19:23:35 +0000 (19:23 +0000)]
Merge "Deprecate old TelecomManager actions"
am: d1ab15a1af

Change-Id: Id76db43d6cc4477a328698e049558ef936a4fe1d

7 years agoMerge "Do not log boot times for secondary users and upgrades"
TreeHugger Robot [Mon, 23 Jan 2017 19:18:44 +0000 (19:18 +0000)]
Merge "Do not log boot times for secondary users and upgrades"

7 years agoMerge "Fix cancel notification race condition bug."
TreeHugger Robot [Mon, 23 Jan 2017 19:16:30 +0000 (19:16 +0000)]
Merge "Fix cancel notification race condition bug."

7 years agoMerge "Deprecate old TelecomManager actions"
Brad Ebinger [Mon, 23 Jan 2017 19:09:11 +0000 (19:09 +0000)]
Merge "Deprecate old TelecomManager actions"

7 years agoBetter error message for privapp-permissions test
Fyodor Kupolov [Mon, 23 Jan 2017 19:07:26 +0000 (11:07 -0800)]
Better error message for privapp-permissions test

Bug: 31008485
Test: manual
Change-Id: Ia1acaa83c6d64ff5a7010f222e4e879fee20414e

7 years agoWorkaround libmemunreachable lockup
John Reck [Mon, 23 Jan 2017 18:46:50 +0000 (10:46 -0800)]
Workaround libmemunreachable lockup

Bug: 34586922
Test: hwui_unit_tests completes
Change-Id: Ia55f7bc49faf8a32624e2f16e2477eb12a261b07

7 years agoMerge "Add ability to dump settings as proto buf"
Eugene Susla [Mon, 23 Jan 2017 19:02:12 +0000 (19:02 +0000)]
Merge "Add ability to dump settings as proto buf"

7 years agoMerge "Make the comments of some of the raw GNSS measurements more clear."
TreeHugger Robot [Mon, 23 Jan 2017 18:58:31 +0000 (18:58 +0000)]
Merge "Make the comments of some of the raw GNSS measurements more clear."

7 years agoRestore foreground service notifications
Julia Reynolds [Mon, 23 Jan 2017 18:49:24 +0000 (13:49 -0500)]
Restore foreground service notifications

Fixes: 34582788
Test: manual; start a foreground service) and verify notification
appears (here, set an alarm in Clock app)

Change-Id: Ib788cc78c461d2da32ea9abdb11ab384d1d09dd2