OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "docs: Updated API changes for Dinar wearable support." into mnc-docs am: 71b1f...
sreevanis [Tue, 26 Apr 2016 20:40:13 +0000 (20:40 +0000)]
Merge "docs: Updated API changes for Dinar wearable support." into mnc-docs am: 71b1f0b  -s ours am: a6d7166 am: 0446ed4
am: f786db7

* commit 'f786db7b9bcc6ebfa79b4bc60a837877e5a8a380':

Change-Id: I0c8528b9a6a0313f8983cd4d75adc244ec68f92d

8 years agosimplification and clarification to the Studio Overview am: e9b3ada am: f1a5076
smain@google.com [Tue, 26 Apr 2016 20:36:57 +0000 (20:36 +0000)]
simplification and clarification to the Studio Overview am: e9b3ada am: f1a5076
am: 1f8be54

* commit '1f8be548ae1c21be6651ddc2621018b2028c58d0':

Change-Id: I2e08479aadd3d223b11e10d873239e14ed1a6976

8 years agoMerge "improved structure and organization between video and training docs on the...
smain@google.com [Tue, 26 Apr 2016 20:34:41 +0000 (20:34 +0000)]
Merge "improved structure and organization between video and training docs on the Training landing page." into mnc-mr-docs am: 49b17d3 am: 30c61f9
am: 07bfe29

* commit '07bfe296d0e7337ba42fcf260d1029746308a262':

Change-Id: Iedc8b307eba45aa106b52fac980fe1c0fe8cdae3

8 years agoMerge "Improve SurfaceView postion snapping" into nyc-dev
Chris Craik [Tue, 26 Apr 2016 20:20:37 +0000 (20:20 +0000)]
Merge "Improve SurfaceView postion snapping" into nyc-dev

8 years agoMerge "Fix a crash when setting vertical gear location and content view null" into...
Mady Mellor [Tue, 26 Apr 2016 19:38:42 +0000 (19:38 +0000)]
Merge "Fix a crash when setting vertical gear location and content view null" into nyc-dev

8 years agoMerge "Fix onPrepareActionMode() not being called" into nyc-dev
Chris Banes [Tue, 26 Apr 2016 19:20:14 +0000 (19:20 +0000)]
Merge "Fix onPrepareActionMode() not being called" into nyc-dev

8 years agoMerge "Ensure local settings caches are not stale" into nyc-dev
Svetoslav Ganov [Tue, 26 Apr 2016 18:36:26 +0000 (18:36 +0000)]
Merge "Ensure local settings caches are not stale" into nyc-dev

8 years agoMerge "Remove -night qualified resources" into nyc-dev
TreeHugger Robot [Tue, 26 Apr 2016 18:33:03 +0000 (18:33 +0000)]
Merge "Remove -night qualified resources" into nyc-dev

8 years agoEnsure local settings caches are not stale
Svet Ganov [Wed, 20 Apr 2016 02:38:00 +0000 (19:38 -0700)]
Ensure local settings caches are not stale

We used the system proterties as a shared memory mechanism
to propagate information to local settings caches when the
content has changed and the cache should be cleared. The
system properties are unfortunately updated asynchronously
leading to cases where clients may read stale data.

This change adds a simple int array data structure backed
by shared memory which guarantees individual values are
atomically read and updated without memory tear. Multi-
index opearations are not synchronized between each other.

The settings provider is using the new data structure to
propagate the settings generation which drives when caches
are purged.

We have a single memory array keeping the generation for
different settings tables per user. Since memory array is
not a compact data structure and the user space exceeds
the memory array size we use an in-memory map from keys
to indices in the memory array where the generation id of
a key is stored. A key is derived by the setting type in
the 4 most significant bits and the user id in the 28 least
significant bits.

The mapping from a key to an index is cleared if the user is
removed and the corresponding index in the memory arry is
reset to make it available for other users. The size of the
memory array is derived from the max user count that can be
created at the same time.

bug:18826179

Change-Id: I64009cc5105309ef9aa83aba90b82afc8ad8c659

8 years agoMerge "SchedulingPolicyService: Fix UID for cameraserver" into nyc-dev
Eino-Ville Talvala [Tue, 26 Apr 2016 18:21:42 +0000 (18:21 +0000)]
Merge "SchedulingPolicyService: Fix UID for cameraserver" into nyc-dev

8 years agoFix a crash when setting vertical gear location and content view null
Mady Mellor [Tue, 26 Apr 2016 18:01:03 +0000 (11:01 -0700)]
Fix a crash when setting vertical gear location and content view null

