Commit Graph

84248 Commits

Author SHA1 Message Date
TreeHugger Robot
404f810355 Merge "Make the battery saver knobs hidden public," 2017-11-03 00:35:39 +00:00
TreeHugger Robot
554984a75b Merge "Add a setting to control JIT for priv apps." 2017-11-03 00:14:59 +00:00
Andreas Gampe
9f4e7dbff8 Merge "Revert "Make CHANGE_APP_IDLE_STATE a system API"" 2017-11-02 22:45:16 +00:00
TreeHugger Robot
90a789e122 Merge "Give VoiceInteractionService access to shortcuts." 2017-11-02 22:26:40 +00:00
TreeHugger Robot
a779b40e3a Merge "Turn default gradient into solid black" 2017-11-02 22:06:43 +00:00
Andreas Gampe
8948c79fe0 Revert "Make CHANGE_APP_IDLE_STATE a system API"
This reverts commit c433ee5451.

Fails on walleye with:

java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.android.settings: android.permission.CHANGE_APP_IDLE_STATE, com.android.shell: android.permission.CHANGE_APP_IDLE_
STATE}

Bug: 63527785
Change-Id: I7a30615d20a6c22467a41d4b2d4f84f7702ce195
2017-11-02 21:58:15 +00:00
Steven Thomas
ec0aaa0650 Merge "On standalones, stay in vr mode until standby" 2017-11-02 21:14:15 +00:00
TreeHugger Robot
46fabf34ea Merge "Center align AoD2 notifications" 2017-11-02 20:54:16 +00:00
Peter Visontay
2a962f6343 Merge "In Accessibility code, wrap Binder.restoreCallingIdentity() in finally{}." 2017-11-02 20:42:19 +00:00
Jeff Davidson
5280b4205e Merge "Expose Intent#EXTRA_REASON as a SystemApi." 2017-11-02 20:10:18 +00:00
Amith Yamasani
68eec5cbee Merge "Make CHANGE_APP_IDLE_STATE a system API" 2017-11-02 19:49:06 +00:00
Alex Salo
8994a1ff6f Add a setting to control JIT for priv apps.
This flag can be controlled by Phenotype starting GmsCore v9.

Bug: 67415855
Test: not needed
Change-Id: I07d31dd209ab0a0e48ce745f1b54be63f5993e5d
2017-11-02 12:11:43 -07:00
TreeHugger Robot
27d39bd77e Merge "Add support for minimized mode for right dock side for tablets (1/2)" 2017-11-02 18:43:18 +00:00
Yi Jin
0d16870b69 Merge "Remove the extra mapping of field types in ProtoOutputStream" 2017-11-02 17:55:40 +00:00
Dianne Hackborn
c160fa4cc4 Give VoiceInteractionService access to shortcuts.
The shortcut manager now has a set of additional packages that
have access, which the voice interaction system service feeds in
to.

Bug: 68760723
Test: CtsVoiceInteractionTestCases
Change-Id: I2a69f83569eb350f405bdd548998570ceef9ea7e
2017-11-02 10:51:03 -07:00
Amith Yamasani
c433ee5451 Make CHANGE_APP_IDLE_STATE a system API
Allows a privileged app to set standby bucket states for apps.

Bug: 63527785
Test: adb shell am set-standby-bucket com.example.foo 0
Change-Id: I069546555e1b370247f8cd45b2f4c32e6abe15ed
2017-11-02 17:14:49 +00:00
Charles He
0648ae024e Merge "TokenWatcher: fix bug in repeated calls to acquire()." am: dfe472ecae am: c214d506d4
am: 4e701561d3

Change-Id: Ic6130156ebfe79b731b331ccf2dbb487839d831c
2017-11-02 11:11:26 +00:00
Charles He
4e701561d3 Merge "TokenWatcher: fix bug in repeated calls to acquire()." am: dfe472ecae
am: c214d506d4

Change-Id: I0760ba5c839af8a9dd4b9161dbbad16eacdb3550
2017-11-02 10:58:30 +00:00
Charles He
dfe472ecae Merge "TokenWatcher: fix bug in repeated calls to acquire()." 2017-11-02 10:36:01 +00:00
Narayan Kamath
daca7ce5e7 Merge "SystemServer: Get rid of some unused config.* knobs." 2017-11-02 10:22:20 +00:00
David Chen
c8a4324855 Adds pulling for network bytes for statsd.
Adds atoms to collect network bytes transmitted and received via wifi
and mobile data. We need to get the list of correct ifaces from
BatteryStats since NetworkStatsService only tracks the mobile ifaces.
We split the atoms so that we can also capture metrics sliced on
foreground and background since they are available from the kernel.
Also adds an atom for the Kernel Wakelocks.

