Commit Graph

11969 Commits

Author SHA1 Message Date
TreeHugger Robot
8c3c19dbd3 Merge "Canonicalize notification channel sounds for backup" 2017-10-05 21:06:02 +00:00
Bernardo Rufino
c27bb6ad34 Canonicalize notification channel sounds for backup
Canonicalize for backup and canonicalize and uncanonicalize for restore
(see comment).

Test: Set custom notification sound, make backup, remove notification
sound from device (from Ringtones and make sure to update media content
provider), restore => Observe default instead of random number. Do the
same without removing the sound and observe restores successfully.
Test: runtest systemui-notification
Bug: 66444697
Change-Id: Id2f4685b7f64a35e397eb6dff5246802d795d996
2017-10-05 19:57:31 +01:00
Charles He
aff38adc43 Merge "StatusBar: add DISABLE2_NOTIFICATION_SHADE flag." 2017-10-05 07:52:47 +00:00
Ruben Brunk
5a8466172a Merge "Bind VR compositor service from VrManagerService." into oc-mr1-dev am: c765c2c448
am: 3de064f7cc

Change-Id: I97be49896650231b057285ab13672324a8415f11
2017-10-05 04:15:15 +00:00
Ruben Brunk
3de064f7cc Merge "Bind VR compositor service from VrManagerService." into oc-mr1-dev
am: c765c2c448

Change-Id: I868d30cae1181efc90d41d3a2fea33baa503ff0a
2017-10-05 04:03:03 +00:00
TreeHugger Robot
c765c2c448 Merge "Bind VR compositor service from VrManagerService." into oc-mr1-dev 2017-10-05 03:53:44 +00:00
Felipe Leme
e541b65c03 Merge "Sets AutofillClient on attachBaseContext()" into oc-mr1-dev am: 6d17d9d0cf
am: 63b45a87d5

Change-Id: Ib7ae51cf0336c4cea8ff90d60995816d43b3fa36
2017-10-04 22:42:29 +00:00
Felipe Leme
63b45a87d5 Merge "Sets AutofillClient on attachBaseContext()" into oc-mr1-dev
am: 6d17d9d0cf

Change-Id: I4b1d2a4e308a91d15282ae99ee158b7004b91211
2017-10-04 22:25:18 +00:00
TreeHugger Robot
6d17d9d0cf Merge "Sets AutofillClient on attachBaseContext()" into oc-mr1-dev 2017-10-04 22:17:11 +00:00
Charles He
2eda242fbc StatusBar: add DISABLE2_NOTIFICATION_SHADE flag.
Previously, DISABLE_EXPAND would disable the expansion of the status
bar. But this was only limited to the unlocked case. The status bar (and
thus the quick settings panel) could still be expanded on the lock
screen (keyguard), by swiping down from either the status bar or the
notification cards.

We introduce a new flag which would disable notification shade on all
surfaces, which will be used by DevicePolicyManager to enforce LockTask
restrictions, etc.

Bug: 65813398
Test: runtest systemui
Test: manual, by using a modified version of TestDPC and
      DevicePolicyManager

Change-Id: I364567422e0ca8837ecffa3037adc131c3cef691
2017-10-04 21:11:02 +01:00
Felipe Leme
bb567ae6c0 Sets AutofillClient on attachBaseContext()
When an activity overrides attachBaseContext(), the attached context must share
the same AutofillCient, otherwise it will break autofill in the activity.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.AttachedContextActivityTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 67350639

Change-Id: I6b0c4c2fab5fa68eb6ee0714e107ca0816efb2cb
2017-10-04 12:23:23 -07:00
Yueming Wang
01894fb029 Merge "Add a new WipeData API that allows an input string for the reason to wipe user." 2017-10-04 18:37:21 +00:00
Clara Bayarri
29e6f56950 Merge "Fix NPE in ActivityThread" into oc-mr1-dev am: 348b13f597
am: 889c0c0f12

Change-Id: I93b731cd4a52828e1c3d00018d4c095ab0e508a3
2017-10-04 13:00:52 +00:00
Clara Bayarri
889c0c0f12 Merge "Fix NPE in ActivityThread" into oc-mr1-dev
am: 348b13f597

Change-Id: I4ac05199b93902bb19fd6eb42563e9c4fa00ed6c
2017-10-04 12:51:59 +00:00
TreeHugger Robot
348b13f597 Merge "Fix NPE in ActivityThread" into oc-mr1-dev 2017-10-04 12:40:39 +00:00
Ruben Brunk
52ea662280 Bind VR compositor service from VrManagerService.
- Allow VR system application to have VR manager service bind a
compositor process so that oom scoring for the compositor process can be
adjusted.

Bug: 38390640

Test: Check that the VrCore compositor process is -700 on AIO devices with:

  adb shell procrank -o

Change-Id: I7b5bce5eb87bd5ed0fdeadf4ec7bdd2b361ab875
2017-10-03 20:58:30 -07:00
TreeHugger Robot
498ecb9a07 Merge "Improve job scheduler docs re 'idle' and 'charging' constraints" 2017-10-04 01:33:52 +00:00
TreeHugger Robot
1daecf91e3 Merge "Added ViewNode.getWebScheme()." 2017-10-04 00:50:44 +00:00
Felipe Leme
aee3ccb15c Merge "Fixed URL used on sample." into oc-mr1-dev
am: 6ba7019bb0

