Commit Graph

246497 Commits

Author SHA1 Message Date
Tony Mak
d9db7c76a6 Show work challenge in if user in docked stack is locked
am: 853304c

* commit '853304c0b11921db142a3945ab66fae5f0cc7d8a':
  Show work challenge in if user in docked stack is locked

Change-Id: I6a35ac189e1bbb5fcb2b2ce28d2d2c9300cd82e6
2016-04-18 15:40:41 +00:00
Tony Mak
853304c0b1 Show work challenge in if user in docked stack is locked
Register docked stack listener in ActivityManagerService.
If the docked stack is leaving minimized state, check whether the user
of the docked stack is locked. If yes, show credential confirmation.
Also, we now show work challenge in home task.

And we now scan the entire top task to handle the case the work app is
somewhere in the middle of the task. (eg: open personal camera in work app)

Bug: 27565539
Bug: 28094505

Change-Id: Iaf0738f43ae916a535b17949ec0f322bbfb194dc
2016-04-18 15:35:36 +00:00
Amanda Kassay
f8987086ac Copied over redirects from mnc-mr-docs/vendor/google/docs/app-engine-server/v4/redirects.yaml
b/27314537

Change-Id: I23323ce99b3a1451f10a54cbe16547b7498d3a22
2016-04-18 15:26:52 +00:00
shwetachahar
e5f29ca745 Merge "Add strings for reset speech pitch button in Text-to-Speech output settings UI." into nyc-dev
am: 739da49

* commit '739da49dbb5f1132da62fe55768602f36b08575c':
  Add strings for reset speech pitch button in Text-to-Speech output settings UI.

Change-Id: Idc6aa4d793e58d1eefb71e12bc56df769af96e22
2016-04-18 15:20:34 +00:00
Shweta Chahar
739da49dbb Merge "Add strings for reset speech pitch button in Text-to-Speech output settings UI." into nyc-dev 2016-04-18 15:14:04 +00:00
shwetachahar
0f11e37810 Add strings for reset speech pitch button in Text-to-Speech output
settings UI.

Bug: 27949093
Change-Id: I816a9e33c2cc8efc59fedf1201824d92b6175d60
2016-04-18 16:10:02 +01:00
Eric Tang
50adb2e020 update string "Work profile" to "All work apps"
The following screens will be affected:
- Settings app > data usage
- Settings app > Developer options > Running services

Bug: 28064677
Change-Id: I3aec5ddd8c8daaab4172fcc614fb6e4787fc51bc
2016-04-18 16:03:49 +01:00
Calin Juravle
2a727d7bd5 Move profile registration from bindApplication to LoadedApk
In order to capture profiles for apps which share the same VM and for
splits loaded without restart we need to move the profile registration
closer to where we create the class loaders (since bindApplication is
not called multiple times).

Moving the registration after class loader creation also allows us to
not profile apks which are already fully compiled.

Bug: 27539488
Bug: 27893309
Bug: 28012567
Change-Id: I6333f026f4f0680ca28e989f1686e3eac1145339
2016-04-18 15:28:40 +01:00
Robin Lee
106069412d Move UidRange aidl declaration to system/netd
Which owns the native UidRange.cpp, so it makes more sense for the
declaration to live there since frameworks/base depends on netd but not
vice versa.

Bug: 26694104
Change-Id: I0efda77713ee6f0ec8070fb0e09a694b95f6cd25
2016-04-18 15:26:47 +01:00
Andrei Stingaceanu
f04cce25d1 Keyboard shortcuts: UI polish 2
1. Changed list title from body1 (14sp, regular) to
body2 (14sp, bold).

2. Reduced spacing between list title and first list item
by 3dp

3. Reduced height from divider line to list by 20dp (I had
this in redlines as 20dp, but I think that added an
additional 20dp to the component so it ended up being
40dp in implementation)

4. Reduced padding between app icon and app name from 32dp
to 24dp (this is a change from original redlines so that
the text aligns 72dp from the edge of the dialog which is
a standard Material keyline)

Bug: 28169928
Change-Id: I01b92486353fa990158819a2d18b16cd910d7ded
2016-04-18 14:42:44 +01:00
Yi Kong
f501db5522 Merge "Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af" into nyc-dev
am: 7d0b8d7

* commit '7d0b8d792886b2ed5ff89ac6c2723fba9d44c7d4':
  Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af

