26864 Commits

Author SHA1 Message Date
Zach Johnson
d56958c440 Merge "Ignore carrier apps when checking for idleness" into mnc-dev 2015-06-09 00:06:29 +00:00
Filip Gruszczynski
5e4c382d15 resolved conflicts for merge of 17ba2e6c to mnc-dev
Change-Id: I9177f0e994e1e8fba02faf5a13f2dcec950ec5e0
2015-06-08 15:00:25 -07:00
Zach Johnson
b4b9ca7580 Ignore carrier apps when checking for idleness
Also introduce a way to check if a package has
carrier privileges for any active phone.

Change-Id: If5c5fe07f05ffc90fc21431eb27cf48030c0175b
2015-06-08 13:49:13 -07:00
keunyoung
7da9d7aa52 Merge "apply force hiding of window only when it is main display" into mnc-dev 2015-06-08 20:08:49 +00:00
keunyoung
7a542b66e0 apply force hiding of window only when it is main display
- force hiding window for non-main display leads into stopping
  rendering of windows in non-main display.
- change the logic to skip force hiding if it is not main display.

bug: 21665476

Change-Id: I2e23f3a2d6e3cbf6819ade1798360efe2986e80e
2015-06-08 12:55:51 -07:00
Dianne Hackborn
54d729b73f Merge "Fix issue #21572679: API Review: ActivityOptions, usage time report" into mnc-dev 2015-06-08 19:46:24 +00:00
Mike Lockwood
383ce580b1 Merge "MidiManager: proxy all requests to open devices through MidiService" into mnc-dev 2015-06-08 19:37:36 +00:00
dcashman
b576646853 Merge "Add SYSTEM_DIR check to upgrade-key-set verification." into mnc-dev 2015-06-08 18:20:47 +00:00
dcashman
f61ae2de25 Add SYSTEM_DIR check to upgrade-key-set verification.
Bug: 21697139
Change-Id: I7e6ce3d7f231e0ca5da1f501c80342a04f6c2a1e
2015-06-08 10:53:20 -07:00
Wale Ogunwale
281dffb76f Merge "Include launched packageName in systrace." into mnc-dev 2015-06-08 17:45:04 +00:00
Adam Lesinski
ce1590dac9 Merge "Wait for wakeup_reasons on first init" into mnc-dev 2015-06-08 17:42:20 +00:00
Dimitry Ivanov
25bb4553f3 Merge "Revert "Print exception stacktrace on failed scanPackageLI"" into mnc-dev 2015-06-08 17:28:25 +00:00
Dimitry Ivanov
47fc7fe7f6 Revert "Print exception stacktrace on failed scanPackageLI"
This reverts commit 95b7d50ce1a1ae879bbb1b8b8262172744c28d0e.

Bug: 8076853
Change-Id: Ia19e6638a97b7b49561932752a204990e3a486d4
2015-06-08 17:12:55 +00:00
Wale Ogunwale
7fa228f4ea Merge "Release voice wake lock at end of voice interaction session" into mnc-dev 2015-06-08 17:05:09 +00:00
Wale Ogunwale
4a922d4700 Release voice wake lock at end of voice interaction session
Bug: 21615776
Bug: 21615761
Change-Id: I75d568474d4df5f21ea5b616887c6187e54f69e7
2015-06-08 09:59:54 -07:00
Wale Ogunwale
aac4c5c28f Merge "Hold service lock when AMS.setProcessMemoryTrimLevel() is called" into mnc-dev 2015-06-08 16:50:22 +00:00
Tim Kilbourn
159f558a39 Merge "Pass an args bundle to launchAssistAction." into mnc-dev 2015-06-08 16:46:42 +00:00
Narayan Kamath
7829c81345 Include launched packageName in systrace.
This makes it easier to tell which package the activity manager is
launching. The downside here is that each launch shows up in a separate
row in the systrace, but this matches up with the "Start proc:" label,
which contains the package name as well and makes it easier to inspect
both simultaneously.

bug: 21632700
Change-Id: I20ebc2f2a2cf0dc74c6d7daa4bafa381ae4c4060
2015-06-08 17:39:43 +01:00
John Spurlock
20ac61b8c0 Merge "Zen: New user flow for requesting DND access." into mnc-dev 2015-06-08 16:39:36 +00:00
Wale Ogunwale
e9408f3157 Hold service lock when AMS.setProcessMemoryTrimLevel() is called
Bug: 21633189
Change-Id: I7203807466593ced6ec3dd328c1a03532caf3a31
2015-06-08 09:14:37 -07:00
John Spurlock
7c74f78a85 Zen: New user flow for requesting DND access.
- User flow is now similar to requesting access to notification
   content, namely prompting the user to visit a settings page
   for enabling/disabling apps access.
 - New ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED intent
   for apps to listen to this state change.
 - Removed obsolete request method and associated internal callback
   aidl.
 - Added new android.permission.ACCESS_NOTIFICATION_POLICY permission
   for apps to include as a signal that they want to request this access
   (and therefore appear in the list on the settings page).
 - Improve javadocs, outline the user flow in NotificationManager#isNotificationPolicyAccessGranted
   and link to this method elsewhere.
 - NoManService now persists the user-enabled package list across reboots
   and does so per-user.
 - Rename public settings intent to correspond with the noman api.

