OSDN Git Service
Todd Kennedy [Thu, 1 Jun 2017 20:18:09 +0000 (13:18 -0700)]
Protect instant apps from full apps
Bug:
35871369
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: Manual; install instant app and ensure it runs
Change-Id: I1835fe58256377f901db38fcc3e4c98886d799ac
Merged-In: I1835fe58256377f901db38fcc3e4c98886d799ac
TreeHugger Robot [Thu, 1 Jun 2017 20:34:01 +0000 (20:34 +0000)]
Merge "Delay notification vibration to synchronize with notif sound" into oc-dev
Adrian Roos [Thu, 1 Jun 2017 19:44:42 +0000 (19:44 +0000)]
Merge "Keyguard: Fix date capitalization context" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 19:43:42 +0000 (19:43 +0000)]
Merge "Add checks against incorrect context use in sysui tests" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 19:43:05 +0000 (19:43 +0000)]
Merge "Fixed an issue where heads up where invisible in qs edit" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 19:08:06 +0000 (19:08 +0000)]
Merge "Fix crash from non-default sims in QS" into oc-dev
Jean-Michel Trivi [Fri, 26 May 2017 01:32:40 +0000 (18:32 -0700)]
Delay notification vibration to synchronize with notif sound
Delay the vibration associated with a notification by the length
of the ramp time preceding a notification sound. Do this only
for notifications that play a sound.
Tests: verify that calls to Vibrator.vibrate() method are within the
max delay that could be applied to a notification sound/vibration.
Test: play notification with vibration, verify vibration syncs with sound
Test: runtest systemui-notification
Bug:
35152866
Change-Id: I571eb5620d654265d19f45aca2073e8ccc4799df
Lucas Dupin [Thu, 1 Jun 2017 18:08:28 +0000 (18:08 +0000)]
Merge "Avoid pixel rounding issue during animation" into oc-dev
Selim Cinek [Thu, 1 Jun 2017 17:44:53 +0000 (17:44 +0000)]
Merge "Fixed an issue where the shade would jump" into oc-dev
Selim Cinek [Thu, 1 Jun 2017 17:40:42 +0000 (17:40 +0000)]
Merge "Fixed an issue where the panel could be stuck tracking" into oc-dev
Daniel Nishi [Thu, 1 Jun 2017 17:29:54 +0000 (17:29 +0000)]
Merge "Fix an NPE when FileCollector runs." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 17:14:15 +0000 (17:14 +0000)]
Merge "Handle not having main window in createThumbnailAppAnimator." into oc-dev
Jorim Jaggi [Thu, 1 Jun 2017 16:54:16 +0000 (16:54 +0000)]
Merge "Remove starting window logging" into oc-dev
Andrii Kulian [Thu, 1 Jun 2017 16:50:56 +0000 (16:50 +0000)]
Merge "Create ActivityDisplay if its registered in DisplayManager" into oc-dev
Jason Monk [Thu, 1 Jun 2017 15:21:14 +0000 (11:21 -0400)]
Add checks against incorrect context use in sysui tests
Fix incorrect usages found by this check.
Test: runtest systemui
Bug:
62251903
Change-Id: I45a762f96838e617833c1cbe003e583087bb8176
Ivan Podogov [Thu, 1 Jun 2017 15:06:28 +0000 (15:06 +0000)]
Merge "Fix setRequestedOrientation() freeze on Android Wear." into oc-dev
Bryce Lee [Wed, 31 May 2017 17:27:42 +0000 (10:27 -0700)]
Handle not having main window in createThumbnailAppAnimator.
A recent code change associated the SurfaceControl with the main
window owner id. However, it is possible for the an AppWindowToken to
not have a main window. This case is handled later in the method.
This CL restores the original behavior of using the calling uid in
the cases no main window is present.
Change-Id: I8255be9e0d68adc75fda0947c64f869b7eeb76c9
Fixes:
62096254
Test: go/wm-smoke
Jason Monk [Thu, 1 Jun 2017 15:00:00 +0000 (11:00 -0400)]
Fix crash from non-default sims in QS
Test: runtest systemui
Change-Id: Icdb063589258a6b4bd94634cc9f41f788a7d2299
Fixes:
62209034
TreeHugger Robot [Thu, 1 Jun 2017 14:29:42 +0000 (14:29 +0000)]
Merge "Dump info about all RemoteViews in a Notification." into oc-dev
Ivan Podogov [Fri, 26 May 2017 16:42:15 +0000 (17:42 +0100)]
Fix setRequestedOrientation() freeze on Android Wear.
In ag/
1460784 and ag/
1551198, logic of
ActivityManagerService.updateConfigurationLocked
(now updateDisplayOverrideConfigurationLocked) was changed a bit:
before those CL's, with (changes == 0) we were still calling
mWindowManager.setNewConfiguration(mGlobalConfiguration)
(which is now mWindowManager.setNewDisplayOverrideConfiguration).
Now, when there was a call to Activity.setRequestedOrientation, the
window becomes frozen and waiting for configuration, which is never sent
since there are no changes detected (which we don't know in advance when
freezing the window). This is important for watches, since they have
"square" screens, and resources configuration for them doesn't change
after requesting landscape orientation, i.e. display rotates 90 degrees,
yet the layout stays portrait. As a result, device becomes frozen.
This CL only moves mWindowManager.setNewDisplayOverrideConfiguration
call outside of the (changes == 0) check to restore the old logic.
Bug:
37684680
Test: go/wm-smoke (on Pixel), manual (on Wear)
Change-Id: Idf1f5989173494d51437b9a66296b4cac82d15c2
Hugo Benichi [Thu, 1 Jun 2017 09:32:24 +0000 (09:32 +0000)]
Merge "Prettify the captive portal sign-in activity" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 09:05:33 +0000 (09:05 +0000)]
Merge "Update documentation of MediaCodec regarding partial frame." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 08:02:44 +0000 (08:02 +0000)]
Merge "Fix TimePickerDialog positive button clicks." into oc-dev
Charles He [Thu, 1 Jun 2017 07:56:49 +0000 (07:56 +0000)]
Merge "SystemUI: fix notification redaction logic." into oc-dev
Charles He [Thu, 1 Jun 2017 07:56:23 +0000 (07:56 +0000)]
Merge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 07:26:40 +0000 (07:26 +0000)]
Merge "Add BottomLabelLayout for battery graph" into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 07:19:41 +0000 (07:19 +0000)]
Merge "Support multi-window on low-memory watches." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 07:07:18 +0000 (07:07 +0000)]
Merge "Ensure null/empty phone number does not crash international number check." into oc-dev
TreeHugger Robot [Thu, 1 Jun 2017 06:11:28 +0000 (06:11 +0000)]
Merge "Fix dequeus outside of frame drawing" into oc-dev
Jorim Jaggi [Thu, 1 Jun 2017 05:14:44 +0000 (22:14 -0700)]
Remove starting window logging
No evidence so far that the screen-on latency bug hasn't been
fixed yet. Thus, we can remove the logspam.
Test: Inspect logs
Change-Id: I891077b3b8edaa68c748eeef8ecc6469c8eb4a90
Fixes:
62049093
Hugo Benichi [Wed, 17 May 2017 00:26:30 +0000 (09:26 +0900)]
Prettify the captive portal sign-in activity
- fuses url bar with activity header: url is now the subtitle
- url appears as text and not as editable content
- url only shows host name
- header style is the device default for Settings
- Material progress bar
- progress bar disappears at page load finished
- webview does not jump at page load finished
Bug:
62107381
Bug:
38197949
Test: tested by manually triggering the sign-in activity
Change-Id: Id75023acad04f444dbfc41de56814a09e70cc6f9
Doris Liu [Thu, 1 Jun 2017 00:52:57 +0000 (00:52 +0000)]
Merge "Ensure start delay is properly scaled with duration scale" into oc-dev
Selim Cinek [Thu, 1 Jun 2017 00:49:03 +0000 (17:49 -0700)]
Fixed an issue where heads up where invisible in qs edit
Because they were in the shelf, they were set to hidden.
Test: add hun while in qs edit mode, observe that it's visible
Change-Id: I2db88f0731be23bff35707a12fbe5da1eb6903cf
Fixes:
62237986
Dongwon Kang [Wed, 31 May 2017 23:37:13 +0000 (16:37 -0700)]
Update documentation of MediaCodec regarding partial frame.
Test: documentation update
Bug:
62202844
Change-Id: Ie1e269e7e22206001a145e9c7ee6f92d7e8633e1
Adam Lesinski [Wed, 31 May 2017 22:36:55 +0000 (22:36 +0000)]
Merge "BatteryStats: Acquire network stats without BatteryStatsImpl lock" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 22:28:59 +0000 (22:28 +0000)]
Merge "hotspot2: add/update javadoc for Passpoint APIs" into oc-dev
Adrian Roos [Wed, 31 May 2017 22:22:38 +0000 (15:22 -0700)]
Keyguard: Fix date capitalization context
Fixes an issue where the date on the lockscreen
was not title cased in certain locales.
Change-Id: I90ecb8bac88641c962424477e677d94a16098798
Test: Set language to Spanish, verify that first letter of date on lockscreen is capitalized.
Fixes:
62233491
Aurimas Liutikas [Wed, 31 May 2017 22:10:25 +0000 (15:10 -0700)]
Fix TimePickerDialog positive button clicks.
With my TimePickerDialog change to support keyboard based input I
accidentally broke TimePickerDialog#onClick as it was no longer being
called, instead it was calling TimeSetListener directly. This CL changes
the logic back to use onClick again.
Bug:
36042834
Test: Locally tested FitBit app.
Change-Id: I47d5563c99cc46eaaf2b1d4a96483d6825fc5805
Andrii Kulian [Wed, 31 May 2017 05:46:53 +0000 (22:46 -0700)]
Create ActivityDisplay if its registered in DisplayManager
Activity manager is notified asynchronously when new display is
created. Because of that someone may try to access or use it
before AM is aware of it, e.g. launch an activity to a just
create virtual display.
This CL guards the cases where we try to use a display by id in
AM and creates a new instance if needed.
Bug:
34262188
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testImmediateLaunchOnNewDisplay
Test: go/wm-smoke
Change-Id: Iab0871708145aa80ff252a0c764beb6a3b5dc42d
Erik Wolsheimer [Wed, 31 May 2017 21:59:57 +0000 (14:59 -0700)]
Support multi-window on low-memory watches.
On watches, multi-window is used to present essential system UI, and thus it
must be supported regardless of device memory characteristics.
Bug:
37482466
Test: Manually, on a watch
Change-Id: I7929a090b7fd46de019d237ce771c82a6d7fd3f3
Bryce Lee [Wed, 31 May 2017 21:46:15 +0000 (21:46 +0000)]
Merge "Revert "Handle not having main window in createThumbnailAppAnimator."" into oc-dev
Tyler Gunn [Wed, 31 May 2017 21:35:39 +0000 (14:35 -0700)]
Ensure null/empty phone number does not crash international number check.
Add empty/null check for isInternationalNumber.
Test: Added unit tests.
Bug:
62162029
Change-Id: I779a1f78cbbe11adeefeca7fc83cfc1cfa431c61
Bryce Lee [Wed, 31 May 2017 21:22:33 +0000 (21:22 +0000)]
Revert "Handle not having main window in createThumbnailAppAnimator."
This reverts commit
6db4d15d726b8830ad56766352a79fe0417cb9c2.
Bug:
62096254
Reason for revert: Breaking the build due to test references to class
Change-Id: I6021c802d04a3a55a19f54fc94389957c8152ed9
Selim Cinek [Fri, 26 May 2017 20:48:47 +0000 (13:48 -0700)]
Fixed an issue where the shade would jump
When collapsing directly from the expanded quicksettings
the shade would jump when there were no notifications.
Test: manual
Merged-In: I9a85cd57e2f96970ad4ea78a8c679145b58d563a
Change-Id: I9a85cd57e2f96970ad4ea78a8c679145b58d563a
Fixes:
35996906
TreeHugger Robot [Wed, 31 May 2017 21:07:03 +0000 (21:07 +0000)]
Merge "Do not add unnecessary prefix to dumpsys activity provider [NAME] --proto" into oc-dev
John Reck [Wed, 31 May 2017 21:02:50 +0000 (14:02 -0700)]
Fix dequeus outside of frame drawing
Bug:
62213889
Test: Repro steps in bug
Change-Id: I8fc407b280ba82c669fc2bb03750cab139adb965
Daniel Nishi [Wed, 31 May 2017 20:56:52 +0000 (13:56 -0700)]
Fix an NPE when FileCollector runs.
In some cases, the path for a VolumeInfo may be null. The previous
implementation assumed it was always non-null, however. This backs out
of the calculation early if we cannot find the files.
Change-Id: Icfe265be738c5ccb16917ef339b2b872f2057f07
Fixes:
38308873
Test: No observed phone crashes with a flashed build.
TreeHugger Robot [Wed, 31 May 2017 20:48:49 +0000 (20:48 +0000)]
Merge "AAPT2: Update --no-version-vector list" into oc-dev
Adam Lesinski [Wed, 31 May 2017 20:48:00 +0000 (20:48 +0000)]
Merge "AAPT2: Allow merging of Style attributes from overlays" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 20:43:14 +0000 (20:43 +0000)]
Merge "Don't automatically autofill when manual request returned just 1 dataset." into oc-dev
Bryce Lee [Wed, 31 May 2017 20:39:29 +0000 (20:39 +0000)]
Merge "Handle not having main window in createThumbnailAppAnimator." into oc-dev
Peter Qiu [Wed, 3 May 2017 17:23:22 +0000 (10:23 -0700)]
hotspot2: add/update javadoc for Passpoint APIs
Add javadoc for getter/setter methods configuration classes.
Document exceptions with @throws tag.
Bug:
37907515
Test: build
Change-Id: Ied1842912f6710530bf77db4df5ef5d30a44b2a7
TreeHugger Robot [Wed, 31 May 2017 19:53:10 +0000 (19:53 +0000)]
Merge "Added missing lock and clean up locked function that wasn't locked" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 19:44:56 +0000 (19:44 +0000)]
Merge "AOD: Scale icon padding with the drawing size" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 19:43:00 +0000 (19:43 +0000)]
Merge "Change default for group alert behavior" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 19:40:38 +0000 (19:40 +0000)]
Merge "Don't verify secondary setting on restore" into oc-dev
Joe Onorato [Wed, 31 May 2017 19:26:45 +0000 (19:26 +0000)]
Merge "Track Partial wakelock time in background" into oc-dev
Joe Onorato [Wed, 31 May 2017 19:26:45 +0000 (19:26 +0000)]
Merge "Fix batterystat Counter misreporting when charging" into oc-dev
Joe Onorato [Wed, 31 May 2017 19:26:45 +0000 (19:26 +0000)]
Merge "Batterystats track background bad ble scan time" into oc-dev
Adam Lesinski [Fri, 26 May 2017 18:50:40 +0000 (11:50 -0700)]
BatteryStats: Acquire network stats without BatteryStatsImpl lock
Moves the network stats collection under a different lock to
prevent the main BatteryStatsImpl lock from being held while doing I/O.
Bug:
37645919
Bug:
38296815
Test: manual
Change-Id: I0d6b4a7b12b234939cb6eb3a32658b28f61dff4f
TreeHugger Robot [Wed, 31 May 2017 18:50:55 +0000 (18:50 +0000)]
Merge "Don't call remoteFillService.destroy() until session is removed." into oc-dev
TreeHugger Robot [Wed, 31 May 2017 18:49:33 +0000 (18:49 +0000)]
Merge "Always post AutofillManager operations in the UI thread." into oc-dev
Winson Chung [Wed, 31 May 2017 18:46:53 +0000 (18:46 +0000)]
Merge changes from topic 'hw_bitmap' into oc-dev
* changes:
DO NOT MERGE Updating AnimationSpec and related internal APIs to use GraphicBuffer.
Update code to draw into hardware bitmaps.
Hyunyoung Song [Wed, 24 May 2017 23:48:41 +0000 (16:48 -0700)]
Do not add unnecessary prefix to dumpsys activity provider [NAME] --proto
Bug:
36904684
Test: builds, and tests succeed in the same topic branch
The test executes following
"dumpsys activity provider [launcher package name]/[provider name that implements workspace dump logging]
--proto"
In order to extract the proto binary from this stream, there cannot
be extra prefix added to each line. Hence, when "--proto" flag
is on, simply call the sub provider record's dump method.
This is following same pattern on other system service dump.
Having --proto flag also doesn't do any pretty printing.
e.g., dumpsys appwidget --proto.
Change-Id: I13712a45ce5b584123b3bd73c023df349fb86809
jackqdyulei [Wed, 24 May 2017 20:54:19 +0000 (13:54 -0700)]
Add BottomLabelLayout for battery graph
This layout will automatically become vertical if there is not
enought room for children.
Bug:
37329353
Test: RunSettingsLibRoboTests
Change-Id: I0f6870c4031446e967c239d207e76837b14ab097
TreeHugger Robot [Wed, 31 May 2017 18:22:52 +0000 (18:22 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 18:17:42 +0000 (18:17 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev
Doris Liu [Tue, 30 May 2017 23:47:20 +0000 (16:47 -0700)]
Ensure start delay is properly scaled with duration scale
BUG:
62126024
Test: CTS test in the same target branch
Change-Id: Ia396e69e053ccd90cdf37ac0b59c404c9952e497
Jorim Jaggi [Wed, 31 May 2017 18:07:21 +0000 (18:07 +0000)]
Merge "Check for null owner info" into oc-dev
Julia Reynolds [Wed, 31 May 2017 17:45:52 +0000 (13:45 -0400)]
Change default for group alert behavior
To alert for children but not the summary.
Bug:
62027641
Test: cts
Change-Id: Ie7978514be45be6b13c2ea3bd7ff898db352a1ed
Bryce Lee [Wed, 31 May 2017 17:27:42 +0000 (10:27 -0700)]
Handle not having main window in createThumbnailAppAnimator.
A recent code change associated the SurfaceControl with the main
window owner id. However, it is possible for the an AppWindowToken to
not have a main window. This case is handled later in the method.
This CL restores the original behavior of using the calling uid in
the cases no main window is present.
Change-Id: Iad69fe383c2208c1db523c8b4601a8f927f9318a
Fixes:
62096254
Test: go/wm-smoke
Adam Lesinski [Wed, 31 May 2017 17:22:30 +0000 (10:22 -0700)]
AAPT2: Update --no-version-vector list
Keep in sync with AAPT. Since gradle is moving to use AAPT2
by default, updates to AAPT will no longer be necessary and
this will be the authoritative list until a more programmatic
solution presents itself.
Bug:
62211148
Test: manual
Change-Id: Id9232c9fb730c50e4850887fa0f5da82574ca900
Adam Lesinski [Tue, 30 May 2017 22:15:58 +0000 (15:15 -0700)]
AAPT2: Allow merging of Style attributes from overlays
Previously style overlays would completely override an existing style.
To be compatible with AAPT, styles now merge with the overlay, allowing
the overlay's attributes and parent to take precedence.
Bug:
38355988
Test: make aapt2_tests
Change-Id: Id25c7240050a43e6a4a177c6e3d51e048d0cceb5
TreeHugger Robot [Wed, 31 May 2017 16:28:51 +0000 (16:28 +0000)]
Merge "Fix for wifi detail icon disappearing" into oc-dev
Winson Chung [Wed, 24 May 2017 22:50:06 +0000 (15:50 -0700)]
DO NOT MERGE Updating AnimationSpec and related internal APIs to use GraphicBuffer.
- This reduces the copy of the hardware bitmap when it is
parceled/unparceled.
Bug:
38507414
Bug:
62021436
Test: Launch Overview to/from app, ensure that the header bar shows
Test: go/wm-smoke
Change-Id: I85a9a59a0a3699d1642158061d10fddef34393c3
Signed-off-by: Winson Chung <winsonc@google.com>
Julia Reynolds [Tue, 30 May 2017 19:36:49 +0000 (15:36 -0400)]
Don't verify secondary setting on restore
It'll already be verified as the primary setting of another
managed services type, and it will have a different service
interface, so it shouldn't be overwritten with the primary setting's
service information.
Fixes:
38236571
Test: restore a device. make sure the backup has vr notification
listener permissions on (or any other pkg with both a notification
listener and a condition provider) and some other enabled
notification listener (like a launcher). make sure both
listeners are enabled post restore.
Change-Id: I2e919c2bb06695a3326269571a901ed627c8bee6
TreeHugger Robot [Wed, 31 May 2017 16:04:23 +0000 (16:04 +0000)]
Merge "Don't crash when presented with non-roundRect clipping outline." into oc-dev
TreeHugger Robot [Wed, 31 May 2017 15:42:52 +0000 (15:42 +0000)]
Merge "Fix header not set on initialization" into oc-dev
Rebecca Silberstein [Wed, 31 May 2017 15:42:27 +0000 (15:42 +0000)]
Merge "WifiManager: setWifiApEnabled always returns false" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 15:41:58 +0000 (15:41 +0000)]
Merge "Hide Wi-Fi activity indicator when Wi-Fi icon is hidden" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 15:37:42 +0000 (15:37 +0000)]
Merge "Fix Error Prone ArrayEquals/ArrayHashCode bugs" into oc-dev
Jeff Sharkey [Wed, 31 May 2017 14:18:24 +0000 (14:18 +0000)]
Merge "Consistent "low storage" behavior." into oc-dev
TreeHugger Robot [Wed, 31 May 2017 13:53:09 +0000 (13:53 +0000)]
Merge "Fix infinite loop problem in AnimationHandler" into oc-dev
Dan Sandler [Tue, 30 May 2017 23:50:42 +0000 (19:50 -0400)]
Dump info about all RemoteViews in a Notification.
Bug:
38273093
Test: adb shell dumpsys notification
Change-Id: Id931eba0b9ffc0a5df08f98167dee8ae88a74344
Yoshinori Hirano [Fri, 26 May 2017 02:53:34 +0000 (11:53 +0900)]
Hide Wi-Fi activity indicator when Wi-Fi icon is hidden
Wi-Fi icon in the status bar can be blocked by System UI Tuner.
So the activity indicator should be hidden.
Fixes:
62211154
Test: manual - block Wi-Fi icon
Author: Akira Oshimi <akira.oshimi@sony.com>
Change-Id: Iba698d621d60f6d6c9f6d8205f91df49806f3f54
TreeHugger Robot [Wed, 31 May 2017 12:06:18 +0000 (12:06 +0000)]
Merge "Change the thread for handling shutdown of PowerManagerService." into oc-dev
Charles He [Sun, 28 May 2017 15:24:32 +0000 (16:24 +0100)]
SystemUI: fix notification redaction logic.
Previously, the logic for redacting sensitive notifications is flawed
for apps that have individually overridden the system-wide redaction
setting. Sensitive notifications from such apps are still redacted even
after unlock.
This CL fixes the issue and also simplifies the redaction logic by
taking advantage of the needsRedaction() method.
Bug:
35951989
Test: manual, see bug log
Change-Id: I6b72ed97b3056a93cbe44f54c607c16445f39551
Bill Yi [Wed, 31 May 2017 08:29:44 +0000 (01:29 -0700)]
Import translations. DO NOT MERGE
Change-Id: I6fda2cc77767045574759821cda2f330b4c1741b
Auto-generated-cl: translation import
Bill Yi [Wed, 31 May 2017 05:42:44 +0000 (22:42 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ibb3d3f1843e4488274f6eb3c72ba2a7dbe1de6f8
Auto-generated-cl: translation import
Jeff Sharkey [Fri, 26 May 2017 19:10:46 +0000 (13:10 -0600)]
Consistent "low storage" behavior.
When answering the question "how much space is free", use the same
logic for Settings UI and StorageManager.getAllocatableBytes(). That
is, the reported free space is usable bytes plus any cached data the
system is willing to delete automatically.
This does *not* include any reserved cache space, since we don't want
abusive apps to penalize other well-behaved apps that are storing
their data in cache locations. Callers freeing cached data need to
now explicitly request defiance of the reserved cache space. (Most
callers are already doing this by using FLAG_ALLOCATE_AGGRESSIVE.)
Rewrite the core logic of DeviceStorageMonitorService to understand
this new "reserved" cache space, and to be easier to understand. It
also now handles cached data on adopted storage volumes, which had
been ignored until now. Also fix bug where we had skipped "low"
broadcasts when the device skipped directly from/to "full" state.
Bug:
38008706
Test: cts-tradefed run commandAndExit cts-dev -m CtsJobSchedulerTestCases -t android.jobscheduler.cts.StorageConstraintTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Change-Id: Icbdcf3b52775f7ada1ceaeff2f96094c8d8052f9
TreeHugger Robot [Wed, 31 May 2017 03:54:51 +0000 (03:54 +0000)]
Merge "Fix unnecessary relaunches when unlocking with fingerprint sensor." into oc-dev
Adrian Roos [Wed, 31 May 2017 03:25:52 +0000 (20:25 -0700)]
AOD: Scale icon padding with the drawing size
Fixes an issue where the icon placement algorithm would not take into
account the drawingScale of the icon.
Change-Id: Ia6b7e7d32ce584b04035b45d2abc61e0e4590ee8
Test: Trigger AOD1, observe that icons are correctly spaced, also test transition to lockscreen and observe there's no jank
Fixes:
62205097
Felipe Leme [Wed, 31 May 2017 01:04:23 +0000 (18:04 -0700)]
Don't call remoteFillService.destroy() until session is removed.
Test: CtsAutoFillServiceTestCases pass
Fixes:
62200831
Bug:
62106708
Change-Id: I4e54e28a347e800c0b8353938399c860f213edfa
Felipe Leme [Tue, 30 May 2017 22:47:28 +0000 (15:47 -0700)]
Always post AutofillManager operations in the UI thread.
Test: existing CtsAutoFillServiceTestCases pass
Fixes:
62194407
Change-Id: If878b2befc03706c000b3f31b60904072b2225f4
Svet Ganov [Wed, 24 May 2017 07:27:21 +0000 (00:27 -0700)]
Prune unused static libs and instant apps if space needed
We are caching unused static shared libs and instant apps
(installed and uninstalled) opportunistically. If space is
needed we delete these to free up space.
Test: manual
bug:
62045000
Change-Id: Id992dee5c7c6e36b8e8b81050602dbc4eeafb0f9
TreeHugger Robot [Wed, 31 May 2017 02:22:27 +0000 (02:22 +0000)]
Merge "Do not set the divider pos during adjust ime and minimized interaction" into oc-dev
Wale Ogunwale [Wed, 24 May 2017 22:14:42 +0000 (15:14 -0700)]
Fix unnecessary relaunches when unlocking with fingerprint sensor.
When the device is unlocked using the fingerprint sensor in an
orientation opposite to the lockscreen orientation, the app that
will be visible is first relaunched in the current lockscreen
orientation and then later relaunched in the correct orientation.
If the keygaurd is going away then:
- Don't let keyguard affect device orientation. We want to use the
orientation of the app that will be visible.
- Allow the rotation sensor to be enabled even though draw isn't
complete so window manager can get the updated or last rotation
reading.
- Don't clear the previous proposed sensor reading to allow
window manager to use the information to update the orientation as
needed vs. falling back to the previous orientation.
Change-Id: I8369723d6a77f2c602f1ef080371fa7cd9ee094e
Fixes:
38494778
Test: Launch an app that doesn't fix orientation like clock, hold
the device in landscape, press the power button, unlock the device
using the fingerprint sensor, and verify the the app isn't
relaunched.
Joe Onorato [Wed, 31 May 2017 01:18:01 +0000 (01:18 +0000)]
Merge "Turn off logspam" into oc-dev
TreeHugger Robot [Wed, 31 May 2017 01:07:21 +0000 (01:07 +0000)]
Merge changes I4b58610f,Ib758756a into oc-dev
* changes:
Turn off the check in the test because the assertion is off in the implementation.
Fix typos that cause infinite recursion and CTS test failure.
Jorim Jaggi [Wed, 31 May 2017 01:01:49 +0000 (18:01 -0700)]
Check for null owner info
Test: Cast screen, lock keyguard
Change-Id: I314244d8a5fe1d7f49afbaf5247e84d5ea4df027
Fixes:
38484035