OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "camera: Update for enableZsl values in template" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 22:36:50 +0000 (22:36 +0000)]
Merge "camera: Update for enableZsl values in template" into oc-dev

7 years agoMerge "Bunch of new API lint rules." into oc-dev
Jeff Sharkey [Mon, 24 Apr 2017 22:18:51 +0000 (22:18 +0000)]
Merge "Bunch of new API lint rules." into oc-dev

7 years agoMerge "Fixed transition animation from pipable activities" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 21:46:28 +0000 (21:46 +0000)]
Merge "Fixed transition animation from pipable activities" into oc-dev

7 years agoMerge changes from topic 'virtual-display-api' into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 21:33:55 +0000 (21:33 +0000)]
Merge changes from topic 'virtual-display-api' into oc-dev

* changes:
  Add command line option to set compatibility display properties
  Make VR mode virtual display properties customizable

7 years agoMerge "Even more auto-doc work." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 21:33:13 +0000 (21:33 +0000)]
Merge "Even more auto-doc work." into oc-dev

7 years agoMerge "Moved LRResolverRankerService to ExtServices, and added a permission to ensure...
Kang Li [Mon, 24 Apr 2017 21:21:34 +0000 (21:21 +0000)]
Merge "Moved LRResolverRankerService to ExtServices, and added a permission to ensure that ResolverRankerServices are from trust sources." into oc-dev

7 years agoMerge "Don't allow devs to create blocked channels" into oc-dev
Julia Reynolds [Mon, 24 Apr 2017 21:17:12 +0000 (21:17 +0000)]
Merge "Don't allow devs to create blocked channels" into oc-dev

7 years agoMerge "Don't consider uri empty a valid sound" into oc-dev
Julia Reynolds [Mon, 24 Apr 2017 21:16:57 +0000 (21:16 +0000)]
Merge "Don't consider uri empty a valid sound" into oc-dev

7 years agoMerge "Clean up ImageReader when VrMode is disabled." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 21:01:00 +0000 (21:01 +0000)]
Merge "Clean up ImageReader when VrMode is disabled." into oc-dev

7 years agoMerge "Replaced getUrl() by getWebDomain()." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 20:45:54 +0000 (20:45 +0000)]
Merge "Replaced getUrl() by getWebDomain()." into oc-dev

7 years agoMerge "Change companion languare from 'pair' to 'link'/'ok'" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 20:31:03 +0000 (20:31 +0000)]
Merge "Change companion languare from 'pair' to 'link'/'ok'" into oc-dev

7 years agoMerge "Add link to class with constants" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 20:28:55 +0000 (20:28 +0000)]
Merge "Add link to class with constants" into oc-dev

7 years agoMerge "Prevent leak of AppWindowTokens." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 20:24:16 +0000 (20:24 +0000)]
Merge "Prevent leak of AppWindowTokens." into oc-dev

7 years agoEven more auto-doc work.
Jeff Sharkey [Mon, 24 Apr 2017 17:18:03 +0000 (11:18 -0600)]
Even more auto-doc work.

Update docs based on what new lint detector found.  Add new @IntDef
to parameters or methods returning constants or flags, and add
@RequiresPermission to methods mentioning permissions.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I7f640f7883fcb66b911a52ae93b83f77306571ec

7 years agoFixed transition animation from pipable activities
Wale Ogunwale [Mon, 24 Apr 2017 01:39:45 +0000 (18:39 -0700)]
Fixed transition animation from pipable activities

- Defer telling the client it is hidden if it can enter Pip and isn't
current stopped or stopping. This gives it a chance to enter Pip in
onPause().
- Once pause is complete set the visiblity to false to stop deferring
hiding client.
- Don't allow FLAG_RESUME_WHILE_PAUSING activity to resume until the
currently resumed activity is puased if the currently resumed activity
can enter Pip.
- Detach child surfaces added by the client process in
WindowState.sendAppVisibilityToClients() right before we notify the
client.

