Commit Graph

19865 Commits

Author SHA1 Message Date
Hugo Benichi
bc2eea7c23 ConnectivityService dump: add apps blocked logs
am: c2ae287e73

Change-Id: I50c87dc35ef219844a5337768ec2526aeff4f1ca
2016-07-12 04:39:05 +00:00
Hugo Benichi
c2ae287e73 ConnectivityService dump: add apps blocked logs
This patch adds NetworkInfo BLOCKED/UNBLOCKED status of apps to
ConnectivityService's dump logs.

The BLOCKED or UNBLOCKED status of an app is logged with the app uid
when the app calls getActiveNetworkInfo().

Examples:
mNetworkInfoBlockingLogs (most recent first):
  07-11 11:04:43.139 - BLOCKED 10060
  07-11 11:04:39.056 - UNBLOCKED 10061
  07-11 11:04:38.851 - BLOCKED 10061

Bug: 29981766
Change-Id: I6e2fde446702b92b0964ed894409b5d733d8f8a7
2016-07-12 11:39:48 +09:00
Christopher Tate
da70788a6f Merge \"Don\'t force fstrim on OTA\" into nyc-mr1-dev
am: bef41bf538

Change-Id: I44a67399d64e44e4966e891f50d1c19db84f5a70
2016-07-12 00:00:13 +00:00
Chris Tate
bef41bf538 Merge "Don't force fstrim on OTA" into nyc-mr1-dev 2016-07-11 23:43:52 +00:00
Makoto Onuki
fcf7db9eed Merge \"Handle package broadcasts before apps do\" into nyc-mr1-dev
am: ae13eee9c6

Change-Id: I4eee7d585bfe1218fae425f2b3f2097965924587
2016-07-11 21:40:25 +00:00
Makoto Onuki
ae13eee9c6 Merge "Handle package broadcasts before apps do" into nyc-mr1-dev 2016-07-11 21:29:59 +00:00
Christopher Tate
d589c185c5 Don't force fstrim on OTA
This avoids showing a (momentary) "Optimising storage" UI along the way,
which proved to be jarring.

Bug 30064543

Change-Id: Iaff0f32eea4170829d71a4f2bd270cc63d1da543
2016-07-11 14:11:23 -07:00
Tim Murray
6ab97e587e Merge changes from topic \'stune\' into nyc-mr1-dev
am: b646ec13e1

Change-Id: I9d21ab285810d4c218ff0854b98cf7fc0d555236
2016-07-11 20:37:19 +00:00
Tim Murray
b646ec13e1 Merge changes from topic 'stune' into nyc-mr1-dev
* changes:
  Put bootanimation in top-app stune group.
  Sets android.ui to be in the fg stune group.
2016-07-11 20:29:40 +00:00
Christopher Wiley
2e3810b2fa Merge \"Stop listening for WiFi interface status changes\" into nyc-mr1-dev
am: 377a8dd1e4

Change-Id: I3a3d1b254a5f2596a050977318645eb4f47c1534
2016-07-11 19:52:41 +00:00
TreeHugger Robot
377a8dd1e4 Merge "Stop listening for WiFi interface status changes" into nyc-mr1-dev 2016-07-11 19:20:49 +00:00
Makoto Onuki
a2241834a5 Handle package broadcasts before apps do
- Have PM to call the shortcut manager directly before sending a
pacakge broadcast.

- The shortcut manager will enqueue a task to handle a package
broadcast, which will be executed on Handler.

- At the entry points of all external facing methods, block until
all pending tasks are finished.

Bug 29895275

Change-Id: Ib29fa3c9c8d9b9e0ca5c8f1e9da2a390324960a4
2016-07-11 11:28:10 -07:00
Chong Zhang
cd8e1beabb Merge \"Fix potential loophole where ime adjust notification is not sent\" into nyc-mr1-dev
am: 74835504ed

Change-Id: Ie2b277f158c43a8d8d8966208301f724bfd22a48
2016-07-11 17:27:51 +00:00
Chong Zhang
74835504ed Merge "Fix potential loophole where ime adjust notification is not sent" into nyc-mr1-dev 2016-07-11 17:17:03 +00:00
Christopher Wiley
d30aaeb214 Stop listening for WiFi interface status changes
Bug: 29931437
Test: Can toggle tethering on and off repeated on shamu and an
      upcoming device, both devices without a SIM.
Test: Can toggle tethering on and off repeated on an
      upcoming device with a T-Mobile SIM.

Change-Id: I4986b1a5f6ae9b45010bd30639806f7ed63a605c
2016-07-11 08:56:45 -07:00
Erik Kline
915d09b5d4 Support requesting async LinkProperties/NetworkCapabilities updates
am: acdd639513

Change-Id: Icc048323debbbe641941c5c0d993f4c9782c5d3e
2016-07-11 11:01:42 +00:00
Erik Kline
acdd639513 Support requesting async LinkProperties/NetworkCapabilities updates
Bug: 9580643
Change-Id: I1d7ba7645c20d7d53f6eef777dfce43727940f13
2016-07-11 19:17:41 +09:00
Doris Ling
b8d3caf4b8 Merge \"Add a secure setting for double twist gesture for camera flip.\" into nyc-mr1-dev
am: 3e869587e8