When setting the vertical location of the gear we need the collapsed
height of the parent, the parent might not be fully laid out so move
setting the vertical location into onLayout instead

Bug: 28390732
Change-Id: I7c1bf14a54e9f1ef0a693fa13e1a6533f5967631

8 years agoMerge "Bluetooth: Fine tune audio gain for Absolute Volume case" into nyc-dev
TreeHugger Robot [Tue, 26 Apr 2016 17:43:20 +0000 (17:43 +0000)]
Merge "Bluetooth: Fine tune audio gain for Absolute Volume case" into nyc-dev

8 years agoMerge "Don't opt-out of warning dialog by default on user builds." into nyc-dev
TreeHugger Robot [Tue, 26 Apr 2016 17:40:27 +0000 (17:40 +0000)]
Merge "Don't opt-out of warning dialog by default on user builds." into nyc-dev

8 years agoMerge "Add "do not kill" install option" into nyc-dev
Todd Kennedy [Tue, 26 Apr 2016 17:17:48 +0000 (17:17 +0000)]
Merge "Add "do not kill" install option" into nyc-dev

8 years agoMerge "Apply tint when setting check mark drawable" into nyc-dev
TreeHugger Robot [Tue, 26 Apr 2016 17:17:02 +0000 (17:17 +0000)]
Merge "Apply tint when setting check mark drawable" into nyc-dev

8 years agoBluetooth: Fine tune audio gain for Absolute Volume case
Liejun Tao [Wed, 9 Mar 2016 21:52:13 +0000 (15:52 -0600)]
Bluetooth: Fine tune audio gain for Absolute Volume case

Fine tune the audio gain for Bluetooth Absolute Volume.
Use 50%, 70% and 85% for lowest volume steps 1, 2 and 3.
Thus the volume change sounds smoother, more linear.
When remote end tune volume out of mute, we should also
tune the audio gain for the lowest volume steps.

Bug: 26694114
Change-Id: I298a334a4b40ddb87495fda1935349bfce8b0537

8 years agoMerge changes from topic 'api_review' into nyc-dev
Julia Reynolds [Tue, 26 Apr 2016 15:29:09 +0000 (15:29 +0000)]
Merge changes from topic 'api_review' into nyc-dev

* changes:
  Api review: Settings.
  Reduce spacing.

8 years agoMerge "cancel group children before summaries" into nyc-dev
Chris Wren [Tue, 26 Apr 2016 15:26:33 +0000 (15:26 +0000)]
Merge "cancel group children before summaries" into nyc-dev

8 years agoMerge "Swap star tint." into nyc-dev
Julia Reynolds [Tue, 26 Apr 2016 15:26:26 +0000 (15:26 +0000)]
Merge "Swap star tint." into nyc-dev

8 years agoMerge "Frameworks/base: Make debug helper lazy in ConnectivityManager" into nyc-dev
TreeHugger Robot [Tue, 26 Apr 2016 15:25:43 +0000 (15:25 +0000)]
Merge "Frameworks/base: Make debug helper lazy in ConnectivityManager" into nyc-dev

8 years agoSwap star tint.
Julia Reynolds [Tue, 26 Apr 2016 13:17:08 +0000 (09:17 -0400)]
Swap star tint.

Bug: 27558254
Change-Id: Ia72cdc89d4cdcf3f5a5210f14632c15271922a98

8 years agoMerge "Change app selection policy for post-OTA verification" into nyc-dev
David Brazdil [Tue, 26 Apr 2016 12:22:14 +0000 (12:22 +0000)]
Merge "Change app selection policy for post-OTA verification" into nyc-dev

8 years agoLoadedApk: Don't set up JIT profile support inside the system_server.
Narayan Kamath [Mon, 25 Apr 2016 18:16:56 +0000 (19:16 +0100)]
LoadedApk: Don't set up JIT profile support inside the system_server.

We shouldn't profile *any* packages loaded by the system_server, not
just the system_servers own ("android") package.

bug: 28241500
Change-Id: I5f3f477b40c758030a5bdc8e97d17cab6e68e204

8 years agoFix onPrepareActionMode() not being called
Chris Banes [Tue, 26 Apr 2016 11:53:59 +0000 (12:53 +0100)]
Fix onPrepareActionMode() not being called

Happens because mActionMode was set at the end
of the call, which means that invalidate() doesn't
actually do anything.

BUG: 28392319
Change-Id: Ifdc97c03dc43bfbe74790f90764d1575bd9ca951