Test: manual
Change-Id: I3848f2b93f4f1d3ceec5a1ccd2e127c614f70fe4
Fixes: 37370508
Fixes: 37622341

7 years agoMerge "Check bluetooth app id instead of uid" into oc-dev
Amith Yamasani [Mon, 24 Apr 2017 19:04:49 +0000 (19:04 +0000)]
Merge "Check bluetooth app id instead of uid" into oc-dev

7 years agoCheck bluetooth app id instead of uid
Amith Yamasani [Mon, 24 Apr 2017 18:30:19 +0000 (11:30 -0700)]
Check bluetooth app id instead of uid

Fixes the crash on user switches.

Change-Id: If0c003011bd014b437ef5c8bee24a27b68be88d9
Fixes: 37617840
Test: manual - add a user

7 years agoAdd link to class with constants
Amith Yamasani [Mon, 24 Apr 2017 18:00:05 +0000 (11:00 -0700)]
Add link to class with constants

Addresses api-council feedback

Change-Id: I2dcd526a266a2320b34c714fd91fb4a83d382d9c
Fixes: 37536012
Test: make update-api

7 years agoMerge "Wifi Metrics STA event list" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 17:57:26 +0000 (17:57 +0000)]
Merge "Wifi Metrics STA event list" into oc-dev

7 years agoMerge "Update USSD API docs per API review comments." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 17:34:35 +0000 (17:34 +0000)]
Merge "Update USSD API docs per API review comments." into oc-dev

7 years agoMerge "Validates Intrinsic Blur only takes 2D Allocations" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 17:29:30 +0000 (17:29 +0000)]
Merge "Validates Intrinsic Blur only takes 2D Allocations" into oc-dev

7 years agoMerge "Whitelist PHONE_STATE to wakeup apps" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 16:52:47 +0000 (16:52 +0000)]
Merge "Whitelist PHONE_STATE to wakeup apps" into oc-dev

7 years agoReplaced getUrl() by getWebDomain().
Felipe Leme [Fri, 21 Apr 2017 23:47:18 +0000 (16:47 -0700)]
Replaced getUrl() by getWebDomain().

Bug: 37566507
Test: CtsAssistTestCases pass

Change-Id: I1b4dfa7259040b3b8bf1014ebb806eb7a3b36c58

7 years agoMerge "Hide secondary text for Default channel if not blocked" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 16:18:32 +0000 (16:18 +0000)]
Merge "Hide secondary text for Default channel if not blocked" into oc-dev

7 years agoMerge "Fix ChangeClipBounds to set final clip to null." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 16:14:11 +0000 (16:14 +0000)]
Merge "Fix ChangeClipBounds to set final clip to null." into oc-dev

7 years agoMerge "Insert missing breaks" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 16:02:29 +0000 (16:02 +0000)]
Merge "Insert missing breaks" into oc-dev

7 years agoFix check when finding tasks to reuse.
Winson Chung [Fri, 21 Apr 2017 21:44:38 +0000 (14:44 -0700)]
Fix check when finding tasks to reuse.

- Since we added a new assistant activity type, we need to update the check
  for which stack to match the activity to.

Bug: 37526597
Test: android.server.cts.ActivityManagerAssistantStackTests
Test: #testLaunchIntoSameTask
Change-Id: I2d77ba8b026ee1ae692b026d20703fa56c061704

7 years agoMerge "fix service binding" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 15:37:45 +0000 (15:37 +0000)]
Merge "fix service binding" into oc-dev

7 years agoMerge "Remove @TestApi annotation" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 15:35:44 +0000 (15:35 +0000)]
Merge "Remove @TestApi annotation" into oc-dev

7 years agoMerge "Add a11y voice for the VPN icon in status bar" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 15:14:03 +0000 (15:14 +0000)]
Merge "Add a11y voice for the VPN icon in status bar" into oc-dev