Change-Id: I124cbaecd5f8763ecd7f4b06070af48f6b1e0c1d
2017-10-04 00:36:02 +00:00
Felipe Leme
114a441554 Added ViewNode.getWebScheme().
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsAssistTestCases

Fixes: 65207762

Change-Id: Ia8f7b3f5fce8cf0cc783e861fd7e1f1f7f78db19
2017-10-03 14:54:49 -07:00
Felipe Leme
52c6ed3763 Fixed URL used on sample.
Test: nope!
Bug: 66963249

Change-Id: Ieb46c00d97c8657a4e7498a8136c6da46760fbdd
2017-10-03 14:49:15 -07:00
TreeHugger Robot
f725749478 Merge "incidentd: Adding RankingHelper data to NotificationManager proto output." 2017-10-03 21:43:50 +00:00
Christopher Tate
7815251dc6 Improve job scheduler docs re 'idle' and 'charging' constraints
Make it clear that the job scheduler's "idle" constraint is not the
same as "doze" or "device idle," and has nothing to do with
"maintenance windows" or similar.

Also make it clear that the charging constraint is not the same
as simply being connected to some power source.

Test: m offline-sdk-docs
Change-Id: Ibcccf911740d3cfbceaf6cb27bb18318a4f735ca
2017-10-03 13:26:43 -07:00
Kweku Adams
62b4224757 incidentd: Adding RankingHelper data to NotificationManager proto output.
BUG: 65750824
Test: flash on device and look at incident.proto output
Change-Id: I9323cc109d96715b2114aa405eda79ae4c109c14
2017-10-03 12:35:48 -07:00
Clara Bayarri
cb941157a2 Fix NPE in ActivityThread
Calling LoadedApk.getResources() instead of accessing its
mResources directly accounts for the case where this might
not have been initialized.

Bug: 67327250
Test: none
Change-Id: Iaa392a90eefb60ad479cedf8c882976dbe390387
2017-10-03 16:03:22 +00:00
TreeHugger Robot
48ffde7ed0 Merge "[RTT2] New (v2) Wi-Fi RTT framework" 2017-10-03 15:48:31 +00:00
Etan Cohen
17ba47254c [RTT2] New (v2) Wi-Fi RTT framework
Replace existing Wi-Fi RTT manager framework. Creating new framework
in parallel since there's code using the new framework - will be
switched over once new version ready.

New version is AIDL-based.

Bug: 65014552
Test: unit tests and integration tests
Change-Id: Id468c9b2a3c94eb30959f5ac5e4b1688fb8fc633
2017-10-03 07:01:01 -07:00
George Mount
085ef4ed9a Merge "Fix Transition test failure." into oc-mr1-dev am: dbd11d6c8b
am: 8e8e3eff08

Change-Id: Ifbffc328d5d356f77d668deb7104d7d73fc28bf2
2017-10-02 21:37:16 +00:00
George Mount
8e8e3eff08 Merge "Fix Transition test failure." into oc-mr1-dev
am: dbd11d6c8b

Change-Id: I5ae4bde02a4ee2a6d053529ebed0b6aa3dc596c5
2017-10-02 21:23:15 +00:00
yuemingw
f7f67dc538 Add a new WipeData API that allows an input string for the reason to wipe user.
Test: bit FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest

Fix: 31177807

Change-Id: I0b46f4d029d285d5018875f03285551f6b822376
2017-10-02 21:03:44 +01:00
TreeHugger Robot
9748940395 Merge "Update javadoc of {set, get}OrganizationName to clearly specify that it is available for PO since N and DO since O." 2017-10-02 16:59:20 +00:00
Wen ZHANG
2be4cfcc51 Update javadoc of {set, get}OrganizationName to clearly specify that it
is available for PO since N and DO since O.

Test: Change to Javadoc only

Change-Id: Icc54fd8c9f188207f49d623795b17b835fc9b92d
2017-10-02 15:17:38 +00:00
George Mount
3884b03b98 Fix Transition test failure.
Bug: 67049319

TransitionUtils was returning null when the View wasn't attached,
but Visibility transitions can do that intentionally. This CL
temporarily adds detached views to the view hierarchy as part of
an overlay while creating the hardware bitmap representation.

Test: ran transition CTS tests
Change-Id: Ie335619953653dce0224514f0d5c9c8eb00ee1a9
2017-09-29 15:03:47 -07:00
Felipe Leme
d296eeeb47 Merge "Fixed warning on getWebDomain()" into oc-mr1-dev am: 256c2822f5
am: 8eec0c723d

Change-Id: I415492d049ccff8d0d83eb9679c5b95f1d8dc0a1
2017-09-29 19:16:37 +00:00
Felipe Leme
8eec0c723d Merge "Fixed warning on getWebDomain()" into oc-mr1-dev
am: 256c2822f5

