OSDN Git Service

android-x86/frameworks-base.git
7 years agofix service binding
Todd Kennedy [Fri, 21 Apr 2017 19:20:03 +0000 (12:20 -0700)]
fix service binding

there were cases where we wouldn't bind when we should. also, add
some additional debug to better track potential connection issues.

Change-Id: I381da24f490e3102817a14428ef1a63982f33d19
Fixes: 37122153
Test: kill/upgrade GMS to ensure we re-bind in a timely manner

7 years agoMerge "[DO NOT MERGE] Fix potential NPE in Trampoline.requestBackup()." into oc-dev
Michal Karpinski [Fri, 21 Apr 2017 12:20:58 +0000 (12:20 +0000)]
Merge "[DO NOT MERGE] Fix potential NPE in Trampoline.requestBackup()." into oc-dev

7 years agoMerge "SmartSelection ConfigUpdater: Ignore version numbers" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 11:05:45 +0000 (11:05 +0000)]
Merge "SmartSelection ConfigUpdater: Ignore version numbers" into oc-dev

7 years ago[DO NOT MERGE] Fix potential NPE in Trampoline.requestBackup().
Artem Iglikov [Fri, 21 Apr 2017 08:50:56 +0000 (09:50 +0100)]
[DO NOT MERGE] Fix potential NPE in Trampoline.requestBackup().

Before it was returning null in case the service was not initialized,
but as the method signature has int as the return type, this was boxed
and unboxed which would cause NPE.

Now it will return BackupManager.ERROR_BACKUP_NOT_ALLOWED instead.

This doesn't include fix for the test, because it's going to be
cherry-picked into oc-dev, which doesn't have the tests.

Test: manually ran unit tests

Bug: 37535747

Change-Id: I186cf812a4ec67be943b5c4334c82e9af5320b7a

7 years agoMerge "Update Typeface callback docs about error codes" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 09:44:48 +0000 (09:44 +0000)]
Merge "Update Typeface callback docs about error codes" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 07:57:49 +0000 (07:57 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Add local-only hotspot info into tether state change broadcast" into oc-dev
Erik Kline [Fri, 21 Apr 2017 06:53:32 +0000 (06:53 +0000)]
Merge "Add local-only hotspot info into tether state change broadcast" into oc-dev

7 years agoMerge "Don't trigger new partition on fields from SaveInfo" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 06:06:49 +0000 (06:06 +0000)]
Merge "Don't trigger new partition on fields from SaveInfo" into oc-dev

7 years agoMerge "Correctly compute visible views" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 05:15:36 +0000 (05:15 +0000)]
Merge "Correctly compute visible views" into oc-dev

7 years agoAdd local-only hotspot info into tether state change broadcast
Erik Kline [Mon, 17 Apr 2017 07:47:23 +0000 (16:47 +0900)]
Add local-only hotspot info into tether state change broadcast

Test: as follows
    - build
    - flashed
    - booted
    - "runtest frameworks-net" passes
    - manually starting tethering shows Settings and icon updates
Bug: 31466854
Bug: 32163131

Change-Id: I938074587dfeec221c5cdb43a392802ad3fc3589

7 years agoMerge "MediaPlayer/ModularDrm API review: Document/runtime exception update" into...
Hassan Shojania [Fri, 21 Apr 2017 02:58:21 +0000 (02:58 +0000)]
Merge "MediaPlayer/ModularDrm API review: Document/runtime exception update" into oc-dev

7 years agoMerge "Implemented FillResponse.setIgnoredIds()." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 02:54:05 +0000 (02:54 +0000)]
Merge "Implemented FillResponse.setIgnoredIds()." into oc-dev

7 years agoMerge "fix KeyEvent can't correctly finish when inputmethod time out happend" into...
TreeHugger Robot [Fri, 21 Apr 2017 02:36:06 +0000 (02:36 +0000)]
Merge "fix KeyEvent can't correctly finish when inputmethod time out happend" into oc-dev

7 years agoMerge "Stop restoring tasks added before recent is loaded" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 02:12:34 +0000 (02:12 +0000)]
Merge "Stop restoring tasks added before recent is loaded" into oc-dev

7 years agoMerge "media: Change setNextOutputFile to address API review comments." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 02:06:13 +0000 (02:06 +0000)]
Merge "media: Change setNextOutputFile to address API review comments." into oc-dev