Change-Id: I9687d53b467b656fd1381538b2f42645f9f49f7f
2016-04-18 12:17:31 +00:00
Yi Kong
7d0b8d7928 Merge "Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af" into nyc-dev 2016-04-18 12:07:53 +00:00
Paul Jensen
73ff13e360 Merge "Avoid APF JNEBS instruction with R1 as it doesn\'t work" into nyc-dev
am: 520ae86

* commit '520ae86666164adce825131703db42af5f2beaa6':
  Avoid APF JNEBS instruction with R1 as it doesn't work

Change-Id: I45b0356dda8be726b07c28362b434c0a6fa7ea1b
2016-04-18 11:00:47 +00:00
Paul Jensen
520ae86666 Merge "Avoid APF JNEBS instruction with R1 as it doesn't work" into nyc-dev 2016-04-18 10:56:14 +00:00
Calin Juravle
f4d55b50db Merge "Register the UI Thread as a sensitive thread to the runtime" into nyc-dev
am: 6aff67b

* commit '6aff67bfcb9dcca6e3f26ff04dbe8f9806e5e8a5':
  Register the UI Thread as a sensitive thread to the runtime

Change-Id: Ic272fa836f573f3565bd81068f437e972cbfcdcc
2016-04-18 10:51:06 +00:00
Tony Mak
2c11dc9963 User action should only stop lock task mode if it is in pinned mode
There are two lock task modes: pinned and locked.
Pinned mode is the one that one that need users action to accept the pinned
request. For locked mode, it is triggered by DPM.
We should not allow user to stop locked mode by user action.
Please notice that it does not happen before because the action to dismiss
lock task mode is pressing both back and recents button and recents button
is hidden in locked mode. But it becomes a problem after the user action
is changed to long pressing back button.

So changes are as follows:
1. Only stop lock task mode if it is pinned mode in
   stopLockTaskModeOnCurrent
2. Remove the permission checking in stopLockTaskModeOnCurrent. I can't
   see the reason we are having this because there is no permission
   checking to in stopLockTaskMode when it is in pinned mode. So you
   can always stop pinned lock task mode anyway by calling
   stopLockTaskMode directly.

Bug: 28184751
Change-Id: I610cc1dfade7737e0b08fc9a13dad29e62e09a32
2016-04-18 11:43:28 +01:00
Calin Juravle
6aff67bfcb Merge "Register the UI Thread as a sensitive thread to the runtime" into nyc-dev 2016-04-18 10:40:31 +00:00
Narayan Kamath
4c89ae0ee4 Remove unnecessary allocation+unboxing of objects.
am: a09b4d2

* commit 'a09b4d2a611a7606e8fc8c73a24bd941b6fc173f':
  Remove unnecessary allocation+unboxing of objects.

Change-Id: Ie97df243ceb3b8ee61b9e36cdabcf7c477e18573
2016-04-18 10:31:37 +00:00
Yi Kong
65b95b0a7d Track libcore change 5458546631c65f6d375b6a1780d36d0abb5b95af
Bug: 28108421
Change-Id: Id0253fed98790f4c8eeb27877e14cf53474f29f0
(cherry picked from commit 418d3817a0)
(cherry picked from commit 88e9407fc4)
2016-04-18 10:29:39 +00:00
Narayan Kamath
a09b4d2a61 Remove unnecessary allocation+unboxing of objects.
Transforming String->int can be done with 0 allocations
using Integer.parseInt.

bug: 28078871
Change-Id: I8d9f322d7154728849dde61ef282046032858d60
2016-04-18 09:55:59 +01:00
Wale Ogunwale
3e92aba57c Merge "Always send configuration changes to activity." into nyc-dev
am: 988a20a

* commit '988a20a94b71c7a8fdffcfbfe0b0ee0dd58854cb':
  Always send configuration changes to activity.

Change-Id: I9638581eb351a5ec0a91fcc8e9a077907d0490cd
2016-04-18 05:50:22 +00:00
TreeHugger Robot
988a20a94b Merge "Always send configuration changes to activity." into nyc-dev 2016-04-18 05:43:16 +00:00
Wale Ogunwale
da49427937 Merge "Don\'t allow pinned activities to request visible behind" into nyc-dev
am: 02ebaa0

* commit '02ebaa02c41050b7223b9ec772da669810bff43b':
  Don't allow pinned activities to request visible behind

Change-Id: I865bf0e0211ea0f8044e823d45e0acdccc44ad2c
2016-04-18 04:29:25 +00:00
TreeHugger Robot
02ebaa02c4 Merge "Don't allow pinned activities to request visible behind" into nyc-dev 2016-04-18 04:19:36 +00:00
Hugo Benichi
9cae985dde Make android.net.metrics Event classes @SystemApi
am: 4b6dfc2