7 years agoMerge "Fixed pinned stack lockscreen interaction" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 14:58:25 +0000 (14:58 +0000)]
Merge "Fixed pinned stack lockscreen interaction" into oc-dev

7 years agoUndeprecate WebView.findAddress
Abodunrinwa Toki [Fri, 21 Apr 2017 16:54:38 +0000 (17:54 +0100)]
Undeprecate WebView.findAddress

Reverts I772961bd20bff4817a060f14a843abeceb55ac92
Until we bring back TextClassifier.getLinks
See I275a9d055ef0ab68f3ca339c37ee939257c4bd54

Test: none
Bug: 22362008
Bug: 37565246
Change-Id: I2948f22cf4c3462491f47376af48624697703969

7 years agoMerge changes from topic 'langdet' into oc-dev
Abodunrinwa Toki [Mon, 24 Apr 2017 14:39:44 +0000 (14:39 +0000)]
Merge changes from topic 'langdet' into oc-dev

* changes:
  Hide TextClassifier.getLinks API.
  Hide TextClassificationManager.detectLanguages API

7 years agoInsert missing breaks
Jorim Jaggi [Fri, 14 Apr 2017 23:50:42 +0000 (16:50 -0700)]
Insert missing breaks

Found you!

Test: Go multi-window, go fullscreen, hammer home button
Change-Id: I019d89b95588ab2a0e33d9ef2bdc7240111162d0
Fixes: 36339388

7 years agoMerge "Follow-up for I8cbf1bfbebc917b03f528f040bb019d193228bbb" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 13:41:41 +0000 (13:41 +0000)]
Merge "Follow-up for I8cbf1bfbebc917b03f528f040bb019d193228bbb" into oc-dev

7 years agoMerge "Call removeMessages() only for certain operations in BackupManagerService...
TreeHugger Robot [Mon, 24 Apr 2017 13:37:37 +0000 (13:37 +0000)]
Merge "Call removeMessages() only for certain operations in BackupManagerService#handleCancel()" into oc-dev

7 years agoMerge "Send directed broadcast to the installer" into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 13:36:28 +0000 (13:36 +0000)]
Merge "Send directed broadcast to the installer" into oc-dev

7 years agoMerge "Fix cast dialog dismiss on home/recents" into oc-dev
Jason Monk [Mon, 24 Apr 2017 13:22:13 +0000 (13:22 +0000)]
Merge "Fix cast dialog dismiss on home/recents" into oc-dev

7 years agoMerge "Fix QS size on 320dp with big fonts" into oc-dev
Jason Monk [Mon, 24 Apr 2017 13:20:36 +0000 (13:20 +0000)]
Merge "Fix QS size on 320dp with big fonts" into oc-dev

7 years agoMerge "Don't reinflate signal cluster after inflate" into oc-dev
Jason Monk [Mon, 24 Apr 2017 13:19:38 +0000 (13:19 +0000)]
Merge "Don't reinflate signal cluster after inflate" into oc-dev

7 years agoMerge "Fix QS detail panels RTL" into oc-dev
Jason Monk [Mon, 24 Apr 2017 13:19:29 +0000 (13:19 +0000)]
Merge "Fix QS detail panels RTL" into oc-dev

7 years agoMerge "Fix QS shadow disappearing on expand." into oc-dev
Jason Monk [Mon, 24 Apr 2017 12:53:34 +0000 (12:53 +0000)]
Merge "Fix QS shadow disappearing on expand." into oc-dev

7 years agoCall removeMessages() only for certain operations in BackupManagerService#handleCancel()
Anton Philippov [Mon, 24 Apr 2017 10:07:54 +0000 (11:07 +0100)]
Call removeMessages() only for certain operations in BackupManagerService#handleCancel()

Only remove messages of types OP_TYPE_BACKUP_WAIT and OP_TYPE_RESTORE_WAIT, since OP_TYPE_BACKUP cannot time out and doesn't require cancellation.

