Commit Graph

3721 Commits

Author SHA1 Message Date
TreeHugger Robot
1e1fd76a67 Merge "thermal: add usage of IThermal." 2016-11-07 19:41:07 +00:00
Polina Bondarenko
71cb0c5b6a thermal: add usage of IThermal.
HardwarePropertiesManagerService native impl uses IThermal instead of
thermal_module.

Bug:32022261
Test: CTS
Change-Id: I85e5c5bedb1cb6762207ccfa3e3a7dd4c00ee30a
2016-11-07 16:07:05 +01:00
TreeHugger Robot
3e8431f1f2 Merge "Move IActivityManager to aidl." 2016-11-04 22:24:12 +00:00
Sudheer Shanka
6e9dedaa74 Merge "Fix IMountService transaction ids." 2016-11-04 19:38:09 +00:00
Sudheer Shanka
fc46e9b643 Move IActivityManager to aidl.
Bug: 30977067
Test: Existing tests are passing, dump commands still working.
Change-Id: I9cf81c4d381ebce14a6c701e409cbb269f2ff1fb
2016-11-04 10:43:25 -07:00
TreeHugger Robot
f34231523e Merge "Add traces to systrace when binder tracing is enabled" 2016-11-03 03:26:52 +00:00
Jorim Jaggi
25ee0bc6d1 Add traces to systrace when binder tracing is enabled
If binder tracing is enabled, we also output the class/method name
to systrace. This is the first step toward a system in which we could
show the full stack trace in systrace.

Test:
adb shell am trace-ipc start
python systrace.py
adb shell am trace-ipc stop

Change-Id: I6d0354c9560c4518c84fb3fdb66219b460e69f67
2016-11-02 16:10:14 -07:00
TreeHugger Robot
9c1202be95 Merge "Add VERSION_CODES.O" 2016-11-02 20:27:15 +00:00
Makoto Onuki
864f4bd9ed Add VERSION_CODES.O
So that the framework can do "targetSdk >= O".

Test: Additional hidden constant only. "m"
Change-Id: I6cde68869c3b8bdc8e8b06b7d63f164714fbd2b0
2016-11-02 11:30:14 -07:00
Sudheer Shanka
34b33887a1 Fix IMountService transaction ids.
- (IBinder.FIRST_CALL_TRANSACTION=1) is added to the specified
  transaction codes during binder generation. Correct the
  IMountService transaction ids taking this into account.
- Update interface descriptors in MountService related native code.
- Add proxy implementations for IMountServiceListener and
  IMountShutdownObserver.

Bug: 30977067
Test: Verified that calls from native code to IMountService system
      service are working and listeners in native code can get the
      callbacks correctly.
Change-Id: I9bef9a8113e92d8b36e963bd961ac858acac3f2a
2016-11-01 23:29:33 -07:00
Steve McKay
0fbdbce598 Merge "Remove the EXTRA_FANCY_FEATURES flag..." 2016-10-31 17:12:35 +00:00
Nicolas Prévot
7e0c4521f9 Merge "Allow DO to remove user even if DISALLOW_REMOVE_USER is set." 2016-10-31 11:23:27 +00:00
Steve McKay
e5a8a17ed2 Remove the EXTRA_FANCY_FEATURES flag...
Which is no-longer necessary.

Test: build and run.

Change-Id: I515c4a1bf78cbf4d54304bf4ebe1059a596c95a0
2016-10-28 16:55:27 -07:00
Dianne Hackborn
d409b78728 Merge "Power manager now prevents wake locks from idle uids." 2016-10-28 23:53:34 +00:00
Nicolas Prevot
df1b87db5d Allow DO to remove user even if DISALLOW_REMOVE_USER is set.
BUG:32300784
Test: create user in TestDPC, set DISALLOW_REMOVE_USER restriction,
and remove this user.
Change-Id: I96ab02d594cd1a8ab14420e12357f2083da1ce63
2016-10-28 19:25:31 +01:00
Dianne Hackborn
d33c7cd87a Power manager now prevents wake locks from idle uids.
The activity manager now pushes the idle/active state
down in to the power manager.  The power manager now
tracks a structure of data about each uid: how many
wake locks it holds, whether it is active, and (as before)
its current process state.

Now when apps are inactive, we always disable wake locks
they hold, regardless of the system's device idle or
other state.

Test: none

