28470 Commits

Author SHA1 Message Date
Adam Lesinski
4e86aae667 am 68055395: Merge "BatteryStats: Better big-little CPU accounting" into mnc-dr-dev
* commit '680553957e4ff47343334881c34de6969b2ed977':
  BatteryStats: Better big-little CPU accounting
2015-09-18 20:38:02 +00:00
Adam Lesinski
680553957e Merge "BatteryStats: Better big-little CPU accounting" into mnc-dr-dev 2015-09-18 20:26:07 +00:00
Bryce Lee
2f8ac2a35b Fix build due to merge of duplicate variable.
Change-Id: I1e8bad32b2118542408b6d8b87302861e3873d32
2015-09-16 20:06:46 -07:00
Tim Murray
a02f98239e am 952d5b33: Merge "Send power hint on fling gestures." into mnc-dr-dev
* commit '952d5b334ccdf9cab0f56673861906e59d4e9933':
  Send power hint on fling gestures.
2015-09-17 02:33:35 +00:00
Tim Murray
952d5b334c Merge "Send power hint on fling gestures." into mnc-dr-dev 2015-09-17 02:24:32 +00:00
Michael Wright
a4d22d718a Send power hint on fling gestures.
Use the existing PointerEventListener infrastructure to listen for
gestures that look like flings and hint to the power system when they
happen. Since we don't actually have a bound for the fling like a
regular application would, limit them to five seconds and refresh
every time a new fling is seen until the five second time period is
up.

bug 24059298

Change-Id: I5757a1e88f2ab2ef08cccefa8221d809ae71bb6f
2015-09-17 00:18:13 +00:00
Jorim Jaggi
09999fb974 am 18f18ae0: Allow camera launch also when device is interactive
* commit '18f18ae078ee97bbdfc9da39d4a19866dceb6a3e':
  Allow camera launch also when device is interactive
2015-09-16 23:56:25 +00:00
Jorim Jaggi
18f18ae078 Allow camera launch also when device is interactive
Bug: 23967648
Change-Id: If91df75e6325b3969dc2351a70af0c160d3eab04
2015-09-16 23:44:56 +00:00
Fyodor Kupolov
d20f210650 am bfc584df: Merge "Use app directory as apkPath for cluster installs" into mnc-dr-dev
* commit 'bfc584df683a84dffd8e04b7b13f619606a0a42a':
  Use app directory as apkPath for cluster installs
2015-09-16 21:02:53 +00:00
Fyodor Kupolov
bfc584df68 Merge "Use app directory as apkPath for cluster installs" into mnc-dr-dev 2015-09-16 19:37:47 +00:00
Lorenzo Colitti
774adb03a3 am 7198c0aa: Merge "Framework fixes for RSSI offload." into mnc-dr-dev
* commit '7198c0aa4ccbeaecf2606006d3a6ace684f805fe':
  Framework fixes for RSSI offload.
2015-09-16 01:01:05 +00:00
Lorenzo Colitti
7198c0aa4c Merge "Framework fixes for RSSI offload." into mnc-dr-dev 2015-09-16 00:54:57 +00:00
Jim Miller
0dd1163af0 am dca3b2f7: Merge "Add logging to track fingerprint reco but not unlocking" into mnc-dr-dev
* commit 'dca3b2f74f7979e87e2654baf83df42483ef4388':
  Add logging to track fingerprint reco but not unlocking
2015-09-15 21:22:50 +00:00
Svet Ganov
51491627f4 am 276da47a: am cd946024: Default grant SMS and Phone to the verifier
* commit '276da47adf23b5512985268f36fab0b7d2d11363':
  Default grant SMS and Phone to the verifier
2015-09-15 21:22:41 +00:00
Jim Miller
dca3b2f74f Merge "Add logging to track fingerprint reco but not unlocking" into mnc-dr-dev 2015-09-15 21:08:06 +00:00
Filip Gruszczynski
41e13b0a68 Update circular mask after display is ready.
This fixes the situation where the circular mask is not applied because
the configuration is not reporting round screen. Configuration is
computed based on the display, so we can only depend on it having the
correct information after the display became ready.