This will prevent some unncecessary (false) warnings in logcat.

Bug: 36570881
Test: manual
Change-Id: I72ecf98438fff18616354b04638b7db5c943aa61

7 years agoDrop REASON_FORCED_DEXOPT.
Nicolas Geoffray [Fri, 21 Apr 2017 14:41:13 +0000 (15:41 +0100)]
Drop REASON_FORCED_DEXOPT.

This can already be configured with the default compiler filter.

Also remove unused performDexOptIfNeeded.

bug:35794392
Test: device boots, forced dexopt works.
Change-Id: I14fc86c4783b2d7ac9cf8972b6619ba303e79659
(cherry picked from commit e103256c1fee6b53ead10efe13ca35ad270626fa)

7 years agoMerge "Add log before doRestoreFinished is called on BackupAgent." into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 09:45:33 +0000 (09:45 +0000)]
Merge "Add log before doRestoreFinished is called on BackupAgent." into oc-dev

7 years agoDon't allow devs to create blocked channels
Julia Reynolds [Sun, 23 Apr 2017 17:11:40 +0000 (13:11 -0400)]
Don't allow devs to create blocked channels

Test: runtest systemui-notification
Change-Id: I11942e4268acc70ffcbcda08eed4e13e64f4b12f
Fixes: 37559814

7 years agoDon't consider uri empty a valid sound
Julia Reynolds [Sun, 23 Apr 2017 16:39:32 +0000 (12:39 -0400)]
Don't consider uri empty a valid sound

Test: runtest systemui-notification
Change-Id: Ia838237e04eb11bd79e3ad5990bbb52c7ab853ee
Fixes: 36848349

7 years agoMerge "Move settingslib overlays to framework-res." into oc-dev
TreeHugger Robot [Sun, 23 Apr 2017 02:42:43 +0000 (02:42 +0000)]
Merge "Move settingslib overlays to framework-res." into oc-dev

7 years agoMerge "More auto-doc work." into oc-dev
Jeff Sharkey [Sat, 22 Apr 2017 19:11:30 +0000 (19:11 +0000)]
Merge "More auto-doc work." into oc-dev

7 years agoMerge "Clarify IControlsTethering LOCAL_ONLY state name" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 09:42:45 +0000 (09:42 +0000)]
Merge "Clarify IControlsTethering LOCAL_ONLY state name" into oc-dev

7 years agoMerge "Watchdog: add graphics composer to HALs of interest" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 09:00:07 +0000 (09:00 +0000)]
Merge "Watchdog: add graphics composer to HALs of interest" into oc-dev

7 years agoMerge "Clarify the meaning of ViewNodes methods used for Autofill purposes." into...
TreeHugger Robot [Sat, 22 Apr 2017 04:20:37 +0000 (04:20 +0000)]
Merge "Clarify the meaning of ViewNodes methods used for Autofill purposes." into oc-dev

7 years agoMerge "Show new colored icon for PDF printer" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 03:50:00 +0000 (03:50 +0000)]
Merge "Show new colored icon for PDF printer" into oc-dev

7 years agoMerge "Added accessibility type on Autofill save dialog." into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 02:53:06 +0000 (02:53 +0000)]
Merge "Added accessibility type on Autofill save dialog." into oc-dev

7 years agoMerge "Workaround apps that override surfaceCreated" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 02:41:50 +0000 (02:41 +0000)]
Merge "Workaround apps that override surfaceCreated" into oc-dev

7 years agoMerge "Fix a spelling." into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 02:32:34 +0000 (02:32 +0000)]
Merge "Fix a spelling." into oc-dev

7 years agoMerge "Don't clear restart counter when bringing up the service." into oc-dev
Sudheer Shanka [Sat, 22 Apr 2017 01:31:18 +0000 (01:31 +0000)]
Merge "Don't clear restart counter when bringing up the service." into oc-dev