Bug: 21621663
Change-Id: I72cbc21cd736e6a157b6be5d1d0ba0b4a8e7ef4e
2015-06-08 11:53:35 -04:00
Mady Mellor
e1f3214e72 Merge "Change stylus button press to context click in View - API review feedback" into mnc-dev 2015-06-08 15:11:32 +00:00
Lorenzo Colitti
ef2ccf5f4b Merge "Correctly time out CMD_START_DHCP." into mnc-dev 2015-06-08 12:48:40 +00:00
Lorenzo Colitti
5bc64b847a Correctly time out CMD_START_DHCP.
WifiStateMachine expects CMD_START_DHCP to time out after 30-40
seconds. Currently, DhcpClient imposes timeouts on DhcpInitState
and on DhcpRequestState, but not on the time it takes to get to
from CMD_START_DHCP to DhcpBoundState. So in theory the client
could oscillate between DhcpInitState and DhcpRequestState and
never time out.

Fix this by introducing a new oneshot timer that is set when DHCP
starts and is cancelled when it succeeds. CMD_RENEW_DHCP does not
need this because it's implemented using only one state, so the
oneshot timeout can be implemented using the state timeout.

Bug: 19704592
Change-Id: I6a5847a3dee23a2692237b8f3b3b0f8049da5140
2015-06-08 19:57:14 +09:00
Lorenzo Colitti
dc540ea067 Merge "Delete code that checks for the simulator, it's long gone." into mnc-dev 2015-06-08 04:18:40 +00:00
Adam Lesinski
6b0331a030 Wait for wakeup_reasons on first init
Previously if we were initializing the wakeup callback for the first time,
we would read the wakeup_reason file and ignore the contents, sending a
wakeup_reason of "unknown" up to BatteryStats.

Now we initialize the callback and wait on it immediately. Wakeup reasons are reset
when we go into sleep, so when we wakeup, we will always have fresh wakeup reasons.

Bug:21665793

Change-Id: I20832d8a143fc2715915fcecf4bb71980f279440
2015-06-05 17:47:07 -07:00
Justin Harrison
c3b9156e28 am 6715ef75: am 4f2927d2: am 0eeb3bb8: am 33aa55b1: am 127d0b80: Merge "Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""" into lmp-mr1-dev
* commit '6715ef754a72fdc2477257051e539c38aae6afcd':
  Revert "Revert "During early boot, send LOCALE_CHANGED only to registered receivers""
2015-06-06 00:06:07 +00:00
Justin Harrison
9445df6f0b am 95be178d: am c4d7c826: am f8c2ffef: am c8fd50b1: am 29b98884: Merge "Revert "During early boot, send LOCALE_CHANGED only to registered receivers"" into lmp-mr1-dev
* commit '95be178dafd0dfefcae060f65df296cb523f82a4':
  Revert "During early boot, send LOCALE_CHANGED only to registered receivers"
2015-06-06 00:06:02 +00:00
Christopher Tate
97c699e2bd Merge "Don't run backups in battery-saver mode" into mnc-dev 2015-06-05 23:50:44 +00:00
Stefan Kuhne
5c6c06bf18 Merge "Adding am send-trim-memory command" into mnc-dev 2015-06-05 23:37:15 +00:00
Stefan Kuhne
16045c24fe Adding am send-trim-memory command
This patch adds a send-trim-memory command to the ActivityManager to allow
for better debugging&testing.

The command is
adb shell am send-trim-memory [--user <USER_ID>] <PROCESS> <LEVEL>
whereas LEVEL can be one of the following:
[HIDDEN|RUNNING_MODERATE|BACKGROUND|RUNNING_LOW|MODERATE|
 RUNNING_CRITICAL|COMPLETE]

Bug: 21633189
Change-Id: I7a41ce02c3c9043ffd3e5aaa791f7b7306a9de49
2015-06-05 16:30:29 -07:00
Tim Kilbourn
0e5f110fc9 Pass an args bundle to launchAssistAction.
In order to track the input device that was used to trigger assist, the
input device id is sent as an extra in the assist intent whenever it is
available. This is particularly useful on TVs, when an app may want to
know whether the input device has a microphone.