8 years agoChange app selection policy for post-OTA verification
David Brazdil [Mon, 18 Apr 2016 13:08:52 +0000 (14:08 +0100)]
Change app selection policy for post-OTA verification

Changes the policy for selecting packages which will be pre-verified
during post-OTA boot animation.

For Nx to Ny, an app is pre-verified if used in the foreground in the
last 7 days, or if its APK was loaded by other apps.

For M to N (or early N builds without detailed stats), an app is
pre-verified if it has any recorded use in the last 7 days.

Bug: 27902702
Bug: 27350503
Change-Id: I2b38daf017ecd0e5aa5ed596ed9351cffa03dbcb

8 years agoMerge "Enable profile merging for post-OTA package verification" into nyc-dev
David Brazdil [Tue, 26 Apr 2016 11:39:41 +0000 (11:39 +0000)]
Merge "Enable profile merging for post-OTA package verification" into nyc-dev

8 years agoEnable profile merging for post-OTA package verification
David Brazdil [Tue, 26 Apr 2016 09:18:04 +0000 (10:18 +0100)]
Enable profile merging for post-OTA package verification

Currently post-OTA verification will attempt to compile with
'verify-profile' but does not merge the profiles prior to calling
dex2oat. As a result, we may miss some or all classes that need
verification.

Bug: 27688727
Change-Id: I1aa93cad2686513594cb37f6d3d181ae5c718d1d

8 years agoMerge "WebView downgrade prevention logic" into nyc-dev
TreeHugger Robot [Tue, 26 Apr 2016 09:31:55 +0000 (09:31 +0000)]
Merge "WebView downgrade prevention logic" into nyc-dev

8 years agoMerge "Wait for JobService to start before scheduling syncs" into nyc-dev
Shreyas Basarge [Tue, 26 Apr 2016 09:23:28 +0000 (09:23 +0000)]
Merge "Wait for JobService to start before scheduling syncs" into nyc-dev

8 years agoMerge "Close open sockets when enabling firewall rules." into nyc-dev
Lorenzo Colitti [Tue, 26 Apr 2016 08:52:24 +0000 (08:52 +0000)]
Merge "Close open sockets when enabling firewall rules." into nyc-dev

8 years agoMerge "IpManager: delete dead getLinkProperties() code" into nyc-dev
Erik Kline [Tue, 26 Apr 2016 07:14:58 +0000 (07:14 +0000)]
Merge "IpManager: delete dead getLinkProperties() code" into nyc-dev

8 years agoIpManager: delete dead getLinkProperties() code
Erik Kline [Tue, 26 Apr 2016 05:39:49 +0000 (14:39 +0900)]
IpManager: delete dead getLinkProperties() code

Now that it's long since been unused also delete the locking that was
introduced to make it possible.

Bug: 17733693
Bug: 24837343
Change-Id: Iee817a7c2e1d1dc9c080d3124d5986232dcda00f

8 years agoMerge "PIP: Send KEYCODE_WINDOW to app first if PIP isn't exist" into nyc-dev
Jaewan Kim [Tue, 26 Apr 2016 06:02:59 +0000 (06:02 +0000)]
Merge "PIP: Send KEYCODE_WINDOW to app first if PIP isn't exist" into nyc-dev

8 years agoClose open sockets when enabling firewall rules.
Lorenzo Colitti [Sun, 24 Apr 2016 03:52:00 +0000 (12:52 +0900)]
Close open sockets when enabling firewall rules.

When enabling a firewall rule that will deny networking to apps,
first close any sockets opened by those apps. Just dropping an
app's packets without closing its connections  has the following
problems:

1. The app has no way to know this has happened until a network
   timeout occurs.
2. The app's connections stay open, so the other end of the
   connection (e.g., a server) might continue to retransmit
   packets. These packets will wake up the kernel and cause
   battery drain, but we cannot respond to them because packets
   on those connections are dropped by the kernel (since the app
   is blackholed). So the other end might keep retransmitting.
3. Even though we think the connections are still open, the
   other end of the connection, or any intermediate NATs or
   firewalls, might time out and close the connection (e.g., by
   sending a RST). Because the app is blackholed, we have no way
   of knowing that this has happened, so when the app is granted
   network access again, these connections might just get stuck.

Bug: 27824851
Bug: 27867653
Change-Id: Iaaad1b26954fc5f1ba5c9ed8bdee039282f5e249

8 years agoPIP: Send KEYCODE_WINDOW to app first if PIP isn't exist
Jaewan Kim [Wed, 20 Apr 2016 12:17:58 +0000 (21:17 +0900)]
PIP: Send KEYCODE_WINDOW to app first if PIP isn't exist