7 years agoMerge "Fix #37305009 : Beam crash in secondary users" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 02:04:12 +0000 (02:04 +0000)]
Merge "Fix #37305009 : Beam crash in secondary users" into oc-dev

7 years agoMerge "Auto-generate docs based on annotations." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 02:03:29 +0000 (02:03 +0000)]
Merge "Auto-generate docs based on annotations." into oc-dev

7 years agoMerge "Always create display content with system identity" into oc-dev
Andrii Kulian [Fri, 21 Apr 2017 01:52:15 +0000 (01:52 +0000)]
Merge "Always create display content with system identity" into oc-dev

7 years agoMerge "Update ClipDescription.getTimeStamp to use currentTimeMillis timebase." into...
Sudheer Shanka [Fri, 21 Apr 2017 01:51:22 +0000 (01:51 +0000)]
Merge "Update ClipDescription.getTimeStamp to use currentTimeMillis timebase." into oc-dev

7 years agoMerge "OOM-adjust an app to the foreground for startForegroundService" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 01:42:29 +0000 (01:42 +0000)]
Merge "OOM-adjust an app to the foreground for startForegroundService" into oc-dev

7 years agoDon't trigger new partition on fields from SaveInfo
Felipe Leme [Fri, 21 Apr 2017 01:28:27 +0000 (18:28 -0700)]
Don't trigger new partition on fields from SaveInfo

Fixes: 37551943

Test: existing CtsAutoFillServiceTestCases pass
Test: modified LoginActivityTest.testSaveOnly
Test: new LoginActivityTest.testSaveOnlyOptionalField

Change-Id: I2ae11c4f0aebe63fd02f81fbc37466435e3a2820

7 years agoMerge "Fixed NPE on dump() and other minor fixes..." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 01:20:19 +0000 (01:20 +0000)]
Merge "Fixed NPE on dump() and other minor fixes..." into oc-dev

7 years agoMerge "Fix a11y text location in clipped views" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 01:11:07 +0000 (01:11 +0000)]
Merge "Fix a11y text location in clipped views" into oc-dev

7 years agoImplemented FillResponse.setIgnoredIds().
Felipe Leme [Thu, 20 Apr 2017 22:58:30 +0000 (15:58 -0700)]
Implemented FillResponse.setIgnoredIds().

Fixes: 37424141

Test: existing CtsAutoFillServiceTestCases pass
Test: PartitionedActivityTest.testIgnoredFieldsDontTriggerAutofill

Change-Id: I09bd95230c45d2970080514e25cb53320de49b56

7 years agoMerge "Renaming setAsyncExecutor to setExecutor" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 00:31:05 +0000 (00:31 +0000)]
Merge "Renaming setAsyncExecutor to setExecutor" into oc-dev

7 years agoMerge "browserIntent needs proper flags for PendingIntent" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 00:30:15 +0000 (00:30 +0000)]
Merge "browserIntent needs proper flags for PendingIntent" into oc-dev

7 years agoMerge "Hide API to listen to a11y service state" into oc-dev
Phil Weaver [Fri, 21 Apr 2017 00:11:03 +0000 (00:11 +0000)]
Merge "Hide API to listen to a11y service state" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 21 Apr 2017 00:02:11 +0000 (17:02 -0700)]
Import translations. DO NOT MERGE

Change-Id: I1add27afc0da8fbc26654fe0b82e194fe5b72514
Auto-generated-cl: translation import

7 years agoCorrectly compute visible views
Philip P. Moltmann [Thu, 20 Apr 2017 22:19:06 +0000 (15:19 -0700)]
Correctly compute visible views

addToSet needs the same set as parameters as it returns. Otherwise the
returned set it overrridden.

In this case only the last visible view was added as the set was
overriden with the invisible views.

Test: CtsAutoFillTestCases
Fixes: 37550229
Change-Id: I80e16cbd8a1af83373d7ea7b0f84a7c4d157119f

7 years agoMerge "Kill running animations on fragment view's when removed." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 23:52:41 +0000 (23:52 +0000)]
Merge "Kill running animations on fragment view's when removed." into oc-dev

7 years agoMerge "Execute pending transactions after FM state change." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 23:51:03 +0000 (23:51 +0000)]
Merge "Execute pending transactions after FM state change." into oc-dev