7 years agoMerge "Upgrade logging for UsbDeviceManager to narrow down bugs." into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 01:26:08 +0000 (01:26 +0000)]
Merge "Upgrade logging for UsbDeviceManager to narrow down bugs." into oc-dev

7 years agoMerge "Don't put non-resizeable activities on secondary displays" into oc-dev
Andrii Kulian [Sat, 22 Apr 2017 00:59:31 +0000 (00:59 +0000)]
Merge "Don't put non-resizeable activities on secondary displays" into oc-dev

7 years agoMerge "Fix flaky tests in ConnOnActivityStartTest." into oc-dev
Sudheer Shanka [Sat, 22 Apr 2017 00:34:36 +0000 (00:34 +0000)]
Merge "Fix flaky tests in ConnOnActivityStartTest." into oc-dev

7 years agoMerge "Address various JobScheduler API feedback." into oc-dev
Dianne Hackborn [Sat, 22 Apr 2017 00:33:43 +0000 (00:33 +0000)]
Merge "Address various JobScheduler API feedback." into oc-dev

7 years agoMerge "Allow the Bluetooth MAC address to be updated asynchronously (2/3)" into oc-dev
TreeHugger Robot [Sat, 22 Apr 2017 00:17:24 +0000 (00:17 +0000)]
Merge "Allow the Bluetooth MAC address to be updated asynchronously (2/3)" into oc-dev

7 years agoWorkaround apps that override surfaceCreated
John Reck [Sat, 22 Apr 2017 00:14:45 +0000 (17:14 -0700)]
Workaround apps that override surfaceCreated

Fixes: 34512969
Test: manual, tested repro in bug and verified
basic GLSurfaceView usage in ApiDemos works
without warnings

Change-Id: I0ce9128874af681e9cfbd3b0b2ef5e2df7080154

7 years agoWhitelist PHONE_STATE to wakeup apps
Brad Ebinger [Sat, 22 Apr 2017 00:05:18 +0000 (17:05 -0700)]
Whitelist PHONE_STATE to wakeup apps

Whitelists PHONE_STATE to wake up apps that are not
running when this intent is broadcast.

The bug to track removing this intent from the whitelist is b/37579761

Test: Compile and run
Change-Id: I89987195c9e6d5160b40666fbfc3893602ab1c15

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

7 years agoMerge "Bluetooth: improve getLeMaximumAdvertisingDataLength comment" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 23:40:24 +0000 (23:40 +0000)]
Merge "Bluetooth: improve getLeMaximumAdvertisingDataLength comment" into oc-dev

7 years agoMerge "Fix @throws javadoc on SurfaceTexture ctors" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 23:25:48 +0000 (23:25 +0000)]
Merge "Fix @throws javadoc on SurfaceTexture ctors" into oc-dev

7 years agoUpgrade logging for UsbDeviceManager to narrow down bugs.
Jerry Zhang [Fri, 21 Apr 2017 19:31:17 +0000 (12:31 -0700)]
Upgrade logging for UsbDeviceManager to narrow down bugs.

Will be reverted once bugs are caught.

Bug: 34873000
Test: None
Change-Id: Ia43e0ccb1c22c767c6ef3edbf04cef024662cd15

7 years agoMerge "Behavior compat for child being manipulated outside Animatorset" into oc-dev
Doris Liu [Fri, 21 Apr 2017 23:14:28 +0000 (23:14 +0000)]
Merge "Behavior compat for child being manipulated outside Animatorset" into oc-dev

7 years agoMerge "Propagate density through AdaptiveIconDrawable and BitmapDrawable" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 22:35:49 +0000 (22:35 +0000)]
Merge "Propagate density through AdaptiveIconDrawable and BitmapDrawable" into oc-dev

7 years agoMore auto-doc work.
Jeff Sharkey [Fri, 21 Apr 2017 22:29:27 +0000 (16:29 -0600)]
More auto-doc work.

Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8