Bug: 27954955
Change-Id: I517e378d5c1672ac0eb87bdf4375b7d733276e58

8 years agoMerge "docs: Updated API changes for Dinar wearable support." into mnc-docs am: 71b1f...
sreevanis [Tue, 26 Apr 2016 04:04:40 +0000 (04:04 +0000)]
Merge "docs: Updated API changes for Dinar wearable support." into mnc-docs am: 71b1f0b  -s ours am: a6d7166
am: 0446ed4

* commit '0446ed488e692c4c3f07e3a4659d24e8fa98903b':

Change-Id: I0ecae34df0604b297e3e0564a8feff209bd232df

8 years agosimplification and clarification to the Studio Overview am: e9b3ada
smain@google.com [Tue, 26 Apr 2016 04:02:44 +0000 (04:02 +0000)]
simplification and clarification to the Studio Overview am: e9b3ada
am: f1a5076

* commit 'f1a5076fc39eaba8a8e22ede9c91d07e908e031e':

Change-Id: Ided40066a107177a2ee863522c5ec212689b143d

8 years agoMerge "improved structure and organization between video and training docs on the...
Scott Main [Tue, 26 Apr 2016 04:00:40 +0000 (04:00 +0000)]
Merge "improved structure and organization between video and training docs on the Training landing page." into mnc-mr-docs am: 49b17d3
am: 30c61f9

* commit '30c61f9cb338beafb59e659fdf208362929c67c3':

Change-Id: I03fe469ebe187c22603b097e66b29b7ad3a41bf6

8 years agoMerge "When dumping connectivity metrics events, print data as well." into nyc-dev
Lorenzo Colitti [Tue, 26 Apr 2016 03:22:24 +0000 (03:22 +0000)]
Merge "When dumping connectivity metrics events, print data as well." into nyc-dev

8 years agoFix a few issues with occluded Keyguard
Jorim Jaggi [Tue, 26 Apr 2016 01:51:16 +0000 (18:51 -0700)]
Fix a few issues with occluded Keyguard

- When we get a collapse before the layout happened in SystemUI,
don't expand the panel after the layout.
- Don't reset waitingToShow when coming out of sleep. This will cause
win.isVisibleOrBehindKeyguardLw to return false and then occluded
state will change rapidly from true -> false -> true, leading to
flickering in SysUI.

Bug: 23898941
Change-Id: I2b941188de777086bb2b477f5bfc00cc0cd6abe0

8 years agoMerge "Don't hide app windows due to not showing when locked when keyguard is hidden...
TreeHugger Robot [Tue, 26 Apr 2016 02:21:16 +0000 (02:21 +0000)]
Merge "Don't hide app windows due to not showing when locked when keyguard is hidden" into nyc-dev

8 years agoMake sure to notify divider always
Jorim Jaggi [Tue, 26 Apr 2016 00:31:22 +0000 (17:31 -0700)]
Make sure to notify divider always

In some cases, recents didn't get resumed, so divider was never
notified and thus we didn't start the animation. Instead, move
the first drawn logic into onStart.

Bug: 28366529
Change-Id: Ia71d6b517451bba727ae31a184bb55cecf5af198

8 years agoDon't hide app windows due to not showing when locked when keyguard is hidden
Wale Ogunwale [Tue, 26 Apr 2016 00:21:34 +0000 (17:21 -0700)]
Don't hide app windows due to not showing when locked when keyguard is hidden

This worked in pre-N because the only visible app was the app that can be
shown when the keyguard is hidden. That isn't the case in multi-window mode
where one of the apps can be shown when locked and the other doesn't have
the show when locked flag. Only hide the other app if the keyguard is shown.

Bug: 28368875
Change-Id: I5039098db74492fadf667fed24fc58448436681a

8 years agoMerge "When app is updated, save the new version code, and update shortcuts with...
Makoto Onuki [Tue, 26 Apr 2016 00:07:57 +0000 (00:07 +0000)]
Merge "When app is updated, save the new version code, and update shortcuts with resource based icons." into nyc-dev

8 years agoSchedulingPolicyService: Fix UID for cameraserver
Eino-Ville Talvala [Tue, 26 Apr 2016 00:05:03 +0000 (17:05 -0700)]
SchedulingPolicyService: Fix UID for cameraserver

Cameraserver has been split from mediaserver, so need to use
its UID for determining whether to grant scheduling priority
change requests.

Bug: 28246165
Change-Id: I87b96e9fe0c0c38ec994d3d2aa131668d3d66986