7 years agoMerge "Added missing important-for-autofill mappings." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 23:43:33 +0000 (23:43 +0000)]
Merge "Added missing important-for-autofill mappings." into oc-dev

7 years agoMerge "Deprecate BSSID Hostlist system API" into oc-dev
Michael Plass [Thu, 20 Apr 2017 23:37:47 +0000 (23:37 +0000)]
Merge "Deprecate BSSID Hostlist system API" into oc-dev

7 years agoAlways create display content with system identity
Andrii Kulian [Thu, 20 Apr 2017 23:02:47 +0000 (16:02 -0700)]
Always create display content with system identity

If an app tried to use a virtual display that it had just created
and add a window to it before it was registered in WM, WM would try
to create a DisplayContent instance. This would be executed with
app's calling identity and fail permission check.
This CL ensures that we always clear the calling identity before
creating display content.

Bug: 37422998
Test: android.display.cts.VirtualDisplayTest#testPrivateVirtualDisplay
Change-Id: I442cca65055886b384a28eeefcc35f2a36e482d0

7 years agoFix #37305009 : Beam crash in secondary users
Christopher Tate [Thu, 20 Apr 2017 23:24:31 +0000 (16:24 -0700)]
Fix #37305009 : Beam crash in secondary users

The background-policy check for a-priori app uids needs to be an appId
check rather than nominal uid.

Along the way, even though the code is not invoked after the boot
sequence currently, make the "is this uid on the a-priori list?"
check thread safe.

Bug 37305009
Test: manual

Change-Id: I7c2525f86e73b213057cd4b7f327191ec20c4a6d

7 years agoAuto-generate docs based on annotations.
Jeff Sharkey [Thu, 20 Apr 2017 05:24:18 +0000 (23:24 -0600)]
Auto-generate docs based on annotations.

We have a handful of annotations that we've been sprinkling across
the platform APIs, such as @Nullable, @NonNull, @IntDef, etc.  It
would be really helpful to surface these contracts to developers
through the SDK docs.

This change allows annotations like those mentioned above to declare
the following new javadoc fields:

@memberDoc: docs to append to a field or method definition.
@paramDoc: docs to append to a @param definition.
@returnDoc: docs to append to a @return definition.

This change also builds a docstring to describe the list of all
constants listed in an @IntDef annotation.  Sadly AnnotationDesc
only passes along raw constant values, so we need the help of the
new "prefix" annotation argument to help find the field names.

Test: builds
Bug: 37526420
Change-Id: I4cfc00dd904e5dfa945b406d546e36846b7c0c28

7 years agoFixed NPE on dump() and other minor fixes...
Felipe Leme [Thu, 20 Apr 2017 22:46:18 +0000 (15:46 -0700)]
Fixed NPE on dump() and other minor fixes...

Bug: 36871500
Test: manual verification
Change-Id: I1c3a8406344280da37b728eae56f26447c48e0b2

7 years agoRenaming setAsyncExecutor to setExecutor
Sunny Goyal [Thu, 20 Apr 2017 22:25:47 +0000 (15:25 -0700)]
Renaming setAsyncExecutor to setExecutor

Bug: 37534990
Test: Tests updated
Change-Id: I9ea467d05b4ac4d96c23d53750727096a511686d

7 years agoMerge "Fix status bar not hiding quickly" into oc-dev
Jason Monk [Thu, 20 Apr 2017 22:18:18 +0000 (22:18 +0000)]
Merge "Fix status bar not hiding quickly" into oc-dev

7 years agoOOM-adjust an app to the foreground for startForegroundService
Christopher Tate [Thu, 20 Apr 2017 21:48:13 +0000 (14:48 -0700)]
OOM-adjust an app to the foreground for startForegroundService

That is, OOM adjust it appropriately when the service is kicked off.
Previously it was mistakenly not recognizing the foreground intention
at the OOM level until the service called startForeground(), so there
was a period of inappropriate OOM vulnerability.

Bug 36990485
Test: manual

Change-Id: Ic9b56ef29d5120bf7912681900e9ebaeb0abc5d6

7 years agobrowserIntent needs proper flags for PendingIntent
Jesse Evans [Thu, 20 Apr 2017 21:44:49 +0000 (14:44 -0700)]
browserIntent needs proper flags for PendingIntent