Bug: 23689649
Bug: 23325855
Change-Id: I1e1fa307836f4053cfc4978da0239cb42c5af2c3
2015-09-15 13:17:44 -07:00
Svet Ganov
276da47adf am cd946024: Default grant SMS and Phone to the verifier
* commit 'cd946024e94a8fe2f4009dbd2e5463817a17b3a9':
  Default grant SMS and Phone to the verifier
2015-09-15 20:10:30 +00:00
Lorenzo Colitti
6bc0a2b6f8 Framework fixes for RSSI offload.
1. When registering a NetworkCallback, only update RSSI
   thresholds if the request specifies a signal strength.
2. When releasing a NetworkCallback, only update RSSI
   thresholds if the request specified a signal strength.
3. Add logging.

Add logging.
Bug: 21405941
Bug: 23679346
Bug: 23815756
Change-Id: I4bc42d0ab02285a7a9d14e09f8a1cd868f4d9d7f
2015-09-15 16:00:39 +09:00
Lorenzo Colitti
1d121b7833 am e1e97377: Merge "NetworkDiagnostics: ping default router from all global addreses." into mnc-dr-dev
* commit 'e1e97377d04ab6e5d069c85aba4226f47371e7c6':
  NetworkDiagnostics: ping default router from all global addreses.
2015-09-15 02:46:36 +00:00
Lorenzo Colitti
e1e97377d0 Merge "NetworkDiagnostics: ping default router from all global addreses." into mnc-dr-dev 2015-09-15 02:39:20 +00:00
Jim Miller
1adb4a7693 Add logging to track fingerprint reco but not unlocking
Bug 23940153

Change-Id: Idb01802ba68449370e8f3cbede0e2fe6d0b977ce
2015-09-14 19:12:35 -07:00
Alexander Hills
6a261fd653 Merge "Cherry-pick system theme rebase to fix square UI on round watches" into cw-e-dev 2015-09-14 18:34:32 +00:00
Alan Viverette
3d2337eeb5 Cherry-pick system theme rebase to fix square UI on round watches
Our system themes were based on configurations that were added post-
init of the system theme.

I96e695441543379e4d5fdf3cc6f18d9e6cf953b4 broke this, because there
was a race condition in the code for rebasing themes

If8fecde76d62738a8e55eddf898eafc468afdba2 (the cherry-picked commit)
fixes the race condition and adds the rebasing back in.

This change cherry picks If8fecde76d62738a8e55eddf898eafc468afdba2.

Bug:23387146
Change-Id: I0725028e48599fc6cd9731ae16c71474dd5827e5
2015-09-14 10:56:02 -04:00
Svet Ganov
cd946024e9 Default grant SMS and Phone to the verifier
bug:24012164

Change-Id: I756644c8044076b2550d7ca104f542f50da0226b
2015-09-12 10:20:08 -07:00
Jorim Jaggi
f66e4979c5 am 84dc08a2: Dump Keyguard state in SystemUI and PhoneWindowManager
* commit '84dc08a208eea7a4ddf043cadbb28987cf90ae22':
  Dump Keyguard state in SystemUI and PhoneWindowManager
2015-09-12 01:34:26 +00:00
Jorim Jaggi
84dc08a208 Dump Keyguard state in SystemUI and PhoneWindowManager
Bug: 23970549
Change-Id: Iec1e8ac507268086e0e2935847eda606ea1fb700
2015-09-12 01:26:17 +00:00
Jorim Jaggi
7b7a2100e2 am 6e90ea03: Don\'t wait for brightness changes
* commit '6e90ea03365c6baddc13762c5a701b84540d8bf9':
  Don't wait for brightness changes