Test: Manually tested with adb shell cmd stats pull-source after
modifying the StatsPullerManager.cpp

Change-Id: I9467afad799c6d97560e868f8625fefae5c2b5e1
2017-11-02 00:41:51 -07:00
TreeHugger Robot
57780d4460 Merge "SystemServer: spawn hwbinder threads before BatteryService" 2017-11-02 05:27:27 +00:00
Sunny Goyal
b2985209fe Preventing recursive referrence in drawables am: 99b25d2817
am: ced997ec10

Change-Id: Iab88125b030bfe21aad82a1b287495cb9e3f54a2
2017-11-02 04:55:36 +00:00
Sunny Goyal
ced997ec10 Preventing recursive referrence in drawables
am: 99b25d2817

Change-Id: I1c23d40e590d6d8bb21f6734a106d0ee217b6672
2017-11-02 04:46:07 +00:00
Yifan Hong
889902c9f9 SystemServer: spawn hwbinder threads before BatteryService
BatteryService is the first service that uses a hwbinder
call, so we need to spawn the threads for BatteryService to receive
callbacks prior to starting BatteryService.

Test: boot test
Test: manually sleep in SensorDeviceUtils, still boots

Bug: 68765551
Bug: 68217725

Change-Id: Iadd88897d4cf9e0e37af706452c15318115f2149
2017-11-02 04:34:08 +00:00
Sunny Goyal
99b25d2817 Preventing recursive referrence in drawables
Bug: 68706673
Bug: 66498711
Test: Added CTS tests
Change-Id: I8034f49d16f9a7bc1749714fd6d6231bba5088d0
2017-11-02 04:31:12 +00:00
Yifan Hong
7dbaf8998d Merge "Allow equality checking and hash for HIDL interface proxies." am: 762f27c6a2 am: 0134fd1577
am: ddfee6b154

Change-Id: I70c7fb09397cf9b483ed648f1516158c6c431475
2017-11-02 04:12:09 +00:00
Yifan Hong
ddfee6b154 Merge "Allow equality checking and hash for HIDL interface proxies." am: 762f27c6a2
am: 0134fd1577

Change-Id: I9b7b2b45967506469309353eb09c49738805b213
2017-11-02 04:01:07 +00:00
Treehugger Robot
762f27c6a2 Merge "Allow equality checking and hash for HIDL interface proxies." 2017-11-02 03:39:42 +00:00
Mike Ma
e6c492bf56 Merge "Record proto to file in am instrument" 2017-11-02 03:00:07 +00:00
TreeHugger Robot
1743fb7d46 Merge "reretry ValueMetric implementation and pulling mechanism" 2017-11-02 02:23:02 +00:00
TreeHugger Robot
01f5db7240 Merge "Added setFillWindowForwardOnly" 2017-11-02 02:10:46 +00:00
Christine Franks
bf3255b524 Merge "Respect legacy color mode settings" into oc-mr1-dev
am: 58a10a7b12

Change-Id: I34bc01c71a0a28857d41668c3cae5dc36f56b0d3
2017-11-02 01:39:19 +00:00
Yifan Hong
73b6c27a6b Allow equality checking and hash for HIDL interface proxies.
IFoo.Proxy.equals() -> HidlSupport.equals() ->
IHwInterface.asBinder().equals() -> HwRemoteBinder.equals().
IFoo.Stub.equals() -> default Object.equals()

Notice that IHwInterface.asBinder() returns mRemote(of type
HwRemoteBinder) for proxies and itself (of type HwBinder) for stubs.
If IFoo.Stub.asBinder() had not return "this", its equals()
should also be overridden.

Bug: 68727931
Test: hidl_test_java

Change-Id: I916983d7bc739747145e2ebb6830226310fd4980
2017-11-01 18:30:04 -07:00
Daniel Sandler
fe46fab361 Merge "Allow dnd access for secondary users" into oc-mr1-dev
am: c2496f917c

Change-Id: If90a63b7adcb61db0e5e33016adf04d8cd3721cf
2017-11-02 01:29:56 +00:00
Bryce Lee
fbddd89e93 Merge "DO NOT MERGE Remove orientation restriction to only fullscreen activities." into oc-mr1-dev
am: 0be61c662b

Change-Id: I8db0cda8ce289423b9f63d3dc1b2598e951e1e2d
2017-11-02 01:14:49 +00:00
Christine Franks
58a10a7b12 Merge "Respect legacy color mode settings" into oc-mr1-dev 2017-11-02 01:13:21 +00:00
Jeff Davidson
a0c7d1fb3c Expose Intent#EXTRA_REASON as a SystemApi.
It's expected to be set with ACTION_FACTORY_RESET intents, and this
action was exposed as a @SystemApi in b/32974361.