Previously the browserIntent was updated after the call to
PendingIntent.getActivity. It should be updated correctly
before the PendingIntent.getActivity call so that the
PendingIntent is correctly created for the browser instead
of the Instant App.

Test: Existing tests, manually tested fixed behavior.

Bug: 35873804
Change-Id: Ie77344a4190fbc6a3896b02e3adfcdd29985006d

7 years agoMerge "docs: Restoring file to allow staging reference docs from Gerrit" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 21:23:59 +0000 (21:23 +0000)]
Merge "docs: Restoring file to allow staging reference docs from Gerrit" into oc-dev

7 years agomedia: Change setNextOutputFile to address API review comments.
Hangyu Kuang [Thu, 20 Apr 2017 20:53:48 +0000 (13:53 -0700)]
media: Change setNextOutputFile to address API review comments.

Bug: 37514763
Test: CTS test
Change-Id: If0fb59f26ecf3882600ca7a8b26b6c248615bbd0

7 years agoMerge "fix NPE when fragment container is null" into oc-dev
George Mount [Thu, 20 Apr 2017 20:38:07 +0000 (20:38 +0000)]
Merge "fix NPE when fragment container is null" into oc-dev

7 years agofix NPE when fragment container is null
George Mount [Thu, 20 Apr 2017 20:16:52 +0000 (13:16 -0700)]
fix NPE when fragment container is null

Bug 37529822

Test: ran against breaking application

Change-Id: Ib829b817eddf2e91898989a2f9e7885a6f5847e5

7 years agoMerge "Enhance the shortcut manager javadoc." into oc-dev
Makoto Onuki [Thu, 20 Apr 2017 20:14:23 +0000 (20:14 +0000)]
Merge "Enhance the shortcut manager javadoc." into oc-dev

7 years agoMerge "Address API review comments for registerReceiver" into oc-dev
Chad Brubaker [Thu, 20 Apr 2017 19:52:44 +0000 (19:52 +0000)]
Merge "Address API review comments for registerReceiver" into oc-dev

7 years agoFix a11y text location in clipped views
Phil Weaver [Thu, 20 Apr 2017 19:11:15 +0000 (12:11 -0700)]
Fix a11y text location in clipped views

Bug: 37482849
Test: Run Select to Speak, open apps, scroll so top row is
partially visible, have it read the screen.

Change-Id: Ibbd51221f8e93372ccff6d5fb57cdc2a09f2c19f

7 years agoMerge "Stop fetching font data if the context is restricted." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 18:56:39 +0000 (18:56 +0000)]
Merge "Stop fetching font data if the context is restricted." into oc-dev

7 years agoUpdate ClipDescription.getTimeStamp to use currentTimeMillis timebase.
Sudheer Shanka [Thu, 20 Apr 2017 18:30:48 +0000 (11:30 -0700)]
Update ClipDescription.getTimeStamp to use currentTimeMillis timebase.

Bug: 37419581
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases -t \
      android.content.cts.ClipDescriptionTest

Change-Id: I699bfc073c471534eee0b3aa0300a6b6682ab8dd

7 years agoEnhance the shortcut manager javadoc.
Makoto Onuki [Mon, 17 Apr 2017 17:55:21 +0000 (10:55 -0700)]
Enhance the shortcut manager javadoc.

Test: make -j offline-sdk-docs
Bug 37418396

Change-Id: Ic82eb45ea232c2f032abaade12ac9ca967c35cae

7 years agoMerge "Fix overlay view not updated during scaling TvView" into oc-dev
Conrad Chen [Thu, 20 Apr 2017 18:08:09 +0000 (18:08 +0000)]
Merge "Fix overlay view not updated during scaling TvView" into oc-dev

7 years agoMerge "StopScan before each new Companion device scan" into oc-dev
Eugene Susla [Thu, 20 Apr 2017 17:50:55 +0000 (17:50 +0000)]
Merge "StopScan before each new Companion device scan" into oc-dev

7 years agoMerge "Moved getAutofillOptions() logic from SpinnerAbs to AdapterView and Adapter...
TreeHugger Robot [Thu, 20 Apr 2017 17:25:15 +0000 (17:25 +0000)]
Merge "Moved getAutofillOptions() logic from SpinnerAbs to AdapterView and Adapter." into oc-dev