7 years agoMerge "Let unlocked profile verifyCredential under unified lock" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 22:27:43 +0000 (22:27 +0000)]
Merge "Let unlocked profile verifyCredential under unified lock" into oc-dev

7 years agoAllow the Bluetooth MAC address to be updated asynchronously (2/3)
Stanley Tng [Tue, 18 Apr 2017 05:35:45 +0000 (22:35 -0700)]
Allow the Bluetooth MAC address to be updated asynchronously (2/3)

There are intermittent issues where either the returned Bluetooth
MAC address to Java framework is uninitialized or this address update
arrives too late. This fix will do 2 things:
(1) Returns error when MAC address is unavailable in the native code.
(2) Updates the MAC address later by adding a new broadcast event.

Test: Check address for these cases: factory reset, system reboot, and
Bluetooth re-enable.
Bug: 36709382

Change-Id: I09720193e38fdf9139e1bb146f8e1847e2b65b1a
(cherry picked from commit ad4d1d8e28618546953e75d4983335631feb6f2a)

7 years agoShow new colored icon for PDF printer
Philip P. Moltmann [Thu, 20 Apr 2017 22:46:19 +0000 (15:46 -0700)]
Show new colored icon for PDF printer

The color matches the color of the printers reported by the Default
Print Service.

Change-Id: I12c19ab498fc5df3af88932eaeb6b3f7015e71d9
Fixes: 35766257
Test: Looked at Print UI

7 years agoAddress various JobScheduler API feedback.
Dianne Hackborn [Fri, 21 Apr 2017 21:17:23 +0000 (14:17 -0700)]
Address various JobScheduler API feedback.

- New sample code.
- Fix/improve some docs.
- Hide JobWorkItem Parcl constructor.

Also:

- Add new JobWorkItem API to get the number of times it has been
delivered.
- Do a bit more optimization of checking if a job is ready.

Bug: 37534393  API Review: JobInfo.Builder
Bug: 37544057  API Review: JobServiceEngine
Bug: 37544153  API Review: JobWorkItem

Test: bit CtsJobSchedulerTestCases:*
Change-Id: I66891a038fba752f45dcaed43e615fa9209b71fc

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 "Introduce TextView attribute for control justification." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:31:13 +0000 (21:31 +0000)]
Merge "Introduce TextView attribute for control justification." into oc-dev

7 years agoMerge "Fix for MediaPlayerStreamingStressTest/HLS" into oc-dev
Hassan Shojania [Fri, 21 Apr 2017 21:28:34 +0000 (21:28 +0000)]
Merge "Fix for MediaPlayerStreamingStressTest/HLS" into oc-dev

7 years agoMerge "telephony service support notification channel" into oc-dev
Chen Xu [Fri, 21 Apr 2017 21:26:26 +0000 (21:26 +0000)]
Merge "telephony service support notification channel" into oc-dev

7 years agoMerge "Renaming intent action for unknown sources" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:22:05 +0000 (21:22 +0000)]
Merge "Renaming intent action for unknown sources" into oc-dev

7 years agoMerge "Add more log to track down the "idle until changed" issue." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:20:24 +0000 (21:20 +0000)]
Merge "Add more log to track down the "idle until changed" issue." into oc-dev

7 years agoIntroduce TextView attribute for control justification.
Seigo Nonaka [Fri, 21 Apr 2017 17:16:26 +0000 (10:16 -0700)]
Introduce TextView attribute for control justification.

Bug: 37447278
Test: am instrument -w -e class android.widget.cts.TextViewTest
      android.widget.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: I7946f460ad8a6c2423b464c27225411d155d4d8d

7 years agoBehavior compat for child being manipulated outside Animatorset
Doris Liu [Fri, 21 Apr 2017 19:24:54 +0000 (12:24 -0700)]
Behavior compat for child being manipulated outside Animatorset

When a child animator is being manipulated outside of the AnimatorSet,
such as when the child animator is running before the AnimatorSet gets
started, we need to make sure we maintain the behavoir on N:
The child animator will be re-started at its scheduled start time in
the AnimatorSet.