Change-Id: I4279400bd5a5ab441961942782054d5e810235c4
2017-09-29 18:40:34 +00:00
Felipe Leme
6221903454 Fixed warning on getWebDomain()
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML.
Bug: 66963249

Change-Id: If063961f41f297da1ed67e73616972f455edc117
2017-09-29 08:58:47 -07:00
Svet Ganov
0ba9304231 Merge "Don't clobber shared libs when updating app info" into oc-mr1-dev am: 4de7ab5cb1
am: b5ac756015

Change-Id: I425ff226b355597b52b0e2f871cbc419b069f1ee
2017-09-29 01:23:15 +00:00
Svet Ganov
b5ac756015 Merge "Don't clobber shared libs when updating app info" into oc-mr1-dev
am: 4de7ab5cb1

Change-Id: I2e50c036193ba30a203fcfe2f46ea9f94b5992ee
2017-09-29 00:17:57 +00:00
TreeHugger Robot
4de7ab5cb1 Merge "Don't clobber shared libs when updating app info" into oc-mr1-dev 2017-09-28 22:22:56 +00:00
Wale Ogunwale
d562d535af Merge changes from topic "stack-gone"
* changes:
  HOME_STACK_ID, ASSISTANT_STACK_ID, and RECENTS_STACK_ID be gone!
  Ability to getOrCreateStack by windowingMode/activityType in AM.
2017-09-28 17:37:57 +00:00
Doris Liu
3c5622cc5d Merge "Associate RenderNodes created for hw bitmap w/ views" into oc-mr1-dev am: a3acf73c3e
am: 732b3c4159

Change-Id: Icbc3a7878d001ec62c15e9ef116bb1dc084c87ac
2017-09-28 04:57:55 +00:00
Wale Ogunwale
68278568de HOME_STACK_ID, ASSISTANT_STACK_ID, and RECENTS_STACK_ID be gone!
Replaced usages with ACTIVITY_TYPE_HOME, ACTIVITY_TYPE_ASSISTANT
and ACTIVITY_TYPE_RECENTS.

Test: go/wm-smoke
Test: Existing tests pass.
Bug: 64146578
Change-Id: I62c55c99df86dba8c9ba9d9986049de1b1083234
2017-09-27 21:08:10 -07:00
Doris Liu
732b3c4159 Merge "Associate RenderNodes created for hw bitmap w/ views" into oc-mr1-dev
am: a3acf73c3e

Change-Id: I1aa48a41fbbf453f9a3d0ce794f81103a5ed1e35
2017-09-28 02:48:26 +00:00
Wale Ogunwale
04a05ac34a Ability to getOrCreateStack by windowingMode/activityType in AM.
Another step away from using static stack ids for things.

Test: Existing tests pass.
Test: go/wm-smoke
Bug: 64146578
Change-Id: Iac05046c96d10e5b26d444172341f2ecf9efe3ee
2017-09-27 19:43:21 -07:00
Doris Liu
a3acf73c3e Merge "Associate RenderNodes created for hw bitmap w/ views" into oc-mr1-dev 2017-09-28 02:33:48 +00:00
Doris Liu
d4c5ab8b8c Associate RenderNodes created for hw bitmap w/ views
In transition animations, in order to capture the content of a view
or a drawable in a hw bitmap, a RenderNode needs to be created. The
RenderNode was previously setup with no owning view. As a result,
in cases where RenderNode animations are triggered by the draw calls
in displaylist recording, these animations would fail for lack of a
view to animate on.

This CL ensures that when RenderNodes are created for the purpose of
populating content in a hw bitmap in transitions, there's always a
view associated with each RenderNode.

BUG: 65160121
Test: Force to repro crash by changing press state during hw bitmap
creation, which triggers a ripple animation that led to the
otherwise timing dependent and hard to repro crash.

Change-Id: I2b4ba95cad25a94d50b3904e775606f737e960e3
2017-09-27 16:53:05 -07:00
Svet Ganov
6ce92394ad Don't clobber shared libs when updating app info
If we update a package without restart or if an installed
package is a target of a resource overlay we update the app
info on the applicaiton side which is then used to update
the class loader and the resources the app is loading from.
To do that we send over an app info instance for the package
which was partially populated and missing the shared lib
entries resulting in apps not finding resources and classes
from the lib.

Test: manual

bug:62685545

Change-Id: Ib40b430c85a1e5d74f270a4326497ea3bd832215
2017-09-27 16:04:14 -07:00
TreeHugger Robot
c014a7f1fb Merge "Simplifying writeToParcel for various actions" 2017-09-27 19:18:18 +00:00
Sunny Goyal
5b15392c9a Simplifying writeToParcel for various actions
> Using helper methods when writing and reading typed objects
> Moving the tag write outside the action, as it is read outside
  the action as well
> Removing usused tags

Test: am instrument -w -e class android.widget.RemoteViewsTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 65574108
Change-Id: Iaf51cae6ef9f82b70dc1f19c2f019af40c4424a2
2017-09-27 08:52:30 -07:00
Neil Fuller
36eaefa9cc Merge "Be more explicit about users" 2017-09-27 09:30:28 +00:00