7 years agoMerge changes I8953967a,If17eddad into oc-dev
Jason Monk [Thu, 20 Apr 2017 17:24:20 +0000 (17:24 +0000)]
Merge changes I8953967a,If17eddad into oc-dev

* changes:
  Add go to web action for instant apps
  Fix when instant app notif is showing

7 years agoMerge "Use SubscriptionId instead of SubId" into oc-dev
Jordan Liu [Thu, 20 Apr 2017 17:02:50 +0000 (17:02 +0000)]
Merge "Use SubscriptionId instead of SubId" into oc-dev

7 years agoMerge "Remove swipe to exit persistent Vr mode behavior" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 17:02:11 +0000 (17:02 +0000)]
Merge "Remove swipe to exit persistent Vr mode behavior" into oc-dev

7 years agoMerge "Revert "Add new api Activity.getStartInitiatedTime."" into oc-dev
Sudheer Shanka [Thu, 20 Apr 2017 16:32:34 +0000 (16:32 +0000)]
Merge "Revert "Add new api Activity.getStartInitiatedTime."" into oc-dev

7 years agoMerge "Do not pause resumed activity in resumeTopActivityUncheckedLocked." into oc-dev
Bryce Lee [Thu, 20 Apr 2017 16:27:51 +0000 (16:27 +0000)]
Merge "Do not pause resumed activity in resumeTopActivityUncheckedLocked." into oc-dev

7 years agoMerge "Remove QS wifi alpha state animations, they need more work" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 16:17:08 +0000 (16:17 +0000)]
Merge "Remove QS wifi alpha state animations, they need more work" into oc-dev

7 years agoMerge "Fix touch target on QS date" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 16:14:18 +0000 (16:14 +0000)]
Merge "Fix touch target on QS date" into oc-dev

7 years agoMerge "Fix QS label layout" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 16:02:46 +0000 (16:02 +0000)]
Merge "Fix QS label layout" into oc-dev

7 years agoMerge "Fix alpha on wifi disconnected icon" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 15:59:40 +0000 (15:59 +0000)]
Merge "Fix alpha on wifi disconnected icon" into oc-dev

7 years agoMerge "Fix alpha on wifi connected 4 bars no inet icon" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 15:50:41 +0000 (15:50 +0000)]
Merge "Fix alpha on wifi connected 4 bars no inet icon" into oc-dev

7 years agoMerge "Revert "Revert "AudioAttributes: remove static getVolumeControlStream method...
Jean-Michel Trivi [Thu, 20 Apr 2017 15:45:06 +0000 (15:45 +0000)]
Merge "Revert "Revert "AudioAttributes: remove static getVolumeControlStream method""" into oc-dev

7 years agoMerge "Stop hwbinder threads from app_process." into oc-dev
Martijn Coenen [Thu, 20 Apr 2017 15:33:28 +0000 (15:33 +0000)]
Merge "Stop hwbinder threads from app_process." into oc-dev

7 years agoMerge "Redesign QSSecurityFooter dialog" into oc-dev
Philipp Weiß [Thu, 20 Apr 2017 15:28:24 +0000 (15:28 +0000)]
Merge "Redesign QSSecurityFooter dialog" into oc-dev

7 years agoMerge "String fixes in QSFooter" into oc-dev
Philipp Weiß [Thu, 20 Apr 2017 15:26:55 +0000 (15:26 +0000)]
Merge "String fixes in QSFooter" into oc-dev

7 years agoFix status bar not hiding quickly
Jason Monk [Thu, 20 Apr 2017 15:26:36 +0000 (11:26 -0400)]
Fix status bar not hiding quickly

Appears to be from the delay of posting in the CommandQueue, skip
post when possible.

Test: Turn screen off the right back on.
Change-Id: I285b45544f32891ab86fd1f4a4aba3204bcbfdb4
Fixes: 36463611

7 years agoAdded missing important-for-autofill mappings.
Felipe Leme [Thu, 20 Apr 2017 15:21:23 +0000 (08:21 -0700)]
Added missing important-for-autofill mappings.

Bug: 36171235
Test: m update-api
Change-Id: I7bbbe7a323110c89976cab3e4f5c8f4acba407d7

7 years agoRemove swipe to exit persistent Vr mode behavior
Stephen Kiazyk [Tue, 4 Apr 2017 21:46:59 +0000 (14:46 -0700)]
Remove swipe to exit persistent Vr mode behavior