2015-09-11 02:00:38 +00:00
Jorim Jaggi
6e90ea0336 Don't wait for brightness changes
On some devices, changing the brightness is quite slow, because the
change needs to wait for the vsync signal. However, when we are also
running a brightness change animation, as soon as the last change has
been sent there is a new one pending, leading to that we never reach
"clean" state in the PowerManagerService and thus we don't notify
clients about the state change, which can delay the animation for waking
up while dozing by as much as a second.

To fix this, if we only issue a brightness change, we don't block on
that because it's not relevant for us.

Bug: 22879546
Change-Id: Idad7e90c436bfbc38581fe8ce24d606e432b7952
2015-09-11 01:53:25 +00:00
Svetoslav
9d4cad8bee am b1cebd9e: am 5579e41c: Add op package to the UID special case handling in account manager.
* commit 'b1cebd9ecf2ee3542e815f7f7efc1cb7fd6e6228':
  Add op package to the UID special case handling in account manager.
2015-09-11 00:32:56 +00:00
Svetoslav
b1cebd9ecf am 5579e41c: Add op package to the UID special case handling in account manager.
* commit '5579e41c6f81bba1fc1e8cc53186957e287b5dad':
  Add op package to the UID special case handling in account manager.
2015-09-11 00:23:08 +00:00
Svetoslav
5579e41c6f Add op package to the UID special case handling in account manager.
The account manager has a hardcoded rule to change the calling
UID if the caller is the system and another UID is passed in.
We have to do the same acrobatics for the app op package as if
the UID changes the opPackageName will not match the new UID.
If we used the passed in UID we should also use the passed in
op package name.

bug:23968092

Change-Id: I0c0c2a720e9edbf82001952929d990702f8650ca
2015-09-10 15:41:27 -07:00
Daniel Koulomzin
ffa2d69193 Merge "Adds config flag for USB notification." into cw-e-dev 2015-09-10 21:46:01 +00:00
Fyodor Kupolov
ebcac16cb1 Use app directory as apkPath for cluster installs
Previously, size of of oat directory was not counted by the getsize command,
because base APK location was passed as apkpath argument.

Bug: 23896047
Change-Id: Ic7b6b725785ff2e2a0cf3887ba68c162b23b1212
2015-09-10 10:44:49 -07:00
Gus Prevas
e753361508 Adds config flag for USB notification.
This change modifies UsbDeviceManager such that the ongoing
system notification for USB charging state is controlled by a
config flag.

Bug: 23409719
Change-Id: I2ef24fe74923170a6e8dd02375b973b4025281e4
2015-09-10 13:37:59 -04:00
Lorenzo Colitti
29f666688d NetworkDiagnostics: ping default router from all global addreses.
This will hopefully allow us to determine if the router does not
have our global addresses in its neighbour cache.

Bug: 23661687
Change-Id: I46734c3c719003939cfccf038457ec309a9ff967
2015-09-10 15:49:54 +09:00
Jorim Jaggi
5a9bb9516d resolved conflicts for 5d0e02b6 to cw-e-dev
Change-Id: Id974d29581304dc644659d1c470b5413d847944b
2015-09-09 17:49:57 -07:00
Jeff Sharkey
5b9f8dd73f am 2ebbf4c8: Merge "Special interval value to always run benchmarks." into mnc-dr-dev
* commit '2ebbf4c899b39e080be1ec9cd5d1178f30c0cd89':
  Special interval value to always run benchmarks.
2015-09-10 00:26:33 +00:00
Jorim Jaggi
5d0e02b64e Merge "Add double-tap power button to open camera 1/2" into mnc-dr-dev 2015-09-10 00:25:59 +00:00
Jeff Sharkey
2ebbf4c899 Merge "Special interval value to always run benchmarks." into mnc-dr-dev 2015-09-10 00:18:43 +00:00
Adam Lesinski
6832f39416 BatteryStats: Better big-little CPU accounting
Generalize cpu clusters so we can measure frequency
and power usage across heterogeneous cpu clusters.