Bug: 21666123
Change-Id: I0f8c09e2f617606bef481bdff924cb6b9b47dd12
2015-06-05 23:26:39 +00:00
Jae Seo
b40933defe Merge "TIF: Convert fields to local variables" into mnc-dev 2015-06-05 23:04:03 +00:00
Filip Gruszczynski
17ba2e6c49 am aaf1811d: Calculate outsets before window frame adjustment.
* commit 'aaf1811dda607f10ab0f0ae80fd2b2b7cf9d0069':
  Calculate outsets before window frame adjustment.
2015-06-05 23:00:32 +00:00
Jorim Jaggi
c554b77b73 Skip first frame for app transitions when possible
In most of our standard app transitions, the first frame of a
transition results in the same contents on the screen. This is
inefficient, as we can directly skip to the second frame of the
transition, introduce no jank, but execute the transition 16ms
faster.

Change-Id: If58337eae5558eae3acced691ae01c769f0ec2b9
2015-06-05 22:00:33 +00:00
Jae Seo
38b3257b7c TIF: Convert fields to local variables
Change-Id: Ide6c5ad36229410f30f7929c6dd511945d48aa6f
2015-06-05 14:53:21 -07:00
Dianne Hackborn
67ba2c7fa2 Fix issue #21572679: API Review: ActivityOptions, usage time report
Change-Id: I62751e93e39f90d5d2ec725586880724f3edbbc7
2015-06-05 14:23:38 -07:00
Christopher Tate
ad8a962316 Don't run backups in battery-saver mode
Defer both full-data and key/value backups while in battery-saver mode.

Bug 21563473

Change-Id: I081b7bcd19af21a4c88ebb434d2d3ef4bc93951f
2015-06-05 14:22:11 -07:00
Filip Gruszczynski
aaf1811dda Calculate outsets before window frame adjustment.
Bug: 21635628
Change-Id: I2d818e6d543c885dca2d19553bad5ce1adda95a6
2015-06-05 13:37:40 -07:00
Jorim Jaggi
3bb96c7b3b Merge "Refinements for app transitions" into mnc-dev 2015-06-05 20:19:40 +00:00
Chris Wren
dfa4af2dfa Merge "remove obsolete notification visibility log" into mnc-dev 2015-06-05 20:13:47 +00:00
Chris Wren
7a4f9ca937 remove obsolete notification visibility log
Bug: 21248682
Change-Id: I8656a924514dd01ebc003f3cc81b1a9316919321
2015-06-05 16:12:18 -04:00
Jorim Jaggi
1d763a6d60 Refinements for app transitions
- Use refined interpolator for most of the transitions which respond
to touch faster than a normal fast_out_slow_in interpolator.
- Tune clip reveal animation: Get rid of horizontal movement, only do
slight vertical movement, and make horizontal reveal animation faster
so there is a more staggered animation to resemble an opening paper

Change-Id: Id94328906f9b194fb97d702e9b102c7aeef96bb8
2015-06-05 11:42:34 -07:00
Amith Yamasani
8fa24e91c4 Merge "Fix permission check in DPM.getPermissionGrantState" into mnc-dev 2015-06-05 18:36:08 +00:00
Chris Wren
b1e0438ce3 Merge "add a log for notification alerts." into mnc-dev 2015-06-05 18:22:21 +00:00
Chris Wren
82ba59de0e add a log for notification alerts.
Bug: 21242827
Change-Id: I1b8beee5cc12a9cd23e81554f7f2236ddc29e2b6
2015-06-05 13:49:59 -04:00
Filip Gruszczynski
b0c673b50e resolved conflicts for merge of f6a04305 to mnc-dev
Change-Id: I92e666bfd6d8ad051bdee7dce5712b9cb8e6a01d
2015-06-05 09:43:06 -07:00
Mady Mellor
e860891b1a Change stylus button press to context click in View - API review feedback
Updates all references in View's onStylusButtonPress to onContextClick
as per API review feedback.

Additionally listens for mouse right clicks and calls the onContextClick
method for these as well for the stylus button press.

Bug: 21572278
Change-Id: I5c1ee8c8f23a77d7c677b86356e89d0e4fc40056
2015-06-05 09:02:55 -07:00
Lorenzo Colitti
06400475c7 Delete code that checks for the simulator, it's long gone.
Exhibit A: http://b/5010576

Bug: 19316303
Change-Id: I093e4320f12459adaa51c6a14350e7a60e02937d
2015-06-05 17:21:29 +09:00
Lorenzo Colitti
a34af2c0d7 Merge "Remove "returning Blocked NetworkInfo" logspam." into mnc-dev 2015-06-05 07:50:44 +00:00