Change-Id: I2cd4077e4d8a8572525406ae9747f0a2435764da
2016-10-28 11:20:19 -07:00
Sudheer Shanka
428868c1f0 Merge "Move IMountService to aidl." 2016-10-27 22:38:34 +00:00
Sudheer Shanka
f734114280 Move IMountService to aidl.
Bug: 30977067
Test: Existing tests passing.
Change-Id: Icadfdcbc79708d3826b4e11afe35f5963aabcd4c
2016-10-27 12:36:37 -07:00
TreeHugger Robot
4452e751d4 Merge "Dumps total size of primary storage." 2016-10-27 19:09:26 +00:00
Fyodor Kupolov
08c75e4c49 Merge "Use app context to avoid memory leaks" 2016-10-27 18:21:49 +00:00
TreeHugger Robot
89aa8b9266 Merge "Import android.hardware.thermal@1.0 constants into HardwarePropertiesManager." 2016-10-26 19:40:42 +00:00
Andreas Huber
cbd1bb9532 Merge "Adds support for specifying the version of a service to register/lookup." am: c3d8550cf3 am: 8bd63a39f3 am: 63f0ebc7a8
am: 525489b087

Change-Id: I00eb3f6e26fbb01592d09d581488a903f17a4fa4
2016-10-26 16:03:29 +00:00
Andreas Huber
8bd63a39f3 Merge "Adds support for specifying the version of a service to register/lookup."
am: c3d8550cf3

Change-Id: I6b12021c6100f33de7f4b4702bdb4bf1a48c0259
2016-10-26 15:49:52 +00:00
Leonard Mosescu
f3409ceee5 Adding "attach-agent" to ActivityManagerShellCommand
This new command is used to attach runtime agents to a running application:

attach-agent <PROCESS> <FILE>
   Attach an agent to the specified <PROCESS>,
   which may be either a process name or a PID.

Test: m test-art-host, manual testing:
    . invalid syntax, missing arguments
    . invalid syntax, extra arguments
    . invalid numeric PID
    . invalid process name
    . valid process, not debuggable
    . valid process, missing agent
    . valid process, valid agent

Bug: 31682382

Change-Id: Ife88dbf23991dde7945d9208e54cd014bb7ecdc6
2016-10-25 22:42:39 +00:00
Andreas Huber
35eb7994f8 Adds support for specifying the version of a service to register/lookup.
Bug: 32405011
Test: hidl_test_java
Change-Id: I91a31cafa68d570c67f9a1aa7efb9d3dcb35e591
2016-10-25 13:35:44 -07:00
Andreas Huber
fb7accfc83 Import android.hardware.thermal@1.0 constants into HardwarePropertiesManager.
Bug: 32200867
Test: make
Change-Id: I4e63e7c5431b33011b7c334077a5bd0c7edcf3a2
2016-10-25 09:43:38 -07:00
Robert Sesek
02bf0b6dbc Merge "Create the WebViewZygote and implement WebViewZygoteInit." am: 8be2850546 am: f80fab010a
am: aa544e975e

Change-Id: I561fff0f56bdbfdeb6c92c11c3fce12cf3fe28be
2016-10-22 03:22:50 +00:00
Robert Sesek
f80fab010a Merge "Create the WebViewZygote and implement WebViewZygoteInit."
am: 8be2850546

Change-Id: I608ea53be52cb91f0e8cf73998de4578b39e099a
2016-10-22 03:12:18 +00:00
Treehugger Robot
8be2850546 Merge "Create the WebViewZygote and implement WebViewZygoteInit." 2016-10-22 03:03:10 +00:00
Felipe Leme
281389ac54 Dumps total size of primary storage.
BUG: 32069168
Test: manual verification
Change-Id: Id319730182eb1e35cd515ab89a14b97654ace599
2016-10-20 14:29:18 -07:00
Sudheer Shanka
c2c956b3c4 Merge "Move ApplicationThread to aidl." 2016-10-20 17:55:06 +00:00
Andreas Huber
ec36a7a944 Merge "HIDL Vectors are now exposed to Java as ArrayList<T>, the supporting APIs on" am: 2202b164d8 am: abfd527d09
am: 599d51393c

Change-Id: I4be94dcb7e86e74a9f9676e6980f69c35d016f92
2016-10-19 19:54:16 +00:00
Andreas Huber
abfd527d09 Merge "HIDL Vectors are now exposed to Java as ArrayList<T>, the supporting APIs on"
am: 2202b164d8

Change-Id: I43bec2c6d3e6e4201f7a50981f428ef00f384684
2016-10-19 19:39:03 +00:00
Sudheer Shanka
cc6418feb7 Move ApplicationThread to aidl.
Bug: 30977067
Test: Existing tests are passing, dump commands still working.
Change-Id: Iecb382e8720dfb1b6b707272497e3793e6995edb
2016-10-19 11:29:47 -07:00
Andreas Huber
ef1a565bd4 HIDL Vectors are now exposed to Java as ArrayList<T>, the supporting APIs on
HwParcel now reflect this change.