* commit '4b6dfc2ef54723768a67887ce2a42d4f8f64d0f4':
  Make android.net.metrics Event classes @SystemApi

Change-Id: I9bd582646c0560fc58aedc059e5a7c553692532f
2016-04-18 04:15:10 +00:00
Hugo Benichi
4acf772eeb Fixes fatal linter errors in android.net.metrics
am: 627b424

* commit '627b42494d82eca4fd51abfc0a5d7f330862b881':
  Fixes fatal linter errors in android.net.metrics

Change-Id: Iae6da861c9778747c81366ae0d3bca5dcf19efb2
2016-04-18 04:15:09 +00:00
Hugo Benichi
2fd113fbfe Fix spurious DHCP parse error logging.
am: 2677b19

* commit '2677b1957b444e2dae5737feee989109b811547c':
  Fix spurious DHCP parse error logging.

Change-Id: I45eebb3d4a330b589b1a60ca0c939e949285a0ca
2016-04-18 04:15:09 +00:00
Daichi Hirono
399df701a1 Handle API review comments from the council.
* MtpEvent: Remove public constructor since properties cannot be set
   directly.
 * MtpEvent: Move event constants from MtpConstants to MtpEvent class.
 * getPartialObject64: the byte[] must have indices of Integer.MAX_VALUE
   at most. Document as such.
 * sendObjectInfo: what happens if the transfer doesn’t succeed? How is
   the app notified? If there is a reason for the failure communicated,
   how does the app find this out? Add docs.
 * Add isOperationSupported(int) and isEventSupported(int) helpers.

Change-Id: Ifd80016d2ddd3b66d5c45f6da76b6133f0c9a617
Fixes: 28146379
2016-04-18 13:03:29 +09:00
Robert Carr
d82b748b26 Promote input method dialogs layers with input method.
When raising the layer of the input method window we also
have to raise the layer of its assosciated dialogs which
thankfully are already collected for us.

Bug: 28138068
Bug: 28186814
Change-Id: I4e63a642199c5aad3b3322e773df287ced80d641
2016-04-17 19:47:10 -07:00
Hugo Benichi
4b6dfc2ef5 Make android.net.metrics Event classes @SystemApi
Bug: 28204408
Change-Id: I8ffe833213bbc03a7f70c51789f4899ee08f6e08
2016-04-18 11:36:42 +09:00
Hugo Benichi
627b42494d Fixes fatal linter errors in android.net.metrics
This patch changes how Event classes are organized:
 - Base IpConnectivityEvent class does not implement Parcelable because
   it cannot be final (has children). It also becomes abstract because
   it is not supposed to be instantiated and logged directly.
 - All children classes becomes final because they are Parcelable.
 - All constructors of all children classes become private, because they
   are supposed to be instantiated with their associated logEvent()
   methods.
 - All instance fields of all children classes become public final.
      Rational: if private, the ConnectivityMetrics app cannot read
      their data.

Bug: 28204408
Change-Id: I1a4689c422230c6ed034307dec54a61daf8a6598
2016-04-18 11:29:03 +09:00
Hugo Benichi
2677b1957b Fix spurious DHCP parse error logging.
This patch moves the event logging of DHCP response packet parse errors
to DHCPClient in a single place. It also logs receive IO errors as
DHCPErrors instead of DHCPClientEvents.

BUG=28197345

Change-Id: I7ad666cff4d8b97915880477347fbb3f588fdb2a
2016-04-18 11:27:35 +09:00
Robert Carr
7393c7b3ec Always update DimLayer bounds when starting dim.
Otherwise animateDimLayers can occur before
updateDimLayers and we can show the dim at the
wrong size.

Bug: 26908486
Change-Id: Ifd664e48f3daa77900a7f0bffa58a379efa6b53c
2016-04-17 19:26:36 -07:00
Keisuke Kuroyanagi
07ff292dcd Define equals and hashCode for InputDeviceIdentifier.
This CL fixes that physical keyboard layout is not changed when user
changes it in settings.  This happened because we compare
InputDeviceIdentifier instances by using Object#equals to choose
specified input device. However, one of them has been serialized and
deserialized, so it never be true.