8 years agoWait for JobService to start before scheduling syncs
Shreyas Basarge [Thu, 21 Apr 2016 19:31:44 +0000 (20:31 +0100)]
Wait for JobService to start before scheduling syncs

Add code to wait for SycJobService to pass back an
instance of itself after boot before allowing syncs
to be scheduled.

Also removes unused constant MESSAGE_SYNC_EXPIRED.

Bug: 28380795
Change-Id: I616ba5c74578a81ff1e37ba4bd1fd937ce5c006d

8 years agoMerge "CodecCapabilities: handle legacy VP9 codecs with no profiles" into nyc-dev
TreeHugger Robot [Mon, 25 Apr 2016 22:43:29 +0000 (22:43 +0000)]
Merge "CodecCapabilities: handle legacy VP9 codecs with no profiles" into nyc-dev

8 years agoMerge "clarify MediaCodec.setVideoScalingMode behavior" into nyc-dev
Lajos Molnar [Mon, 25 Apr 2016 22:36:53 +0000 (22:36 +0000)]
Merge "clarify MediaCodec.setVideoScalingMode behavior" into nyc-dev

8 years agoMerge "Fixed issue with wrong stack fullscreen state on configuration change" into...
TreeHugger Robot [Mon, 25 Apr 2016 22:27:56 +0000 (22:27 +0000)]
Merge "Fixed issue with wrong stack fullscreen state on configuration change" into nyc-dev

8 years agoMerge "Check for null drawable during LayerDrawable.jumpToCurrentState()" into nyc-dev
TreeHugger Robot [Mon, 25 Apr 2016 22:10:36 +0000 (22:10 +0000)]
Merge "Check for null drawable during LayerDrawable.jumpToCurrentState()" into nyc-dev

8 years agoMerge "Destroy both CE and DE data when corrupted." into nyc-dev
Jeff Sharkey [Mon, 25 Apr 2016 21:59:57 +0000 (21:59 +0000)]
Merge "Destroy both CE and DE data when corrupted." into nyc-dev

8 years agoMerge "Track down Contexts without data directories." into nyc-dev
Jeff Sharkey [Mon, 25 Apr 2016 21:59:40 +0000 (21:59 +0000)]
Merge "Track down Contexts without data directories." into nyc-dev

8 years agoMerge "Make fake libart for misbehaving apps be loaded." into nyc-dev
TreeHugger Robot [Mon, 25 Apr 2016 21:53:29 +0000 (21:53 +0000)]
Merge "Make fake libart for misbehaving apps be loaded." into nyc-dev

8 years agoMerge "Fix deadlock between VrManager, ActivityManager and WindowManager" into nyc-dev
Amith Yamasani [Mon, 25 Apr 2016 21:37:16 +0000 (21:37 +0000)]
Merge "Fix deadlock between VrManager, ActivityManager and WindowManager" into nyc-dev

8 years agoMerge "Wait for next app to be visible if current activity is marked visible" into...
Chong Zhang [Mon, 25 Apr 2016 21:13:27 +0000 (21:13 +0000)]
Merge "Wait for next app to be visible if current activity is marked visible" into nyc-dev

8 years agoFixed issue with wrong stack fullscreen state on configuration change
Wale Ogunwale [Mon, 25 Apr 2016 20:40:30 +0000 (13:40 -0700)]
Fixed issue with wrong stack fullscreen state on configuration change

- No need to run TaskStack#updateBoundsAfterConfigChange if the stack
is fullscreen as the bounds will already be updated to when the display
content changed due to rotation.
- Correctly set mTmpRect2 that we are using to calculate the rotated
bounds to the current mBounds.

Bug: 28319277
Bug: 27870534
Change-Id: Ic3d9407b735210351c28297de79bf035909afcfe

8 years agoMerge "Fix bug with cancelled drag" into nyc-dev
Jorim Jaggi [Mon, 25 Apr 2016 20:59:38 +0000 (20:59 +0000)]
Merge "Fix bug with cancelled drag" into nyc-dev

8 years agocancel group children before summaries
Chris Wren [Mon, 25 Apr 2016 20:44:53 +0000 (16:44 -0400)]
cancel group children before summaries

Bug:28190616
Change-Id: I1b716417119cfa3f4ffdd159ab5197cbfa714a8d

8 years agoDon't opt-out of warning dialog by default on user builds.
Felipe Leme [Mon, 25 Apr 2016 20:36:44 +0000 (13:36 -0700)]
Don't opt-out of warning dialog by default on user builds.