Change-Id: Ib29ffb8d62460eb4ec0208076331bbba3272f290
Fixes: 67751036
Test: Just TreeHugger; no functional changes
2017-11-01 18:07:32 -07:00
Steven Thomas
1356ec950f On standalones, stay in vr mode until standby
On standalones, stay in vr mode until the Power Policy Service notifies
us it has switched to standby mode.

We still have a few issues elsewhere in the code, so the "stay in vr
mode" functionality is only enabled if the system property
"persist.vr.use_standby_to_exit_vr_mode" is set to true, which you can
do like this:

$ adb shell setprop persist.vr.use_standby_to_exit_vr_mode true

Bug: 65248224

Test: - Confirmed on a standalone that doffing leaves us in vr mode for
5 minutes, then we get a notification that we've entered standby, and we
exit vr mode. Confirmed we enter vr mode again when we don the device.

- Confirmed no behavioral change on phones, as expected.

Change-Id: I41d62761fe8c2fc7630f0615732453669cb25f06
2017-11-01 17:58:52 -07:00
Daniel Sandler
c2496f917c Merge "Allow dnd access for secondary users" into oc-mr1-dev 2017-11-02 00:52:55 +00:00
Fyodor Kupolov
5d88972280 Merge "Initial version of compatibility WAL" 2017-11-02 00:07:07 +00:00
Chenjie Yu
b3dda41a5a reretry ValueMetric implementation and pulling mechanism
Note:
This is for value metric. The default operations is sum the diffs.
The test uses kernel wake lock, which also needs dimension by kernel
wake lock name.

The test is a bit cumbersome as it needs StatsCompanionService to do
the alarm, which is not exact alarm.

The internal state of a slice of bucket would look something like this:

4:ipc0000005e_727_android.hardwar
0      0
4:SensorService_wakelock
40      64
4:ipc0000005c_727_android.hardwar
...

Test: manual test on device.
Change-Id: I2ed0ac7d3c5fcba8b7611d46f38a38ffd8bdc92a
2017-11-01 15:58:45 -07:00
Lucas Dupin
80f05cee86 Merge "Fix slice permissions to allow uri grants" 2017-11-01 22:32:29 +00:00
Makoto Onuki
2eccd02628 Make the battery saver knobs hidden public,
so other components (system UI, settings, etc) can use them.

Bug: 68769804
Test: Build & presubmit
Change-Id: I30fe78e49d2187bee7c7aeba735cd9c26fc332a5
2017-11-01 14:49:10 -07:00
Fyodor Kupolov
41cadb7d31 Added setFillWindowForwardOnly
It controls fetching of rows relative to requested position

Test: SQLiteCursorTest
Bug: 62550963
Change-Id: Iab651d8e3d689710b0436650c58dab86b119e296
2017-11-01 14:38:15 -07:00
Mike Ma
d2239828d6 Record proto to file in am instrument
Add an option -f to record instrumentdata proto produced by am instrument
to a file in addition to printing to stdout. Default path is
/sdcard/instrument-logs/log-yyyyMMdd-hhmmss-SSS.instrumentation_data_proto.
If the file exits, it will be deleted before writing. Path can be changed
via optional <FILE> argument after -f.
If -f and -m are both present, proto will be written to a file and print
to stdout.

Test: build, flash and run:
bit -bi FrameworksCoreTests
adb shell am instrument -w -r -f tmp/tmp.log \
-e class com.android.internal.os.BatteryStatsNoteTest \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Iabc320c066d5995eee842c26416623eeb3d403f4
2017-11-01 14:20:31 -07:00
Narayan Kamath
63cc787fa8 Merge "Debug: Remove obsolete InstructionCount code." am: f5a8edeaf0 am: 47659c3351
am: 39343bf215

Change-Id: I79f3b2ec2a2ef449703867dea4dced63ab1b63ad
2017-11-01 21:17:51 +00:00
Calin Juravle
b3145221ae Merge "[framework] Add check that classpath is up to date to getDexOptNeeded" am: 945b1dc43e
am: 8952f058ff

Change-Id: Iad6377ad17a93948ae41b23d7f49669577869669
2017-11-01 21:13:56 +00:00
Narayan Kamath
39343bf215 Merge "Debug: Remove obsolete InstructionCount code." am: f5a8edeaf0
am: 47659c3351

Change-Id: I1d4b929ead3af4ef3f9d28de2a3e905d124e718c
2017-11-01 20:56:50 +00:00
Jason Monk
b40dad566a Fix slice permissions to allow uri grants
Also bypass when caller is self.

Test: bind own app's slice.
Bug: 68751119
Change-Id: I7b4b0f2a81bf6168cb81b03056c6b75e17808036
2017-11-01 16:14:01 -04:00