Bug: 32237331
Test: hidl_test_java
Change-Id: Ia1ce5a4e3acedd8ebcff15107aea53ce28fde589
2016-10-18 09:36:02 -07:00
Fyodor Kupolov
5200e1cb07 Use app context to avoid memory leaks
Bug: 31581886
Test: manual
Change-Id: I375ed953665e431cc8f15a2ceefacabd9055269c
2016-10-17 18:47:35 -07:00
Robert Sesek
26008b9219 resolve merge conflicts of 0b58f19 to nyc-mr1-dev-plus-aosp
am: aa3c463a5b

Change-Id: Ib213dc42ac82d6bf738e727d56794a3cd6b1a35d
2016-10-14 18:40:34 +00:00
TreeHugger Robot
0604869427 Merge "Switch UM to internal isUserUnlockingOrUnlocked" 2016-10-13 20:50:41 +00:00
Robert Sesek
aa3c463a5b resolve merge conflicts of 0b58f19 to nyc-mr1-dev-plus-aosp
Change-Id: I374d842cab49b58b570d5ad7ef3dffb7b148d236
2016-10-13 16:49:47 -04:00
Dianne Hackborn
8888aedc1f Fix issue #32125907: Intent.replaceUnsafeExtras() corrupts original bundle am: 851ec49de7 am: 9774ea3646
am: 50468217c4

Change-Id: I949e6337546835a0673b85ee6e2ad67fb0a0fec4
2016-10-13 20:44:47 +00:00
Dianne Hackborn
50468217c4 Fix issue #32125907: Intent.replaceUnsafeExtras() corrupts original bundle am: 851ec49de7
am: 9774ea3646

Change-Id: I7e27381f7fa4ca8770ca06cdc6c0bdd18a549ae2
2016-10-13 20:38:04 +00:00
Fyodor Kupolov
c413f7078d Switch UM to internal isUserUnlockingOrUnlocked
Internal version of UMS maintains a self-locking data-structure of user
states that  is pushed from ActivityManager. Previously there could
be discrepancies between UMS.isUserUnlockingOrUnlocked and
UM.isUserUnlockingOrUnlocked, which is calling a blocking version
in ActivityManager.

Test: manual + UserManagerTests

Bug: 31995235
Bug: 31833240
Change-Id: Ibafe403f57cd32d9052bb55fe7273a861be1d037
2016-10-13 10:07:20 -07:00
Dianne Hackborn
851ec49de7 Fix issue #32125907: Intent.replaceUnsafeExtras() corrupts original bundle
We now recursively generate new Bundle objects if we need to
do any stripping.

Change-Id: I4ca7896a0771c25264591ae7c79df85816d630d4
2016-10-12 18:17:58 -07:00
Kweku Adams
b0449e01ca Fixing unit issue in dis/charge time remaining parameter.
Although currently not used, the parameter is expected to be in microseconds,
not milliseconds. Hopefully this will avoid issues if the time is used in the
future.

Test: ...make sure it builds locally

Change-Id: Ie131370d3e8c8105623fc60375054f4b22cec110
2016-10-12 22:00:28 +00:00
TreeHugger Robot
e92c3f6398 Merge "power: PowerHAL support for HIDL interfaces." 2016-10-12 00:54:26 +00:00
Dianne Hackborn
1e6f03bfd4 Merge "Move the remaining am commands to ActivityManagerShellCommand." 2016-10-11 17:04:18 +00:00
Tony Mak
6dc428f677 Allow device owner to inflate managed profile
1. Modify DPM.isProvisioningAllowed to allow it to happen
2. Introduce hidden API createProfileForUserEvenWhenDisallowed for
   ManagedProvisioning app to create profile under DO.
   Apps with MANAGE_USERS permission can clear the
   DISALLOW_ADD_USER restriction anyway, so they do not gain extra power.

Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/pm/UserManagerTest.java
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.CustomDeviceOwnerTest#testIsProvisioningAllowed

Bug: 31895999

Change-Id: I10dc3043653130ae717a1d3d8256c9e73231bb21
2016-10-11 12:46:32 +00:00
Dianne Hackborn
331084dca6 Move the remaining am commands to ActivityManagerShellCommand.
The only thing not removed is the "instrument" command, which
really needs to run Java code in the shell.  We'll deal with
that later.

Test: manual
Change-Id: I9df0cdf831ac280cb0eb85c857d27166bc00604d
2016-10-10 16:58:12 -07:00
Jeff Sharkey
46e2afec48 Set MIME type when building BROWSE intents. am: 42a4aaab44 am: ac184d3c46
am: 6f5f03b8c1

Change-Id: Iab359d3b375db98986adf9314b6bec7530326381
2016-10-10 23:40:21 +00:00
Jeff Sharkey
6f5f03b8c1 Set MIME type when building BROWSE intents. am: 42a4aaab44
am: ac184d3c46

Change-Id: I3fb6cc86357c6e19efe58a6e4d31d1f79758b332
2016-10-10 23:34:28 +00:00