BUG: 28341946
Change-Id: I9ce6bf52a02a14055d4ded41aac50c79abdb4ee9

8 years agoclarify MediaCodec.setVideoScalingMode behavior
Lajos Molnar [Mon, 25 Apr 2016 20:07:59 +0000 (13:07 -0700)]
clarify MediaCodec.setVideoScalingMode behavior

Bug: 28131249
Change-Id: I4fd3a5333cbdc0ebec683c9a43ce071478a79d90

8 years agoCodecCapabilities: handle legacy VP9 codecs with no profiles
Lajos Molnar [Sat, 9 Apr 2016 05:59:35 +0000 (22:59 -0700)]
CodecCapabilities: handle legacy VP9 codecs with no profiles

Bug: 26935336
Change-Id: I1049b9da8e6c984f86e307990000401b66119693

8 years agoWait for next app to be visible if current activity is marked visible
Chong Zhang [Mon, 25 Apr 2016 20:17:53 +0000 (13:17 -0700)]
Wait for next app to be visible if current activity is marked visible

WM's AppWindowToken.updateReportedVisibilityLocked() may not report
nowVisible if the app has animation set. So nowVisibible could be false
for a while after the app is already on screen. If we finish the app in
this state, we still need to wait for next app to be visible.

bug: 28019637
Change-Id: I4f9f8e138f5d011a9ab393913159ed2978d26e0d

8 years agoMerge "TIF: Be consistent with argument name for startRecording" into nyc-dev
Dongwon Kang [Mon, 25 Apr 2016 20:16:21 +0000 (20:16 +0000)]
Merge "TIF: Be consistent with argument name for startRecording" into nyc-dev

8 years agoTIF: Be consistent with argument name for startRecording
Dongwon Kang [Fri, 22 Apr 2016 18:00:03 +0000 (11:00 -0700)]
TIF: Be consistent with argument name for startRecording

Change-Id: Icb0125049cc92c5664e0810cdb86f1cb0903405f

8 years agoMerge "API changes for DownloadManager and JobScheduler." into nyc-dev
Jeff Sharkey [Mon, 25 Apr 2016 20:14:57 +0000 (20:14 +0000)]
Merge "API changes for DownloadManager and JobScheduler." into nyc-dev

8 years agoMerge "Removing extraneous field from batterystats dumpsys." into nyc-dev
Kweku Adams [Mon, 25 Apr 2016 20:09:39 +0000 (20:09 +0000)]
Merge "Removing extraneous field from batterystats dumpsys." into nyc-dev

8 years agoFix bug with cancelled drag
Jorim Jaggi [Mon, 25 Apr 2016 20:00:27 +0000 (13:00 -0700)]
Fix bug with cancelled drag

Bug: 28257206
Change-Id: Ic7342f4284185486e884836220b05423e308f7ae

8 years agoMerge "Fix stuck windows in multi-window" into nyc-dev
Jorim Jaggi [Mon, 25 Apr 2016 19:33:38 +0000 (19:33 +0000)]
Merge "Fix stuck windows in multi-window" into nyc-dev

8 years agoFix stuck windows in multi-window
Jorim Jaggi [Sat, 23 Apr 2016 02:50:13 +0000 (19:50 -0700)]
Fix stuck windows in multi-window

Window manager checked for the full display size so isHiddenFromUserLocked
always returned true but activity manager and other places in window manager
thought it would be visible which created a really weird state.

Bug: 28344326
Change-Id: I98daefbcc64bf7a5196588c25d2cbc5ee046a77d

8 years agoMerge "Fix layout for child windows" into nyc-dev
Jorim Jaggi [Mon, 25 Apr 2016 19:29:39 +0000 (19:29 +0000)]
Merge "Fix layout for child windows" into nyc-dev

8 years agoFix layout for child windows
Jorim Jaggi [Fri, 22 Apr 2016 22:05:50 +0000 (15:05 -0700)]
Fix layout for child windows

Turns out that we also need to fit child windows to display in all
cases except NO_LIMITS is set.

Bug: 27991404
Change-Id: I34a12bbf9d0169bdb770e0e96f4b994146063e90

8 years agoDestroy both CE and DE data when corrupted.
Jeff Sharkey [Mon, 25 Apr 2016 19:23:30 +0000 (13:23 -0600)]
Destroy both CE and DE data when corrupted.

When we find either a CE or DE data directory that has been corrupted,
destroy both CE and DE data together, since internal services like
AccountManager get confused if they find DE data without matching CE
data.

Bug: 28346537
Change-Id: Iaf3694c20e4664536af25a2afeb45fe8a90d8171