Bug: 27747115
Change-Id: Ied84c510ccb8e2de919ba8bb326e0355a065e604
2016-04-17 21:43:56 +09:00
Wale Ogunwale
c8da41e2f4 Reduce activity lifecycle churn when exiting split-screen mode.
- Ignore calls to resize the docked stack due to it detaching while we are
already resizing stacks due to the docked stack switching to fullscreen mode.
- Defer resuming activities in a stack we are resizing to fullscreen when the
docked stack is going away. The activities may not be the top most activity
anymore since the activity in the docked stack might be moved on top of it.
- Removed call to ensure configuration in ASS.positionTaskInStackLocked.
This isn't needed as the ensure activities visible call will make sure
the activity is in the right configuration if it is going to be visible and
we don't want to be relaunching it if it isn't going to be visible.

Bug: 28196862
Change-Id: I26460dd9c649b8ec1bf296d5182e9ff6cafe6df0
2016-04-16 13:34:52 -07:00
Wale Ogunwale
f7dab1e53f Always send configuration changes to activity.
We are not sending override configuration changes to activities if the change in
configuration is not significant enough (i.e did resources will not be reloaded
due to the change). This breaks apps that rely on getting onConfigurationChanged()
call whenever the config changes regardless of if resources will be reloaded.
We no deliver all configuration changes to the activity.

Bug: 28177873
Bug: 23904868
Change-Id: Icc979dabb8bc93ae8a976ef6074cd2559aedca67
2016-04-16 11:38:50 -07:00
Wale Ogunwale
43896cffe6 Don't allow pinned activities to request visible behind
Also, release visible behind when pinning a visible behind activity.

Bug: 28042883
Change-Id: I1162d7639626f669f648ff82f5c367cb7b3fe6e6
2016-04-16 10:54:30 -07:00
Makoto Onuki
e2be9f4a67 Merge "ShortcutManager: Categories should be Set, not List." into nyc-dev 2016-04-16 15:18:39 +00:00
Adam Lesinski
0b1a203830 Merge "SettingsLib: Build with AAPT2" into nyc-dev 2016-04-16 07:01:08 +00:00
Jaesung Chung
865cef475d Merge "ExifInterface: keep the original metadata data instead of strings" into nyc-dev 2016-04-16 02:41:23 +00:00
TreeHugger Robot
c99f05e1b0 Merge "Fix broken statusbar disable flags" into nyc-dev 2016-04-16 00:53:22 +00:00
Amith Yamasani
25c66ac8e6 Merge "Address API review for UserManager user creation" into nyc-dev 2016-04-16 00:18:22 +00:00
Makoto Onuki
be73a8068f ShortcutManager: Categories should be Set, not List.
Bug 27923857

Change-Id: Ife859da8e66478174f6c4463316886a23e5aa4e0
2016-04-15 17:15:29 -07:00
Adrian Roos
7e9dec2841 Reload LockscreenWallpaper and ImageWallpaper on background thread
Fixes: 27148260
Change-Id: I426712024ec1a82fccd48154c65da31d3e610525
2016-04-15 17:00:20 -07:00
John Reck
f91cbc7fd2 Merge "Switch JankTracker to FrameInfo::duration()" into nyc-dev 2016-04-15 23:47:01 +00:00
Ruben Brunk
b56b72a846 Fix VR->VR Activity transitions.
- Briefly delay unBinding VrListenerService and making HAL calls
  when leaving VR mode Activity in case subsequent activity will
  be immediately re-entering VR mode.

Bug: 28115931
Change-Id: I3f362131ed2beb6a29ce78fe01e9301d8b396520
2016-04-15 16:42:49 -07:00
Chien-Yu Chen
dfe920d3bb Merge "Camera2: Stop repeating request for abandoned output" into nyc-dev 2016-04-15 23:38:14 +00:00
TreeHugger Robot
793f859123 Merge "Fallback to Recents when Downloads is not available." into nyc-dev 2016-04-15 23:30:41 +00:00
Andrew Solovay
ee1ecbb623 docs: Adding "OEM Unlock" issue to DP2 Release Notes
am: 80d04a7

* commit '80d04a7caad05fc450b162e8fd6079ab2af143b2':
  docs: Adding "OEM Unlock" issue to DP2 Release Notes

Change-Id: I72dc5907c04e9c6e3f2b23065e89f99ea74c9e04
2016-04-15 23:29:46 +00:00
Adrian Roos
2a62910691 Fix broken statusbar disable flags
Fixes a bug where the disable flags were
always applied to user 0 instead of the current
user because the user switch dispatch from
WindowManager was broken.

Change-Id: Ib2faf0777c5367af5bf07cb2d11c51ed0222d65c
Fixes: 28062568
2016-04-15 16:28:41 -07:00