This behavior is somewhat redundant now
* It is currently already possible to exit Vr mode in normal
circumstances by pressing the X in the top left of the screen.
* If a 'safety hatch' is needed, one can just press the power button,
which will require going through the Don flow again, which can then be
cancelled by pressing the X button.

As it is, the swipe behavior is likely just to cause confusion (and
currently, it puts the device in a bad state where the vr app is still
running, but the screen is blank except for the overlay). My proposition
is just to remove it and use the power button as the safe/guaranteed way
to exit vr mode.

Bug: 36965697
Test: Swiping no longer drops the screen to the overlay when in a
vrflinger application.

Change-Id: I461828f5dce67361a5f4d60c47ac7d6371a4efb3

7 years agoAdd go to web action for instant apps
Jason Monk [Wed, 19 Apr 2017 22:41:06 +0000 (18:41 -0400)]
Add go to web action for instant apps

Test: manual
Change-Id: I8953967ac849f5a5d4129c514172238e17d54df7
Fixes: 35873804

7 years agoFix when instant app notif is showing
Jason Monk [Wed, 19 Apr 2017 21:13:41 +0000 (17:13 -0400)]
Fix when instant app notif is showing

Test: manual
Change-Id: If17eddad60f8207fecf9518430a280261bde5b30
Fixes: 37107497

7 years agoMerge "Do not check user escrow state if synthetic password is not enabled yet" into...
TreeHugger Robot [Thu, 20 Apr 2017 14:56:20 +0000 (14:56 +0000)]
Merge "Do not check user escrow state if synthetic password is not enabled yet" into oc-dev

7 years agoMerge "Make a11y clickable span work after node recycle" into oc-dev
Phil Weaver [Thu, 20 Apr 2017 14:51:37 +0000 (14:51 +0000)]
Merge "Make a11y clickable span work after node recycle" into oc-dev

7 years agoMerge "Vulkan compute 0 only requires variable pointers" into oc-dev
Jesse Hall [Thu, 20 Apr 2017 14:51:33 +0000 (14:51 +0000)]
Merge "Vulkan compute 0 only requires variable pointers" into oc-dev

7 years agofix KeyEvent can't correctly finish when inputmethod time out happend
gaoshang [Thu, 20 Apr 2017 06:14:18 +0000 (14:14 +0800)]
fix KeyEvent can't correctly finish when inputmethod time out happend

Symptom: If inputmethod handle an KeyEvent time out ,
Did not finish this event correctly , eventually lead to app ANR
Root Cause: without seq number when obtainMessage MSG_TIMEOUT_INPUT_EVENT
Solution: add seq parameter

Test: Input
Test: InputMethod
Bug: 28635475

Change-Id: I3a2b964b34aa57267bd777305200a2bfdc66f65c
Signed-off-by: gaoshang <gaoshang@xiaomi.com>
7 years agoMerge "Deprecate Activity#requestVisibleBehind" into oc-dev
Bryce Lee [Thu, 20 Apr 2017 14:19:13 +0000 (14:19 +0000)]
Merge "Deprecate Activity#requestVisibleBehind" into oc-dev

7 years agoDo not pause resumed activity in resumeTopActivityUncheckedLocked.
Bryce Lee [Wed, 19 Apr 2017 17:40:42 +0000 (10:40 -0700)]
Do not pause resumed activity in resumeTopActivityUncheckedLocked.

A number of operations occur between setting the resumed activity and
notifying the activity to resume. One of these steps is updating the
configuration, which can cause the device to pause the resumed
activity. Since the activity has not been told to resume, this leads
to a pause before resume.

This changelist addresses the issue by checking whether we are in the
middle of resuming the top activity before attempting to stop the
currently set resumed activity.

Change-Id: I3b5b61de6b1b5a35b7773912b4e63d6c69096c04
Fixes: 35637717
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests#testNoPauseDuringResumeTopActivity

7 years agoMerge "Listen to USER_STARTED instead of USER_ADDED from WebViewUpdateService." into...
Gustav Sennton [Thu, 20 Apr 2017 13:56:59 +0000 (13:56 +0000)]
Merge "Listen to USER_STARTED instead of USER_ADDED from WebViewUpdateService." into oc-dev