8 years agoMerge changes from topic 'substitute-notification-app-name' into nyc-dev
Daniel Sandler [Mon, 25 Apr 2016 19:22:38 +0000 (19:22 +0000)]
Merge changes from topic 'substitute-notification-app-name' into nyc-dev

* changes:
  Move EXTRA_SUBSTITUTE_APP_NAME to the published system api.
  Show "Android System" instead of "System UI" in screenshot notifications.

8 years agoMerge "Tap, don't touch." into nyc-dev
Daniel Sandler [Mon, 25 Apr 2016 19:21:44 +0000 (19:21 +0000)]
Merge "Tap, don't touch." into nyc-dev

8 years agoMerge "Don't generate stack in logcat if assistant missing." into nyc-dev
Daniel Sandler [Mon, 25 Apr 2016 19:21:01 +0000 (19:21 +0000)]
Merge "Don't generate stack in logcat if assistant missing." into nyc-dev

8 years agoTrack down Contexts without data directories.
Jeff Sharkey [Mon, 25 Apr 2016 19:20:25 +0000 (13:20 -0600)]
Track down Contexts without data directories.

Data directories for all packages should be created and managed by
installd; if we create a Context and the data directory doesn't exist
yet, we're in trouble, since a later mkdirs() would end up creating
the directory with incorrect permissions, mode, and SELinux labels.

Bug: 28272737
Change-Id: Ie3bb884ab07748719378de5c792046a031a3f945

8 years agoMerge "Fix NPE when assist data request times out" into nyc-dev
Amith Yamasani [Mon, 25 Apr 2016 19:07:30 +0000 (19:07 +0000)]
Merge "Fix NPE when assist data request times out" into nyc-dev

8 years agoMerge "Fix gear being covered on notification update" into nyc-dev
Mady Mellor [Mon, 25 Apr 2016 19:06:16 +0000 (19:06 +0000)]
Merge "Fix gear being covered on notification update" into nyc-dev

8 years agoMerge "Fix the gear so that it is always centered based on the min noti height" into...
Mady Mellor [Mon, 25 Apr 2016 19:05:47 +0000 (19:05 +0000)]
Merge "Fix the gear so that it is always centered based on the min noti height" into nyc-dev

8 years agoApi review: Settings.
Julia Reynolds [Mon, 25 Apr 2016 18:57:33 +0000 (14:57 -0400)]
Api review: Settings.

Hide notification policy setting.

Bug: 28295513
Change-Id: Ic117285c3eb07cb4bf399e233adad835772b9673

8 years agoMerge "Added a 'deferred' parameter on executeRunnableDismissingKeyguard()." into...
TreeHugger Robot [Mon, 25 Apr 2016 18:57:29 +0000 (18:57 +0000)]
Merge "Added a 'deferred' parameter on executeRunnableDismissingKeyguard()." into nyc-dev

8 years agoMerge "WebView doc: explain persist js across navigations" into nyc-dev
TreeHugger Robot [Mon, 25 Apr 2016 18:39:45 +0000 (18:39 +0000)]
Merge "WebView doc: explain persist js across navigations" into nyc-dev

8 years agoMerge "Add back protected profile availibility broadcasts." into nyc-dev
Rubin Xu [Mon, 25 Apr 2016 17:58:28 +0000 (17:58 +0000)]
Merge "Add back protected profile availibility broadcasts." into nyc-dev

8 years agoMerge "Allow multiple recent entries for task with FLAG_ACTIVITY_MULTIPLE_TASK" into...
TreeHugger Robot [Mon, 25 Apr 2016 17:51:12 +0000 (17:51 +0000)]
Merge "Allow multiple recent entries for task with FLAG_ACTIVITY_MULTIPLE_TASK" into nyc-dev

8 years agoAdd back protected profile availibility broadcasts.
Rubin Xu [Mon, 25 Apr 2016 17:47:36 +0000 (18:47 +0100)]
Add back protected profile availibility broadcasts.

Bug: 27532254
Change-Id: Ifbf59f64358864cd1d48be5e797c45ec2744eac0

8 years agoMerge "Added the ripple drawable back to the media notification" into nyc-dev
Selim Cinek [Mon, 25 Apr 2016 17:44:10 +0000 (17:44 +0000)]
Merge "Added the ripple drawable back to the media notification" into nyc-dev

8 years agoRemoving extraneous field from batterystats dumpsys.
Kweku Adams [Mon, 25 Apr 2016 17:44:05 +0000 (10:44 -0700)]
Removing extraneous field from batterystats dumpsys.

