Christopher Tate
ee3b42af3f
Introduce PACKAGE_FIRST_ADDED broadcast
...
When an app first appears on a device, this new broadcast is issued
including to manifest receivers. The more general PACKAGE_ADDED
broadcast continues to be issued for both first install and updates,
but is not delivered to manifest receivers of apps that target O+.
Bug 37219124
Test: manual
Change-Id: I59b0a0b0dce96a909076b41280771f63e59584be
2017-04-12 16:14:17 -07:00
Hyunyoung Song
92e3da2354
Update API, add more documentation on AdaptiveIconDrawable
...
and fix multiple miscellaneous bugs.
Bug: 37079814
Bug: 37100106
Bug: 34829216
Test: $ runtest --path=frameworks/base/core/tests/coretests/src/android/graphics/drawable/IconTest.java
Test: $ runtest --path=frameworks/base/services/tests/servicestests/src/com/android/server/pm/ShortcutManagerTest1.java
Test: $ runtest --path=frameworks/base/core/tests/coretests/src/android/grpahics/drawable/AdaptiveIconDrawableTest.java
Change-Id: I0f5b2232853031bf3860ebea2736e894d17e4d2e
2017-04-12 16:06:45 -07:00
Todd Kennedy
c06c030671
Filter instant app content providers
...
Only expose the correct content providers depending upon which
component defines/exposes them.
Change-Id: I283c787165e33d9515068487f83de6d28616b427
Fixes: 35871462
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
2017-04-12 16:03:22 -07:00
Rob Carr
4c613520c3
Merge "Fix auto-pip visibility issues." into oc-dev
...
am: 7040f573f3
Change-Id: I1ac9baf15ac5efc2262f4bcf6ba650b25d326ff9
2017-04-12 23:03:12 +00:00
Lorenzo Colitti
c34f0f7520
Merge changes from topic 'network_specifier' am: d0f476bdae am: 362bef45d1
...
am: cfd729093f
Change-Id: I7535495681da8f168c46d6d95e13925cffecc99b
2017-04-12 22:58:42 +00:00
Lorenzo Colitti
cfd729093f
Merge changes from topic 'network_specifier' am: d0f476bdae
...
am: 362bef45d1
Change-Id: Iea17cb166f9c1bcec55cc8d404e00175aecb9918
2017-04-12 22:48:55 +00:00
Rob Carr
7040f573f3
Merge "Fix auto-pip visibility issues." into oc-dev
2017-04-12 22:46:26 +00:00
Jocelyn Dang
f2c38c130f
Add set-mode command to turn battery saver mode on and off.
...
Affected test will be modified in ag/2101279
Test: adb shell cmd battery unplug && adb shell cmd power set-mode 0
Bug: 31944272
Change-Id: Ia88e7e164aa9b8b4d0ab51f607a64b35e2159273
2017-04-12 15:39:03 -07:00
Lorenzo Colitti
d0f476bdae
Merge changes from topic 'network_specifier'
...
* changes:
[CM] Unhide the NetworkSpecifier as object API
Make the NetworkSpecifier a class instead of a string.
2017-04-12 22:27:37 +00:00
Tony Mak
a06e779bfe
Merge "clear calling identity before calling settings provider" into oc-dev
...
am: c240c9b134
Change-Id: I7b45453ad9dc57ac6c3a9b83f20731f9dcfbf114
2017-04-12 22:18:56 +00:00
TreeHugger Robot
c240c9b134
Merge "clear calling identity before calling settings provider" into oc-dev
2017-04-12 22:09:24 +00:00
Dianne Hackborn
59c6507670
Merge "Allow appops command to modify uid ops." into oc-dev
...
am: 81bfe1f62e
Change-Id: I843f40212346a3edaf219af5ec47ba16428914ad
2017-04-12 21:51:00 +00:00
Dianne Hackborn
81bfe1f62e
Merge "Allow appops command to modify uid ops." into oc-dev
2017-04-12 21:37:52 +00:00
Sudheer Shanka
3af0294c36
Update NPMS internal state when app idle parole state is changed.
...
Fixes: 37250313
Test: 1. cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t \
com.android.cts.net.HostsideRestrictBackgroundNetworkTests
2. runtest -c com.android.server.NetworkPolicyManagerServiceTest frameworks-services
Change-Id: I5fcac397116a07fe9015b7dabf5bca57b0b23176
2017-04-12 14:35:16 -07:00
Svet Ganov
bbef731c2d
Merge "Add autofill feature API" into oc-dev
...
am: a402d6dd2f
Change-Id: I5cfa36adbf31c49dffc519963545f388cae4b96d
2017-04-12 21:28:45 +00:00
Dianne Hackborn
ef95ec85ea
Merge "Add API to get a uid's current importance." into oc-dev
...
am: ad6ab44e15
Change-Id: I845cb5fd01ccedd4a95093c56a320ee1f6497dac
2017-04-12 21:27:27 +00:00
Dianne Hackborn
33e80232fc
Merge "Fix issue #37220301 : Allow broadcasts with permissions to not be restricted" into oc-dev
...
am: f74210c3a3
Change-Id: I1ed7f3e0cf3ee644bdbe5cb87b06f8b910d9ddec
2017-04-12 21:21:52 +00:00
TreeHugger Robot
a402d6dd2f
Merge "Add autofill feature API" into oc-dev
2017-04-12 21:17:33 +00:00
Dianne Hackborn
ad6ab44e15
Merge "Add API to get a uid's current importance." into oc-dev
2017-04-12 21:11:46 +00:00
Dianne Hackborn
f74210c3a3
Merge "Fix issue #37220301 : Allow broadcasts with permissions to not be restricted" into oc-dev
2017-04-12 21:10:03 +00:00
Adam Lesinski
d11c5510b1
OMS: Fix bug where overlay settings wouldn't persist
...
The dead user check was using a List.removeAll() call to find
the subset of users that have been removed and need deleting
from the overlay settings. The target class, UserInfo, does not
implement equals(), therefore no UserInfos would be removed from
the set and all user IDs would be candidates for deleting.
This change avoids the UserInfo class entirely and manipulates userIds.
Bug: 36099320
Test: Pick a theme and reboot.
Test: Theme should still be applied on next boot.
Change-Id: I1ee57839515460bf578664dfe1bd67df7d10d041
2017-04-12 13:49:13 -07:00
Wale Ogunwale
9c64cb6a72
Dump controller for AppWindowToken
...
To help with debugging.
Bug: 36097078
Test: N/A
Change-Id: I72108b918d839b67efe8b8eed65a33775bd94dbc
2017-04-12 13:39:59 -07:00
Todd Kennedy
455b742bb6
Merge "Allow instant app resolution for any user" into oc-dev
...
am: e7b806e9d2
Change-Id: Ic1dbc09e11aab6aacf66e0106274281534515b2d
2017-04-12 20:00:09 +00:00
Jesse Evans
3d1676cfc4
Merge "Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED" into oc-dev
...
am: 684b5381e9
Change-Id: I3be91519cbe8b7c3cef474923a30927504e68642
2017-04-12 19:52:07 +00:00
TreeHugger Robot
e7b806e9d2
Merge "Allow instant app resolution for any user" into oc-dev
2017-04-12 19:45:55 +00:00
Jaewan Kim
e391fe76e8
Merge "Add documentation for 'am start-foreground-service'" into oc-dev
...
am: e7ce1d40e1
Change-Id: I4202bc13102f35b8d3cd4b328c5a1de49b7cb08e
2017-04-12 19:45:21 +00:00
TreeHugger Robot
684b5381e9
Merge "Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED" into oc-dev
2017-04-12 19:39:16 +00:00
TreeHugger Robot
e7ce1d40e1
Merge "Add documentation for 'am start-foreground-service'" into oc-dev
2017-04-12 19:37:26 +00:00
Adam Lesinski
d4abd1eeb0
BatteryStats: Remove reading of cpu power
...
The cpu power reported by the uid_cputime kernel is inaccurate
and has only ever been recorded for dumping to batterystats.
The values have never been used in power blame calculations.
This change removes these power values which just cause noisy
data.
Bug: 36002715
Change-Id: I61bea9992aabb84d099689360fd9377b44b36e2f
Test: run `adb shell dumpsys batterystats`
Test: should not show `p=` for `Total cpu time:` line
2017-04-12 12:25:21 -07:00
Julia Reynolds
bf3f4dd7f5
Merge "Clear calling identity before verifying listeners" into oc-dev
...
am: 43dd3ba3c4
Change-Id: I05a728d069a06f4ec36dff79db022407f4d3504c
2017-04-12 19:24:55 +00:00
Casey Burkhardt
79bc410133
Merge "Improved multiuser support for A11y button/Magnification" into oc-dev
...
am: 9aa64e6cfa
Change-Id: Ia7a56ce9ddc39d1e9e5d814d593dba96c95ae957
2017-04-12 19:14:04 +00:00
Julia Reynolds
43dd3ba3c4
Merge "Clear calling identity before verifying listeners" into oc-dev
2017-04-12 19:13:05 +00:00
Casey Burkhardt
9aa64e6cfa
Merge "Improved multiuser support for A11y button/Magnification" into oc-dev
2017-04-12 19:04:18 +00:00
Svet Ganov
400f10fe50
Merge "Fill UI polish" into oc-dev
...
am: c9a83326c2
Change-Id: Iafae2e819d836a1bda463898695f2fbf9334299b
2017-04-12 19:03:26 +00:00
TreeHugger Robot
c9a83326c2
Merge "Fill UI polish" into oc-dev
2017-04-12 18:54:32 +00:00
Charles He
fd7eb11a2b
Merge "Disallow direct-boot aware activities to bypass work lock" into oc-dev
...
am: 9f074e2224
Change-Id: Ie57c07ed9caee3ee66847cbedc4b10b79bcd9abe
2017-04-12 18:36:10 +00:00
Charles He
9f074e2224
Merge "Disallow direct-boot aware activities to bypass work lock" into oc-dev
2017-04-12 18:25:49 +00:00
Dianne Hackborn
cba1893400
Merge "Add new "work queue" feature to JobScheduler." into oc-dev
...
am: 0a0a63c8b1
Change-Id: I646a3a144833650f9ee7b9727f73ee78c7c82532
2017-04-12 18:02:53 +00:00
Powei Feng
c27853471e
Merge "Revert "Transition from Activity to Broadcast for TV Search"" into oc-dev
...
am: f63cb49b15
Change-Id: If3d06de8fcc60080b51bb367ddc37b3d924af0b3
2017-04-12 18:01:12 +00:00
Dianne Hackborn
0a0a63c8b1
Merge "Add new "work queue" feature to JobScheduler." into oc-dev
2017-04-12 17:55:56 +00:00
Dianne Hackborn
83249ec4f1
Add API to get a uid's current importance.
...
This is kind-of useful to go along with monitoring
uid importance changes.
Test: none yet
Change-Id: Ic0f8418955d17ea21d06f49dcd9641bc5f32387b
2017-04-12 10:54:31 -07:00
TreeHugger Robot
f63cb49b15
Merge "Revert "Transition from Activity to Broadcast for TV Search"" into oc-dev
2017-04-12 17:53:02 +00:00
Soonil Nagarkar
865cf6de70
Merge "Fix foreground importance bug in LocationManagerService." into oc-dev
...
am: 25a263a303
Change-Id: If35b625802224f7f1dbfb24d83e469093bdc718b
2017-04-12 17:36:30 +00:00
Soonil Nagarkar
25a263a303
Merge "Fix foreground importance bug in LocationManagerService." into oc-dev
2017-04-12 17:27:47 +00:00
Jorim Jaggi
7b2bcd0410
Merge "Disallow task snapshot starting window for intent != ACTION_MAIN" into oc-dev
...
am: fe99773a70
Change-Id: I88f17c51cb020ed30b771a1bebfa565640f262fc
2017-04-12 17:18:06 +00:00
Jorim Jaggi
a218d21d2f
Merge "Fix NPE in TaskSnapshotController" into oc-dev
...
am: 6846676b9b
Change-Id: Id27ee1c5147bbceddf36c3159d6fbf654ab965f7
2017-04-12 17:16:44 +00:00
Jorim Jaggi
fe99773a70
Merge "Disallow task snapshot starting window for intent != ACTION_MAIN" into oc-dev
2017-04-12 17:06:15 +00:00
Jorim Jaggi
6846676b9b
Merge "Fix NPE in TaskSnapshotController" into oc-dev
2017-04-12 17:04:13 +00:00
Svet Ganov
43574b03e5
Add autofill feature API
...
We now have a software feature for autofill which can be used
by partners to disable it on low-end devices or form factors
for which autofill doesn't make sense.
bug:35956220
Test: manual (requires a custom build)
Change-Id: I6c06462ed9ca3ae93331700dce38a8c08dfd0722
2017-04-12 09:53:38 -07:00
Svet Ganov
19ffd1d0a5
Fill UI polish
...
1. Avoid jank when the suggesting list scrolled
2. Remove hard-coded values from max popup height
3. UX requested tweaks
4. Remove dead code
Test: manual
bug:37245055
bug:37179467
Change-Id: I6a6760edb06230e3d4925e23863667cfd3ac0601
2017-04-12 09:53:13 -07:00