7 years agoSmartSelection ConfigUpdater: Ignore version numbers
Abodunrinwa Toki [Wed, 19 Apr 2017 21:00:34 +0000 (22:00 +0100)]
SmartSelection ConfigUpdater: Ignore version numbers

These model files are updated when the user changes the device
language. When this happens, there is no guarantee that the new model
file (e.g. in English) has a higher version number than the old model
file (e.g. in Italian).

Test: none
Bug: 34780396
Change-Id: Ida70c5cd85fe246d4085a299711ad8838dafa1e9

7 years agoMerge changes from topics 'smartselectconfig', 'langidconfig' into oc-dev
Abodunrinwa Toki [Thu, 20 Apr 2017 13:30:30 +0000 (13:30 +0000)]
Merge changes from topics 'smartselectconfig', 'langidconfig' into oc-dev

* changes:
  SmartSelection Config installer.
  LangId Config installer.

7 years agoRemove QS wifi alpha state animations, they need more work
Jason Monk [Thu, 20 Apr 2017 13:24:59 +0000 (09:24 -0400)]
Remove QS wifi alpha state animations, they need more work

Test: visual
Change-Id: Icd0e5ef30f04ffc86ba28eee67ea2508ffc95c40
Fixes: 35041035

7 years agoMerge "AutoSize TextView - API polish - no RuntimeException in signature" into oc-dev
Andrei Stingaceanu [Thu, 20 Apr 2017 13:14:01 +0000 (13:14 +0000)]
Merge "AutoSize TextView - API polish - no RuntimeException in signature" into oc-dev

7 years agoMerge "TRON: Log "textAssist" actions." into oc-dev
Abodunrinwa Toki [Thu, 20 Apr 2017 13:08:47 +0000 (13:08 +0000)]
Merge "TRON: Log "textAssist" actions." into oc-dev

7 years agoFix QS label layout
Jason Monk [Thu, 20 Apr 2017 13:07:57 +0000 (09:07 -0400)]
Fix QS label layout

Test: visual
Change-Id: Ie334ffbef07549c9ab68fc663c25c0b4b63465ca
Fixes: 37439937

7 years agoString fixes in QSFooter
phweiss [Wed, 19 Apr 2017 17:21:08 +0000 (19:21 +0200)]
String fixes in QSFooter

Only one of the strings (monitoring_title_device_owned) needs to be
translated again. For the others, only apostrophes are fixed.

Bug: 34369166
Test: string-changes only

Change-Id: I58271393f4d8a83e55fa32885e3113845f5e4f5f
(cherry picked from commit 3e559e615359be06229a3ba9048e3b9bac5e4446)

7 years agoRedesign QSSecurityFooter dialog
phweiss [Wed, 19 Apr 2017 18:14:51 +0000 (20:14 +0200)]
Redesign QSSecurityFooter dialog

The dialog consists now of up to four sections: Device management,
CA certificates, Network Logging and VPN.

Also, small tweaks to the footer's coloring after the theme change of QS.

Bug: 34369166
Bug: 37492743
Test: in class QSSecurityFooterTest, which is part of "runtest systemui"

Change-Id: Ibf07a26fb6c5485a152f9d447f10c0f73acb94ba
(cherry picked from commit 0330f881447b053f88de6d30c99bfe4feed3c91d)

7 years agoMerge "Add shell command for turning on/off WebView multiprocess." into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 12:59:31 +0000 (12:59 +0000)]
Merge "Add shell command for turning on/off WebView multiprocess." into oc-dev

7 years agoMerge "Api Council: hide FontsContract.Columns constructor" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 12:52:39 +0000 (12:52 +0000)]
Merge "Api Council: hide FontsContract.Columns constructor" into oc-dev

7 years agoAutoSize TextView - API polish - no RuntimeException in signature
Andrei Stingaceanu [Thu, 20 Apr 2017 10:18:58 +0000 (11:18 +0100)]
AutoSize TextView - API polish - no RuntimeException in signature

Do not mention RuntimeException subclasses in throws clauses in
method signatures.

Bug: 37514926
Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t \
      android.widget.cts.TextViewTest

Change-Id: Ia5bf4cd64e12c53dd7c409b6e44efec4983ae62e