Accidentally introduced in ag/851920.

Change-Id: I89ac490cef1735defa7165e6d27beae20490091d

8 years agoFrameworks/base: Make debug helper lazy in ConnectivityManager
Andreas Gampe [Wed, 20 Apr 2016 21:33:51 +0000 (14:33 -0700)]
Frameworks/base: Make debug helper lazy in ConnectivityManager

Place helper map for callback field names into a holder. This avoids
the reflective calls in static initialization of ConnectivityManager
in the common (non-debug) case, which means the class can be
compile-time initialized. Also saves the storage necessary (both
the storage array as well as the reflection metadata).

Follow-up to fcfa7d921a173847a0b3946983612e031e73c44c.

Bug: 27265238
Change-Id: Ib4bfaf27acd234a035a5d198458340099a156a4c

8 years agoFix NPE when assist data request times out
Amith Yamasani [Mon, 25 Apr 2016 17:24:52 +0000 (10:24 -0700)]
Fix NPE when assist data request times out

Bug: 28329835
Change-Id: I032e20ea1008512954b97519a4abb6fe4d65c673

8 years agoApply tint when setting check mark drawable
Alan Viverette [Mon, 25 Apr 2016 17:15:39 +0000 (13:15 -0400)]
Apply tint when setting check mark drawable

Bug: 28373624
Change-Id: Ieb5be55c63b168ab18302836f28cd5cedc06c4d8

8 years agoReduce spacing.
Julia Reynolds [Mon, 25 Apr 2016 17:09:16 +0000 (13:09 -0400)]
Reduce spacing.

Bug: 28325996
Change-Id: I065dc077876abb98d7c3381cc0ac28af77323c8a

8 years agoMerge "fix "am start -W" hang on activity start" into nyc-dev
Chong Zhang [Mon, 25 Apr 2016 17:08:05 +0000 (17:08 +0000)]
Merge "fix "am start -W" hang on activity start" into nyc-dev

8 years agoMerge "Return null when user is locked" into nyc-dev
Fyodor Kupolov [Mon, 25 Apr 2016 17:03:34 +0000 (17:03 +0000)]
Merge "Return null when user is locked" into nyc-dev

8 years agoRemove -night qualified resources
Alan Viverette [Mon, 25 Apr 2016 16:57:54 +0000 (12:57 -0400)]
Remove -night qualified resources

Bug: 28358465
Change-Id: I3e9c3ec21bdc39426aa5f81373ca44e61eb6974a

8 years agoWebView doc: explain persist js across navigations
Bo Liu [Fri, 22 Apr 2016 23:23:22 +0000 (16:23 -0700)]
WebView doc: explain persist js across navigations

BUG: 28207652
Change-Id: Ib33f029c2cae6c1482c0c951075275e9f96ae73c

8 years agoMerge "Strings for post-upgrade." into nyc-dev
Jeff Sharkey [Mon, 25 Apr 2016 16:34:11 +0000 (16:34 +0000)]
Merge "Strings for post-upgrade." into nyc-dev

8 years agoMerge "Fixing animation regression due to ag/957220." into nyc-dev
Winson Chung [Mon, 25 Apr 2016 16:25:49 +0000 (16:25 +0000)]
Merge "Fixing animation regression due to ag/957220." into nyc-dev

8 years agoAdded a 'deferred' parameter on executeRunnableDismissingKeyguard().
Felipe Leme [Fri, 22 Apr 2016 23:11:19 +0000 (16:11 -0700)]
Added a 'deferred' parameter on executeRunnableDismissingKeyguard().

OnDismissAction() should return true only when the dismiss should be
deferred, but the annonymous class on
executeRunnableDismissingKeyguard() was always return true, which was
cause a janky timeout when the runnable didn't launch an activity.

BUG: 28303552

Change-Id: I1f9e299102d6cebba44794c026a69cf43ea06990

8 years agoFixing animation regression due to ag/957220.
Winson [Sat, 23 Apr 2016 23:06:50 +0000 (16:06 -0700)]
Fixing animation regression due to ag/957220.

- Ensure we clear deferred relayouts after finishing all animations in
  case they trigger a deferred layout in the animation-end callback.

Bug: 28287904
Change-Id: I6d71328fb3dc4595ea67ee18cfa57d85d741e6c6

8 years agoMerge "Disable StrictMode policy when setting up profile support" into nyc-dev
TreeHugger Robot [Mon, 25 Apr 2016 15:54:36 +0000 (15:54 +0000)]
Merge "Disable StrictMode policy when setting up profile support" into nyc-dev