BUG: 37507882
Test: Repro steps in comment #1 & ag/2144081/
Change-Id: Ib97e85706f01d18a2e72fb4d1d678e22cf959894

7 years agoMerge "MediaPlayer: fix new API seekTo to address API review." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 21:10:47 +0000 (21:10 +0000)]
Merge "MediaPlayer: fix new API seekTo to address API review." into oc-dev

7 years agoFix @throws javadoc on SurfaceTexture ctors
John Reck [Fri, 21 Apr 2017 17:50:59 +0000 (10:50 -0700)]
Fix @throws javadoc on SurfaceTexture ctors

Change-Id: I63bd76ec4e44251b7e06ad6fc8aa5a3372104656
Fixes: 37323694
Test: Looked at generated docs, verified correct

7 years agoMerge "audio service: simplify becoming noisy intent logic" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 20:43:45 +0000 (20:43 +0000)]
Merge "audio service: simplify becoming noisy intent logic" into oc-dev

7 years agoBluetooth: improve getLeMaximumAdvertisingDataLength comment
Jakub Pawlowski [Fri, 21 Apr 2017 11:59:55 +0000 (04:59 -0700)]
Bluetooth: improve getLeMaximumAdvertisingDataLength comment

Bug: 37534792
Test: none
Change-Id: Ieff71356aceb0e2a4c6e81d9053f854448e0c927
(cherry picked from commit 4634b5cd27b274105e550f58f9d5fc51c79eb3fb)

7 years agoMerge "Increases the minimized width in landscape by statusbar height" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 20:30:46 +0000 (20:30 +0000)]
Merge "Increases the minimized width in landscape by statusbar height" into oc-dev

7 years agoPrevent leak of AppWindowTokens.
Robert Carr [Fri, 21 Apr 2017 20:26:55 +0000 (13:26 -0700)]
Prevent leak of AppWindowTokens.

We need to check to remove ourselves from our previous parents exiting
app list not the list of our new parents. If we check AOSP master AppWindowToken
L333 we can see it used to work this way. This is causing the abandoned starting
window buffer queue bugs in 36703921 by also triggering a leak of the startingdata
and the assosciated viewrootimpl, though the surface ends up destroyed.

Bug: 36703921
Test: Open app, hit back, verify dumpsys window displays "Exiting App Tokens" doesn't grow by one each time.
Change-Id: I07a4df82b2694e9d0eaa1b9299d233c3aa496c3e

7 years agoPropagate density through AdaptiveIconDrawable and BitmapDrawable
Adam Lesinski [Sat, 15 Apr 2017 01:41:52 +0000 (18:41 -0700)]
Propagate density through AdaptiveIconDrawable and BitmapDrawable

Resources#getDrawableForDensity now propagates the overridden
density through to AdaptiveIconDrawable so that the density can be
propagated to leaf BitmapDrawables correctly.

This enables AdaptiveIconDrawable to support higher resolution
foreground/background bitmaps for use in Launcher.

Bug: 36039665
Test: bit CtsContentTestCases:android.content.res.cts.ResourcesTest
Change-Id: Iaa9a5592626e38e1ff839a76f7c6cfb9e16e5dc1

7 years agoMerge "Move PackageManager to new auto-doc feature!" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 20:20:03 +0000 (20:20 +0000)]
Merge "Move PackageManager to new auto-doc feature!" into oc-dev

7 years agoDon't clear restart counter when bringing up the service.
Sudheer Shanka [Thu, 20 Apr 2017 23:57:50 +0000 (16:57 -0700)]
Don't clear restart counter when bringing up the service.

There is no need for clearing the restart counter when bringing
up the service. If the service is being started because of rescheduling,
then we need to keep track of the counter and shouldn't clear it.
And if it is being started because some other process invoked
startService/bindService, then it needs to be cleared and we already do that
in unscheduleServiceRestartLocked. Also, update the condition for
checking if the service is waiting to restart since +ve restartDelay
doesn't always mean that the service is waiting to restart.