7 years agoDo not check user escrow state if synthetic password is not enabled yet
Rubin Xu [Wed, 12 Apr 2017 17:02:44 +0000 (18:02 +0100)]
Do not check user escrow state if synthetic password is not enabled yet

1. when adding escrow tokens, do not throw SecurityException if the user hasn't
   migrated to synthetic password yet.
2. during migration, activate any pending escrow tokens.
3. Disable escrow before attempting to activate escrow tokens, this currently
   includes whenever the user authenticates, and when synthetic password
   migration happens.

Also, add some comments in SyntheticPasswordManager and remove an invalid call
to destroy escrow data.

Test: runtest frameworks-services -c com.android.server.SyntheticPasswordTests
Bug: 36776133
Change-Id: If4b9d385fb43e09d90b6dde6d25b4fcc0c6b7ddc
Merged-In: If4b9d385fb43e09d90b6dde6d25b4fcc0c6b7ddc

7 years agoUpdate Typeface callback docs about error codes
Clara Bayarri [Wed, 12 Apr 2017 10:29:19 +0000 (11:29 +0100)]
Update Typeface callback docs about error codes

As requested by API council, mention that the provider may
return its own error codes within the positive int range.

Bug: 37084803
Test: none
Change-Id: Ia8ee99432cc5025a12d43049e327605095dd2b57

7 years agoApi Council: hide FontsContract.Columns constructor
Clara Bayarri [Thu, 20 Apr 2017 10:31:15 +0000 (11:31 +0100)]
Api Council: hide FontsContract.Columns constructor

Bug: 37515256
Test: none
Change-Id: I2a9de7ea30ffa39af5104977f6604ce3bda220fb

7 years agoListen to USER_STARTED instead of USER_ADDED from WebViewUpdateService.
Gustav Sennton [Thu, 23 Mar 2017 17:04:23 +0000 (17:04 +0000)]
Listen to USER_STARTED instead of USER_ADDED from WebViewUpdateService.

When adding a restricted user, 'hidden' applications are uninstalled for
the user after creation of the user, but before the user is 'started'.

Because WebViewUpdateService only listens to USER_ADDED and USER_REMOVED
intents it wouldn't realize that Chrome had been uninstalled for a new
restricted user (at the time of user-creation Chrome would be
installed). Instead listen to user-started/stopped intents to ensure the
restricted-user case is handled correctly.

Bug: 35813523
Test: Add a restricted user (on a Pixel C), with Chrome disabled. Start
an app using WebView (and ensure WebView doesn't crash).

Change-Id: I0c5d0a543b4bc80d269e586444b80cd3baffa11c

7 years agoMerge "AOD: Fix broken triggers after failed prox check" into oc-dev
TreeHugger Robot [Thu, 20 Apr 2017 07:34:09 +0000 (07:34 +0000)]
Merge "AOD: Fix broken triggers after failed prox check" into oc-dev

7 years agoAOD: Fix broken triggers after failed prox check
Adrian Roos [Wed, 19 Apr 2017 21:31:03 +0000 (14:31 -0700)]
AOD: Fix broken triggers after failed prox check

Fixes an issue where after a failed prox check
we would not correctly reset mPulsePending and
thus never trigger a pulse again until the
DozeService restarts.

Also adds logging for dropped and canceled pulses
to aid diagnosing similar or different bugs
in the future.

Also adds a regression test.

Fixes: 37477968
Test: runtest -x /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeTriggersTest.java
Change-Id: Ic465b7686ae1937a29d07a66fe44cf7ad18419ef

7 years agoMerge "A11y: Better label status bar icons" into oc-dev
Adrian Roos [Thu, 20 Apr 2017 05:20:40 +0000 (05:20 +0000)]
Merge "A11y: Better label status bar icons" into oc-dev

7 years agoMerge "Add min and max learned battery capacity to batterystats." into oc-dev
Jocelyn Dang [Thu, 20 Apr 2017 04:34:10 +0000 (04:34 +0000)]
Merge "Add min and max learned battery capacity to batterystats." into oc-dev

7 years agoMerge changes Ic029cc9f,Id917f3a2 into oc-dev
Hugo Benichi [Thu, 20 Apr 2017 04:27:45 +0000 (04:27 +0000)]
Merge changes Ic029cc9f,Id917f3a2 into oc-dev

* changes:
  NsdService: minor cleanups
  Nsdmanager/NsdService: add logging