Change-Id: If64a188d45beea48d264219df8a9c7bce63bcecf
2016-07-09 00:03:08 +00:00
Doris Ling
3e869587e8 Merge "Add a secure setting for double twist gesture for camera flip." into nyc-mr1-dev 2016-07-08 23:58:46 +00:00
Tim Murray
4074ad01e8 Sets android.ui to be in the fg stune group.
setThreadGroup(TOP_APP) will place a thread in the fg stune group but
not the top_app cpuset. This allows android.ui to get more runtime to
render transitions between activities without impacting its CPU
placement.

bug 29512132

Change-Id: I95e031975f83290f88ac6e538abf1062aea27ed4
2016-07-08 15:45:45 -07:00
Jorim Jaggi
0483184454 Merge \"Preparations for different scrim depending on wallpaper\" into nyc-mr1-dev
am: 702589d060

Change-Id: I32c188034c773836ade46ddab63606e7e88400de
2016-07-08 22:19:42 +00:00
TreeHugger Robot
702589d060 Merge "Preparations for different scrim depending on wallpaper" into nyc-mr1-dev 2016-07-08 22:13:51 +00:00
Jorim Jaggi
6e57aae680 Merge \"Improve initial unlock delay (1/2)\" into nyc-mr1-dev
am: 165b011a74

Change-Id: Ib7bfefcd59288d144a22434e5a99124c66fa4826
2016-07-08 22:08:37 +00:00
TreeHugger Robot
165b011a74 Merge "Improve initial unlock delay (1/2)" into nyc-mr1-dev 2016-07-08 22:03:49 +00:00
Doris Ling
a60d31d70f Add a secure setting for double twist gesture for camera flip.
Add Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED to control whether the
double twist gesture should flip the camera between front and back mode
is enabled or not. Also move SYSTEM_NAVIGATION_KEYS_ENABLED from
Global to Secure.

Bug: 29869445
Change-Id: I614289e6de7b1ee4221de7047a5e0dd784607bed
2016-07-08 14:32:32 -07:00
Justin Klaassen
1228803cde Merge \"Add Night display feature\" into nyc-mr1-dev
am: 76262b8e14

Change-Id: I03912016390820f61fb515b1f206edd9bfea9ccf
2016-07-08 21:15:35 +00:00
Jorim Jaggi
e8fde5d966 Improve initial unlock delay (1/2)
When checking for the credentials, we add a new callback
onEarlyVerified which gets called as soon as we know that the
credential was correct.

In KeyguardUpdateMonitor, we track the unlocked state of the user,
and if it's still locked, we slow down all the transitions to allow
for a more gradual unlock experience.

Bug: 29007436

Change-Id: I406d228f9f3e41e07fe3292a61df175a7f579e4d
2016-07-08 11:50:54 -07:00
Justin Klaassen
911e88939c Add Night display feature
Bug: 28615069

Tints the display at night automatically according to your schedule or
using the sunrise/sunset corresponding to your current location.

Change-Id: Ie56b4eed88cc2fcbae88002492b1edad5820b6b1
2016-07-08 11:47:50 -07:00
Jim Miller
7d5389bd07 Merge \"Fix bug with launching home activity from LockSettingsService\" into nyc-mr1-dev
am: 49fd320574

Change-Id: Id050bad455a77ecc6523e8f0d5363668677f6945
2016-07-07 22:38:27 +00:00
TreeHugger Robot
49fd320574 Merge "Fix bug with launching home activity from LockSettingsService" into nyc-mr1-dev 2016-07-07 22:32:10 +00:00
Jeff Sharkey
7ca3706ebd Merge \"Suppress PRE_BOOT notifications for some profiles.\" into nyc-mr1-dev
am: 99f70388ff

Change-Id: I977d5e4073ce57809ffb2b2e324b133c52341c4f
2016-07-07 20:48:43 +00:00
Tim Murray
03b34e402c Merge changes from topic \'fifo\' into nyc-mr1-dev
am: a96d445aef

Change-Id: If4a5c3f65cb611aecf82ad49ad6d992f098cbfb1
2016-07-07 20:48:27 +00:00
TreeHugger Robot
99f70388ff Merge "Suppress PRE_BOOT notifications for some profiles." into nyc-mr1-dev 2016-07-07 20:31:38 +00:00
Tim Murray
a96d445aef Merge changes from topic 'fifo' into nyc-mr1-dev
* changes:
  Add new mode for SCHED_FIFO on UI and RenderThreads.
  Add isThreadInProcess.
2016-07-07 20:29:24 +00:00
Tim Murray
33eb07f575 Add new mode for SCHED_FIFO on UI and RenderThreads.
Add a new mode, controlled by sys.use_fifo_ui property, that enables the
top app's UI and RenderThread to be SCHED_FIFO. This eliminates almost
all jank due to scheduling competition with non-UI critical
threads. This mode may not be suitable for all devices.