Bug: 36576035
Test: manual &&
      cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t android.app.cts.ServiceTest
      cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t android.app.cts.ActivityManagerTest
      cts-tradefed run singleCommand cts-dev -m CtsAppTestCases -t android.app.cts.IntentServiceTest
Change-Id: I95b8adc84ef1918fd7dce727a87b71e2561b0938

7 years agoSend directed broadcast to the installer
Todd Kennedy [Fri, 21 Apr 2017 14:26:25 +0000 (07:26 -0700)]
Send directed broadcast to the installer

The installer of record should be allowed background execution when
an application is removed/updated. The installer of record is the
installer that was responsible for installing the latest version of
the application.

Change-Id: I19ed0120975e6f75ac7e4982b21dd4785552a9e7
Fixes: 36788678
Test: Manual; install an app via 'adb' and set the installer, see that the installer gets the directed broadcast when the app is removed/replaced

7 years agoMerge "Fix code accounting bugs, track external app data." into oc-dev
Jeff Sharkey [Fri, 21 Apr 2017 20:01:36 +0000 (20:01 +0000)]
Merge "Fix code accounting bugs, track external app data." into oc-dev

7 years agoMoved LRResolverRankerService to ExtServices, and added a permission to
Kang Li [Thu, 13 Apr 2017 16:17:07 +0000 (09:17 -0700)]
Moved LRResolverRankerService to ExtServices, and added a permission to
ensure that ResolverRankerServices are from trust sources.

Test: manually shared images in Camera, and in PTP to confirm it works
as expected.

Change-Id: I3549292d424fec949e9115faea7a0c5bdec06e87
(cherry picked from commit 61cf4d145e3f899ff2ff4500c3e46ea2c39adaf3)

7 years agoAdd more log to track down the "idle until changed" issue.
Makoto Onuki [Fri, 21 Apr 2017 19:21:25 +0000 (12:21 -0700)]
Add more log to track down the "idle until changed" issue.

Bug 34724174
Test: Tested manually with intentionally adding a bug.

Change-Id: I1789285068203b22ce271180667eb9cb1eb0b182

7 years agoMerge "Add transfer mode support to ColorDrawable" into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 19:29:03 +0000 (19:29 +0000)]
Merge "Add transfer mode support to ColorDrawable" into oc-dev

7 years agoMerge "Update HardwareBuffer API." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 19:28:24 +0000 (19:28 +0000)]
Merge "Update HardwareBuffer API." into oc-dev

7 years agoMerge "Fix issue #32180780: Sync adapters inappropriately being run..." into oc-dev
TreeHugger Robot [Fri, 21 Apr 2017 19:23:06 +0000 (19:23 +0000)]
Merge "Fix issue #32180780: Sync adapters inappropriately being run..." into oc-dev

7 years agoFixed pinned stack lockscreen interaction
Wale Ogunwale [Fri, 21 Apr 2017 16:30:12 +0000 (09:30 -0700)]
Fixed pinned stack lockscreen interaction

- Use focused stack to determine of an activity can occlude the
lockscreen instead of the topmost stack. The topmost stack should be the
pinned stack which we don't want to decide if the lockscreen should be
occluded. Should be based on the stack that can contain a resume
activity.
- Make sure the remove AppWindowToken from the display if some one ever
calls removeImmediately() directly on it. This makes sure internal
states are clean-up correctly if the removal wasn't triggered from the
AM side.
- Remove some logs that end up causing confusion for testers thinking
something is broken.

Change-Id: I635f6c9a372882ff33d2e9780a1407f78cddf457
Fixes: 37208509
Test: android.server.cts.KeyguardLockedTests#testShowWhenLockedActivityAndPipActivity
Test: android.server.cts.KeyguardLockedTests#testShowWhenLockedPipActivity