This also brings back reading of cpu-times for power calculation.

Bug:22773176
Change-Id: I9c794ae9756c782c0e971c7f5fcebbe70374b269
2015-09-09 17:07:54 -07:00
Adrian Roos
5941c98c64 Add double-tap power button to open camera 1/2
Bug: 23787555
Change-Id: I052b64748f155c59fbb649b32265f559423a8845
2015-09-09 16:57:14 -07:00
Jeff Sharkey
e83d8a993d Special interval value to always run benchmarks.
When interval is set of 0, always run benchmarks after every fstrim
pass, which is roughly daily.  We don't actually track the last
benchmark time for internal storage, so this is the best way we have
to enable this.

Also disable benchmarking completely when interval is set to -1.

Bug: 23942769
Change-Id: I11edfda063aac6e927c6cce56567169ebe83cb71
2015-09-09 15:53:29 -07:00
Jorim Jaggi
b53045476c am 5e354223: Use AlarmManager for lockout reset
* commit '5e354223d817477efac9a6a2e3ce3d9161e046a4':
  Use AlarmManager for lockout reset
2015-09-09 20:54:42 +00:00
Jorim Jaggi
5e354223d8 Use AlarmManager for lockout reset
So the lockout reset exactly fires after 30 seconds, independent
of whether the device was in deep sleep.

Bug: 23668918
Change-Id: Idea1a877c395897c1fd075cf98edf41c8b1f4082
2015-09-09 20:41:11 +00:00
Svetoslav Ganov
db4efcfa8d am f57d9856: am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-dev
* commit 'f57d98564b26953b722ab0e14222f50e6515f36d':
  Add get_accounts app op
2015-09-09 01:51:37 +00:00
Svetoslav Ganov
f57d98564b am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-dev
* commit '4f7d0bc7af5fbb65796d24b130b7e9e63107bc5d':
  Add get_accounts app op
2015-09-09 01:42:56 +00:00
Svetoslav
ce852ddcec Add get_accounts app op
For each runtime permission we have an app op to toggle the
permission for legacy apps as they cannot handle permission
revocations. We were lacking an app op for get_accounts
which prevented the user from controlling access to accounts
regardelss that they change the state of the permission
toggle in the UI. Even worse the permission UI is written
with the assumption that every runtime permission has an
app op and as a result revoking the contacts group (if the
app requests the get_accounts permission) is reset back to
allowed in the UI.

bug:23854618

Change-Id: I9e3f9bfeb320bed561d718db99ee285915d5701b
2015-09-08 17:54:37 -07:00
Lorenzo Colitti
0bc356687e am 017223ac: Merge changes from topic \'packet-keepalive-fixes\' into mnc-dr-dev
* commit '017223acda5bfe16cb87d0a33d72dd28d2fccd3b':
  Require the new PACKET_KEEPALIVE_OFFLOAD permission.
  Add an error code for generic hardware error.
  Fix bugs and crashes in PacketKeepalive API.
  Add tests for the PacketKeepalive API.
  Add a PACKET_KEEPALIVE_OFFLOAD permission.
  Use a CountDownLatch instead of sleep() in NetworkFactory tests.
  Get rid of shortSleep() in ConnectivityServiceTest.
  Make ConnectivityServiceTest a bit more readable.
2015-09-09 00:26:53 +00:00
Lorenzo Colitti
b988466312 Require the new PACKET_KEEPALIVE_OFFLOAD permission.
Bug: 23884210
Change-Id: I50a1a647a69deaba92e73021ee7d6cc0f3eb1eee
2015-09-09 00:16:57 +09:00
Lorenzo Colitti
9acca09527 Fix bugs and crashes in PacketKeepalive API.
Bug: 22606153
Bug: 23820819
Bug: 23884210
Change-Id: I1bf82094ec664baed345e9fb137fada0cbf4b7a0
2015-09-09 00:16:56 +09:00