summaryrefslogtreecommitdiffstats
path: root/services/core
Commit message (Collapse)AuthorAgeFilesLines
* Merge "BatteryStats: Better big-little CPU accounting" into mnc-dr-devAdam Lesinski2015-09-181-2/+1
|\
| * BatteryStats: Better big-little CPU accountingAdam Lesinski2015-09-091-2/+1
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Send power hint on fling gestures." into mnc-dr-devTim Murray2015-09-173-1/+68
|\ \
| * | Send power hint on fling gestures.Michael Wright2015-09-173-1/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Allow camera launch also when device is interactiveJorim Jaggi2015-09-162-4/+13
| | | | | | | | | | | | | | | Bug: 23967648 Change-Id: If91df75e6325b3969dc2351a70af0c160d3eab04
* | | Merge "Use app directory as apkPath for cluster installs" into mnc-dr-devFyodor Kupolov2015-09-162-3/+16
|\ \ \
| * | | Use app directory as apkPath for cluster installsFyodor Kupolov2015-09-102-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Framework fixes for RSSI offload." into mnc-dr-devLorenzo Colitti2015-09-161-7/+24
|\ \ \ \
| * | | | Framework fixes for RSSI offload.Lorenzo Colitti2015-09-151-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Add logging to track fingerprint reco but not unlocking" into mnc-dr-devJim Miller2015-09-151-8/+17
|\ \ \ \ \
| * | | | | Add logging to track fingerprint reco but not unlockingJim Miller2015-09-141-8/+17
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | Bug 23940153 Change-Id: Idb01802ba68449370e8f3cbede0e2fe6d0b977ce
* | | | | am cd946024: Default grant SMS and Phone to the verifierSvet Ganov2015-09-151-0/+2
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | * commit 'cd946024e94a8fe2f4009dbd2e5463817a17b3a9': Default grant SMS and Phone to the verifier
| * | | | Default grant SMS and Phone to the verifierSvet Ganov2015-09-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:24012164 Change-Id: I756644c8044076b2550d7ca104f542f50da0226b
* | | | | Merge "NetworkDiagnostics: ping default router from all global addreses." ↵Lorenzo Colitti2015-09-151-5/+51
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | into mnc-dr-dev
| * | | | NetworkDiagnostics: ping default router from all global addreses.Lorenzo Colitti2015-09-101-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Dump Keyguard state in SystemUI and PhoneWindowManagerJorim Jaggi2015-09-124-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 23970549 Change-Id: Iec1e8ac507268086e0e2935847eda606ea1fb700
* | | | | Don't wait for brightness changesJorim Jaggi2015-09-111-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | am 5579e41c: Add op package to the UID special case handling in account manager.Svetoslav2015-09-111-0/+1
|\ \ \ \ \ | | |/ / / | |/| / / | |_|/ / |/| | | * commit '5579e41c6f81bba1fc1e8cc53186957e287b5dad': Add op package to the UID special case handling in account manager.
| * | | Add op package to the UID special case handling in account manager.Svetoslav2015-09-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Add double-tap power button to open camera 1/2" into mnc-dr-devJorim Jaggi2015-09-102-40/+111
|\ \ \ \
| * | | | Add double-tap power button to open camera 1/2Adrian Roos2015-09-092-40/+111
| | |_|/ | |/| | | | | | | | | | | | | | Bug: 23787555 Change-Id: I052b64748f155c59fbb649b32265f559423a8845
* | | | Merge "Special interval value to always run benchmarks." into mnc-dr-devJeff Sharkey2015-09-101-1/+7
|\ \ \ \
| * | | | Special interval value to always run benchmarks.Jeff Sharkey2015-09-091-1/+7
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Use AlarmManager for lockout resetJorim Jaggi2015-09-091-10/+43
|/ / / | | | | | | | | | | | | | | | | | | | | | So the lockout reset exactly fires after 30 seconds, independent of whether the device was in deep sleep. Bug: 23668918 Change-Id: Idea1a877c395897c1fd075cf98edf41c8b1f4082
* | | am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-devSvetoslav Ganov2015-09-092-41/+51
|\ \ \ | | |/ | |/| | | | | | | * commit '4f7d0bc7af5fbb65796d24b130b7e9e63107bc5d': Add get_accounts app op
| * | Add get_accounts app opSvetoslav2015-09-082-41/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Require the new PACKET_KEEPALIVE_OFFLOAD permission.Lorenzo Colitti2015-09-091-2/+1
| | | | | | | | | | | | | | | Bug: 23884210 Change-Id: I50a1a647a69deaba92e73021ee7d6cc0f3eb1eee
* | | Fix bugs and crashes in PacketKeepalive API.Lorenzo Colitti2015-09-092-9/+15
| | | | | | | | | | | | | | | | | | | | | Bug: 22606153 Bug: 23820819 Bug: 23884210 Change-Id: I1bf82094ec664baed345e9fb137fada0cbf4b7a0
* | | Add tests for the PacketKeepalive API.Lorenzo Colitti2015-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This currently fails in many different ways, but it tells us what to fix. Bug: 22606153 Bug: 23884210 Change-Id: If2e5ee0a8d7b26cad67d3d566ed5b1383e0db096
* | | Get rid of shortSleep() in ConnectivityServiceTest.Lorenzo Colitti2015-09-081-4/+12
| |/ |/| | | | | | | | | | | Instead, use IdleHandler to wait for things to become idle. Bug: 22606153 Change-Id: Ic6ab93ad4d336b40962f9be1096629a44b63ee2f
* | Cut down some logs.Robert Greenwalt2015-09-031-2/+2
| | | | | | | | | | bug:23623327 Change-Id: I737d4e6c384bf4da62c65ad2abe0c9b5dca0067a
* | am 6dd856b1: Merge "Don\'t drop runtime permissions on older system app ↵Svetoslav Ganov2015-09-031-6/+0
|\ \ | |/ | | | | | | | | | | update." into mnc-dev * commit '6dd856b1ea31bae083b6c2ed40af812c41b3a6cf': Don't drop runtime permissions on older system app update.
| * Merge "Don't drop runtime permissions on older system app update." into mnc-devSvetoslav Ganov2015-09-031-6/+0
| |\
| | * Don't drop runtime permissions on older system app update.Svetoslav2015-09-021-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a device with an installed version of an app that is not preinstalled and has some runtime permissions granted. Now we get OTA with an older version of the app which does not request these runtime permissions. We first scan system packages and then installed apps. During the scan we encounter the newly appeared system package and determine it is older than the one we have installed and disable it. However, before we disable the package we update the permissions for this package but since the one on the system partition (the one we found so far) doesn't request some of the runtime permissions granted to the installed version of the app, they get dropped on the floor. This grant attempt is not necessary as the permission the installed package has depends entirely on the permissions it requests. In this process we may look at the requested permissions on the disabled system package but in general the updated package cannot have a permission that it does not request regardless whether the disabled system app requests it or on. bug:23718806 Change-Id: I187bc11750eb270c3233c314992186f5d58d9d82
* | | am 512141d5: Merge "Respect DONT_KILL_APP flag when bringing down a disabled ↵Wale Ogunwale2015-09-032-10/+13
|\ \ \ | |/ / | | | | | | | | | | | | | | | service." into mnc-dev * commit '512141d581133ad5c1712ac097dcee08d46bae2c': Respect DONT_KILL_APP flag when bringing down a disabled service.
| * | Merge "Respect DONT_KILL_APP flag when bringing down a disabled service." ↵Wale Ogunwale2015-09-032-10/+13
| |\ \ | | | | | | | | | | | | into mnc-dev
| | * | Respect DONT_KILL_APP flag when bringing down a disabled service.Wale Ogunwale2015-09-022-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 540e123 introduce logic to clean up states when a component is disabled. For services this included marking the process running the service as removed so it can be killed later. However, this wasn't respecting the Intent.EXTRA_DONT_KILL_APP flag where the caller doesn't want the process of the disabled component to be killed. This change now takes the flag into account. Bug: 23491822 Bug: 15804187 Change-Id: I54a6e03cd66164dc8c4606a3c462114fe661ea8e
* | | | Merge "Add TabletModeChangedListener for SystemUI." into mnc-dr-devMichael Wright2015-09-031-0/+111
|\ \ \ \
| * | | | Add TabletModeChangedListener for SystemUI.Michael Wright2015-08-211-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 23256614 Change-Id: I6e5d636c24a84846cfad84da800911a469689dda
* | | | | Merge "Fingerprint should throttle after 5 attempts" into mnc-dr-devJim Miller2015-09-021-2/+2
|\ \ \ \ \
| * | | | | Fingerprint should throttle after 5 attemptsJim Miller2015-09-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 23762058 Change-Id: I62665dd3097b8e71075a5eddbf34a551db1507d5
* | | | | | Merge "Use private action for SUPL related connectivity changes." into ↵Daniel Estrada Alva2015-09-021-1/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | mnc-dr-dev
| * | | | | | Use private action for SUPL related connectivity changes.destradaa2015-09-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to prevent sendind a CONNECTIVITY_CHANGED broadcast for SUPL connection changes, which can cause many apps to wake up, as a work-around use a separate action. Bug: 22729462 Change-Id: I9847603ae56ab90d0f230cdcdc046c710397a553
* | | | | | | Merge "Add SUPL-specific network bcast" into mnc-dr-devDaniel Estrada Alva2015-09-021-2/+6
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | |
| * | | | | | Add SUPL-specific network bcastRobert Greenwalt2015-09-011-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move SUPL CONNECTIVITY_ACTION bcasts to a different, hidden intent to reduce the churn of apps when SUPL comes/goes. Short term hack until SUPL moves to use the new APIs and there's no bcast. bug:23350688 Change-Id: I3dc14b42afa72465260aa41ccedfe1df27baabd9
* | | | | | | am 60aae166: Apply default link-handling policy at OTA from pre-MChristopher Tate2015-09-021-9/+13
|\ \ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | * commit '60aae166e99dff0dba379e14c0fc43e89fd1a018': Apply default link-handling policy at OTA from pre-M
| * | | | | | Apply default link-handling policy at OTA from pre-MChristopher Tate2015-09-021-9/+13
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not just at first (wiped) boot. Bug 23744303 Change-Id: I9ab42f7b081e92231d89b3c97935135c3dd901d4
* | | | | | Merge "Only allow foreground app and keyguard to access FingerprintManager" ↵Jim Miller2015-09-021-13/+55
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | into mnc-dr-dev
| * | | | | | Only allow foreground app and keyguard to access FingerprintManagerJim Miller2015-09-011-13/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 21309357 Fixes bug 23566317 Change-Id: Ie776c36e2cc5c15a8789d76b604a9c7507efb605
* | | | | | | am cbacd4f0: Merge "Don\'t perform layout while adjusting displays/stacks ↵Filip Gruszczynski2015-09-012-7/+20
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | state." into mnc-dev * commit 'cbacd4f0cee10b63adf6e2d482e7b4f62c0104a0': Don't perform layout while adjusting displays/stacks state.