bug 24503801

Change-Id: I7b8a31830ad80f7efa00236928d5476998ed4e00
2016-07-07 12:55:31 -07:00
Jeff Sharkey
cb2dce0352 Merge \"Remove \"starting apps\" boot message.\" into nyc-mr1-dev
am: bb2d9ab98e

Change-Id: Ie4b072d38eaa281b6292ac70eb366734013c907d
2016-07-07 19:49:32 +00:00
Philip Cuadra
168050799c Merge \"Make pinning files async in a background thread\" into nyc-mr1-dev
am: f0df804e0a

Change-Id: Ic32e9e9d9260c18365c29f12cb60ad67a3590a47
2016-07-07 19:42:15 +00:00
TreeHugger Robot
bb2d9ab98e Merge "Remove "starting apps" boot message." into nyc-mr1-dev 2016-07-07 19:37:24 +00:00
TreeHugger Robot
f0df804e0a Merge "Make pinning files async in a background thread" into nyc-mr1-dev 2016-07-07 19:35:28 +00:00
Jeff Sharkey
24d949138f Suppress PRE_BOOT notifications for some profiles.
When a profile is unlocked as a side effect of it's parent user being
unlocked, it's confusing to see two sets of identical notifications,
so suppress the set belonging to the profile.

Profile notifications are still shown when the profile has a separate
authentication challenge.

Bug: 29931646
Change-Id: Id8d621451996c9e2f159560894596292ceb00f8d
2016-07-07 12:48:43 -06:00
Jeff Sharkey
7380c321ad Remove "starting apps" boot message.
The "starting apps" message is only shown for a short period of time
before we show the lock screen.  Recent boot animations now have a
spin down phase which is just long enough to result in us flashing
this message for a very short period of time, which looks janky.

To avoid the janky behavior, remove this message altogether.  Other
boot messages for dexopt'ing after an OTA remain intact.

Also fix security bug that would allow any app to show a message.

Bug: 29367890
Change-Id: I77bb65acbe0e5afb4033dc6b83e533e665dce690
2016-07-07 12:13:57 -06:00
Philip Cuadra
a95cea04d5 Make pinning files async in a background thread
Make the actual pinning of files be async in the system server background thread.
There's no need to block system_server from doing useful work on the ui
thread while the files are pinned.

bug 28251566

Change-Id: I905c165533692979ac179e987216378210396e75
2016-07-07 10:57:44 -07:00
Shibin George
43e8af64c2 Merge \\\"Resolve deadlock between ActivityManagerService and PowerManagerService\\\" am: 06561db207 am: 2c565826ba
am: 26a0b16da8

Change-Id: Ib90892556fde2bf8c53a7074b5d2702059adff65
2016-07-07 15:41:48 +00:00
Shibin George
26a0b16da8 Merge \\"Resolve deadlock between ActivityManagerService and PowerManagerService\\" am: 06561db207
am: 2c565826ba

Change-Id: I875f9f1ed5f6ab82c85ab35e7a24737d08aa3365
2016-07-07 15:36:46 +00:00
Shibin George
2c565826ba Merge \"Resolve deadlock between ActivityManagerService and PowerManagerService\"
am: 06561db207

Change-Id: I7f78cf1ef0c490aceb527dbc82228d00fae2f7e4
2016-07-07 15:31:16 +00:00
Shibin George
43f5de0125 Resolve deadlock between ActivityManagerService and PowerManagerService
ActivityManagerService lock and PowerManagerService.mLock can
be acquired in different threads in different orders.
registerReceiver() here tries to acquire ActivityManagerService
internally while holding mLock. A particular call from
WindowManagerService acquires these locks in reverse order.
This deadlock can be resolved by moving registerReceiver()
to another thread.

https://code.google.com/p/android/issues/detail?id=215254

Change-Id: I12cd610e61f212a3fb5e441f2c7a557c90afbda4
Signed-off-by: Shibin George <shibing@codeaurora.org>
2016-07-07 19:45:35 +05:30
Ricky Wai
844ebd767c Merge \"Do not show user locked notification after reboot when there is no lock\" into nyc-mr1-dev
am: f32e96a8df

Change-Id: If32cda85b7737d04ffc83fc6686c176f9e6910a1
2016-07-07 11:12:37 +00:00
Ricky Wai
f32e96a8df Merge "Do not show user locked notification after reboot when there is no lock" into nyc-mr1-dev 2016-07-07 11:05:55 +00:00
Lorenzo Colitti
2249ae1c47 Merge \"Rewrite lingering.\" into nyc-mr1-dev
am: b0a574fbfc

Change-Id: I62d69f20101318b42d4d333b104dcf4f64dc1725
2016-07-07 11:01:19 +00:00
Lorenzo Colitti
b0a574fbfc Merge "Rewrite lingering." into nyc-mr1-dev 2016-07-07 10:55:39 +00:00