OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Remove a11y web flags and associated settings" into oc-dev
Phil Weaver [Tue, 25 Apr 2017 19:25:18 +0000 (19:25 +0000)]
Merge "Remove a11y web flags and associated settings" into oc-dev

7 years agoMerge "Allow some notifications in a group to be muted" into oc-dev
Julia Reynolds [Tue, 25 Apr 2017 19:24:57 +0000 (19:24 +0000)]
Merge "Allow some notifications in a group to be muted" into oc-dev

7 years agoMerge "Fix javadoc to clearly express units and base for time value." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 19:17:24 +0000 (19:17 +0000)]
Merge "Fix javadoc to clearly express units and base for time value." into oc-dev

7 years agoMerge "Do not deliver INSTALL_SHORTCUT." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:58:53 +0000 (18:58 +0000)]
Merge "Do not deliver INSTALL_SHORTCUT." into oc-dev

7 years agoMerge "Revert "Whitelist DMAgent from bg check"" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:55:03 +0000 (18:55 +0000)]
Merge "Revert "Whitelist DMAgent from bg check"" into oc-dev

7 years agoMerge changes from topic 'experio-scoring' into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:51:47 +0000 (18:51 +0000)]
Merge changes from topic 'experio-scoring' into oc-dev

* changes:
  Remove Settings.CURATE_SAVED_OPEN_NETWORKS
  Remove request recommendation from AIDL files.
  Remove the recommendation request impl and test code.
  Deprecate the recommendation request code.

7 years agoMerge "Make new onFill/onSave methods abstract." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 18:31:07 +0000 (18:31 +0000)]
Merge "Make new onFill/onSave methods abstract." into oc-dev

7 years agoMerge "Address API Review comments" into oc-dev
Tony Wickham [Tue, 25 Apr 2017 18:16:50 +0000 (18:16 +0000)]
Merge "Address API Review comments" into oc-dev

7 years agoMerge "sensors: fix concurrent modification exception" into oc-dev
Peng Xu [Tue, 25 Apr 2017 17:51:20 +0000 (17:51 +0000)]
Merge "sensors: fix concurrent modification exception" into oc-dev

7 years agoMerge "Update fontchain to read from additional sequences" into oc-dev
Siyamed Sinir [Tue, 25 Apr 2017 17:48:24 +0000 (17:48 +0000)]
Merge "Update fontchain to read from additional sequences" into oc-dev

7 years agoAllow some notifications in a group to be muted
Julia Reynolds [Fri, 21 Apr 2017 14:29:57 +0000 (10:29 -0400)]
Allow some notifications in a group to be muted

Test: cts, runtest systemui-notification
Change-Id: I98b971c496c52f69e039a3a3101f71ac567b538a

7 years agoMerge "Fix some "leaks"" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:32:57 +0000 (17:32 +0000)]
Merge "Fix some "leaks"" into oc-dev

7 years agoUpdate fontchain to read from additional sequences
Siyamed Sinir [Thu, 20 Apr 2017 01:18:35 +0000 (18:18 -0700)]
Update fontchain to read from additional sequences

Test: make fontchain_lint

Bug: 37520224
Bug: 37169477
Change-Id: Ie01a2aca85314701654cc2397f0bcf8eafdbe608

7 years agoMerge "Remove Typeface.create" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:26:58 +0000 (17:26 +0000)]
Merge "Remove Typeface.create" into oc-dev

7 years agoMerge "Update PACKAGE_REMOVED broadcast." into oc-dev
Dmitry Dementyev [Tue, 25 Apr 2017 17:22:30 +0000 (17:22 +0000)]
Merge "Update PACKAGE_REMOVED broadcast." into oc-dev

7 years agoMerge "Allow a11y listeners to specify handlers" into oc-dev
Phil Weaver [Tue, 25 Apr 2017 17:17:58 +0000 (17:17 +0000)]
Merge "Allow a11y listeners to specify handlers" into oc-dev

7 years agoMerge "Perf: Fix RemoteViews memory leak" into oc-dev
Adrian Roos [Tue, 25 Apr 2017 17:09:19 +0000 (17:09 +0000)]
Merge "Perf: Fix RemoteViews memory leak" into oc-dev

7 years agoMerge "Add tracing for onTaskStackChanged" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 17:01:42 +0000 (17:01 +0000)]
Merge "Add tracing for onTaskStackChanged" into oc-dev

7 years agoMerge "Fix crash in plugin settings" into oc-dev
Jason Monk [Tue, 25 Apr 2017 16:56:32 +0000 (16:56 +0000)]
Merge "Fix crash in plugin settings" into oc-dev

7 years agoRemove Typeface.create
Seigo Nonaka [Thu, 20 Apr 2017 21:27:32 +0000 (14:27 -0700)]
Remove Typeface.create

Test: Manually done
Bug: 37514611
Bug: 37463988
Bug: 37281200
Change-Id: Ida704af910e0ae195b96803de506fa1e1d66c9f5

7 years agoMerge "Strings for "Use high quality audio" option in Bluetooth A2DP device settings...
Antony Sargent [Tue, 25 Apr 2017 16:30:54 +0000 (16:30 +0000)]
Merge "Strings for "Use high quality audio" option in Bluetooth A2DP device settings" into oc-dev

7 years agoMake new onFill/onSave methods abstract.
Felipe Leme [Tue, 25 Apr 2017 16:19:49 +0000 (09:19 -0700)]
Make new onFill/onSave methods abstract.

Test: CtsAutoFillServiceTestCases pass
Test: manual verification

Bug: 37563972

Change-Id: I1447bcc3ac03b3cbf71362f370abedb9f00152b9

7 years agoFix javadoc to clearly express units and base for time value.
Pavel Grafov [Tue, 25 Apr 2017 11:12:25 +0000 (12:12 +0100)]
Fix javadoc to clearly express units and base for time value.

Bug: 37622877
Test: it's just javadoc.
Change-Id: I285b20f9ff6b82279f215879797fa263b318269a

7 years agoMerge "Explicitly wait for the WebView Zygote." into oc-dev
Gustav Sennton [Tue, 25 Apr 2017 16:05:53 +0000 (16:05 +0000)]
Merge "Explicitly wait for the WebView Zygote." into oc-dev

7 years agoMerge "VolumeShaper: API change for duration" into oc-dev
Jean-Michel Trivi [Tue, 25 Apr 2017 15:36:33 +0000 (15:36 +0000)]
Merge "VolumeShaper: API change for duration" into oc-dev

7 years agoMerge "AAPT2: Add better error message when processing invalid files" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 15:26:20 +0000 (15:26 +0000)]
Merge "AAPT2: Add better error message when processing invalid files" into oc-dev

7 years agoMerge "AAPT2: Allow <path-permission> tag in <provider>" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 15:25:57 +0000 (15:25 +0000)]
Merge "AAPT2: Allow <path-permission> tag in <provider>" into oc-dev

7 years agoAdd tracing for onTaskStackChanged
Jorim Jaggi [Mon, 24 Apr 2017 16:34:55 +0000 (18:34 +0200)]
Add tracing for onTaskStackChanged

Test: Capture trace
Bug: 37550083
Change-Id: Iee302b189768419fe8a55d041ce65e861ef3c1f1

7 years agoMerge "Introduce KEYSTORE_FLAG_CRITICAL_TO_DEVICE_ENCRYPTION" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 13:42:38 +0000 (13:42 +0000)]
Merge "Introduce KEYSTORE_FLAG_CRITICAL_TO_DEVICE_ENCRYPTION" into oc-dev

7 years agoMerge "Further bulletproof NotificationInfo's public api from exceptions" into oc-dev
Geoffrey Pitsch [Tue, 25 Apr 2017 13:38:45 +0000 (13:38 +0000)]
Merge "Further bulletproof NotificationInfo's public api from exceptions" into oc-dev

7 years agoFix some "leaks"
Jorim Jaggi [Tue, 25 Apr 2017 13:08:29 +0000 (15:08 +0200)]
Fix some "leaks"

When Recents goes into the background, we should release all
references to thumbnails so things can be freed.

Test: Go Recents, go home, take heapdump
Bug: 37630958
Change-Id: I79ec994f031393cda67edd8983195e2c541f13fb

7 years agoMerge "Add param javadoc to DevicePolicyManager.setBackupServiceEnabled" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 12:11:10 +0000 (12:11 +0000)]
Merge "Add param javadoc to DevicePolicyManager.setBackupServiceEnabled" into oc-dev

7 years agoMerge "Clarify time unit for StrongAuthTimeout APIs" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 12:02:02 +0000 (12:02 +0000)]
Merge "Clarify time unit for StrongAuthTimeout APIs" into oc-dev

7 years agoMerge "Set icon frame to invisible when iconSpaceReserved is set." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 09:52:52 +0000 (09:52 +0000)]
Merge "Set icon frame to invisible when iconSpaceReserved is set." into oc-dev

7 years agoMerge "Added APIs that let AutofillService implementations set themselves as such...
TreeHugger Robot [Tue, 25 Apr 2017 08:55:57 +0000 (08:55 +0000)]
Merge "Added APIs that let AutofillService implementations set themselves as such." into oc-dev

7 years agoMerge "Allow Bluetooth CAP_SYS_NICE, set RT priority for Bluetooth HAL" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 07:38:40 +0000 (07:38 +0000)]
Merge "Allow Bluetooth CAP_SYS_NICE, set RT priority for Bluetooth HAL" into oc-dev

7 years agoMerge "Take new autofill structure for each partition" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 07:31:24 +0000 (07:31 +0000)]
Merge "Take new autofill structure for each partition" into oc-dev

7 years agoMerge "Add javadoc about APIs requiring uses-feature" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 06:42:02 +0000 (06:42 +0000)]
Merge "Add javadoc about APIs requiring uses-feature" into oc-dev

7 years agoMerge "Check for uses-feature in Companion APIs" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 06:42:02 +0000 (06:42 +0000)]
Merge "Check for uses-feature in Companion APIs" into oc-dev

7 years agoMerge "Continue to @hide freeform decor caption APIs" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 06:03:07 +0000 (06:03 +0000)]
Merge "Continue to @hide freeform decor caption APIs" into oc-dev

7 years agoMerge "Move RecentsImpl task stack listener to background." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 05:33:01 +0000 (05:33 +0000)]
Merge "Move RecentsImpl task stack listener to background." into oc-dev

7 years agoMerge "Hide deprecated APIs." into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 05:09:23 +0000 (05:09 +0000)]
Merge "Hide deprecated APIs." into oc-dev

7 years agoMerge "Remove the docstring dependency on telephony-common" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 05:05:35 +0000 (05:05 +0000)]
Merge "Remove the docstring dependency on telephony-common" into oc-dev

7 years agoMerge "Fix SettingsDrawerActivityTest on fugu." into oc-dev
Fan Zhang [Tue, 25 Apr 2017 04:48:19 +0000 (04:48 +0000)]
Merge "Fix SettingsDrawerActivityTest on fugu." into oc-dev

7 years agoMerge "fix check for provider resolution" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 04:44:51 +0000 (04:44 +0000)]
Merge "fix check for provider resolution" into oc-dev

7 years agoMerge "Remove redundant lockscreen shown check" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 04:26:27 +0000 (04:26 +0000)]
Merge "Remove redundant lockscreen shown check" into oc-dev

7 years agoMerge "Don't specify stack bounds for unsizeable home stack in dock mode" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 04:25:30 +0000 (04:25 +0000)]
Merge "Don't specify stack bounds for unsizeable home stack in dock mode" into oc-dev

7 years agoMerge "jni: Adjust for libui gralloc flags change" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 04:12:26 +0000 (04:12 +0000)]
Merge "jni: Adjust for libui gralloc flags change" into oc-dev

7 years agoContinue to @hide freeform decor caption APIs
Wale Ogunwale [Mon, 24 Apr 2017 20:40:34 +0000 (13:40 -0700)]
Continue to @hide freeform decor caption APIs

Hiding the APIs for now since we're not releasing freeform yet and it's
better not to expose them now in case we'll decide to change them later.

May you make the P release!

Test: manual
Bug: 28774476
Change-Id: Ie4b4d1bdabef9b27d2eb1442ffc9f6c46ce7dfcb

7 years agoMerge "Move child package feature behind sys prop" into oc-dev
Svetoslav Ganov [Tue, 25 Apr 2017 03:58:56 +0000 (03:58 +0000)]
Merge "Move child package feature behind sys prop" into oc-dev

7 years agoMerge "[AWARE] Add AutoCloseable interface/implementation" into oc-dev
Etan Cohen [Tue, 25 Apr 2017 03:26:01 +0000 (03:26 +0000)]
Merge "[AWARE] Add AutoCloseable interface/implementation" into oc-dev

7 years agoMerge "Move sendVisualVoicemailSms and setSmsFilterSettings to Telephony" into oc-dev
TreeHugger Robot [Tue, 25 Apr 2017 02:55:14 +0000 (02:55 +0000)]
Merge "Move sendVisualVoicemailSms and setSmsFilterSettings to Telephony" into oc-dev

7 years agojni: Adjust for libui gralloc flags change
Chris Forbes [Thu, 20 Apr 2017 18:58:45 +0000 (11:58 -0700)]
jni: Adjust for libui gralloc flags change

Change-Id: I94b95fba5e6234a07d2beba1d6f487842399367f
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube

7 years agoAdded APIs that let AutofillService implementations set themselves as such.
Felipe Leme [Sat, 22 Apr 2017 00:33:38 +0000 (17:33 -0700)]
Added APIs that let AutofillService implementations set themselves as such.

Bug: 37576671
Test: manual verification
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: I6fd61f8a2826dbf6b6fce831f3deadf6df025386

7 years agoRemove 'via Bluetooth' from the choosed dialog
Eugene Susla [Tue, 18 Apr 2017 19:43:15 +0000 (12:43 -0700)]
Remove 'via Bluetooth' from the choosed dialog

We no longer limit the items in a single chooser dialog to a devices from
single medium type.

Test: Ensure the dialog UI reflects the change.
Change-Id: Ia2342861f51f89e870f1c6a7fbebf9c1a37cac6a

7 years agoMove child package feature behind sys prop
Svet Ganov [Thu, 20 Apr 2017 06:51:33 +0000 (23:51 -0700)]
Move child package feature behind sys prop

Now one can do adb shell setprop/getptop to change
"persist.sys.child_packages_enabled" to true/false to
control whether child packages are supported.

Test: manual

bug:36107077

Change-Id: Ie60e255fd3c248905906cdd5b10adae074c0b717

7 years agoPerf: Fix RemoteViews memory leak
Adrian Roos [Mon, 24 Apr 2017 23:58:26 +0000 (16:58 -0700)]
Perf: Fix RemoteViews memory leak

Fixes an issue where the context wrapper created in
RemoteViews leaks the RemoteViews instance through the
implicit this pointer of anonymous inner classes.

Fixed by replacing with a static inner class.

Bug: 37630958
Test: m droid (this change is not testable)
Change-Id: Ia149b3d91f134f0c308200b46880e7f87542a338

7 years agoUpdate PACKAGE_REMOVED broadcast.
Dmitry Dementyev [Tue, 18 Apr 2017 20:43:31 +0000 (13:43 -0700)]
Update PACKAGE_REMOVED broadcast.

1) Include KEY_ACCOUNT_NAME and KEY_ACCOUNT_TYPE.
2) Only send the broadcast to packages which were able to see the
account.

Test: manual, APCT.
Bug:37280078

(cherry picked from commit cbbc99f76224cedb6d680c3cd7f0afc9cc912202)

Change-Id: I3c323e545628199903313096f93654687fa8f22b

7 years agoTake new autofill structure for each partition
Philip P. Moltmann [Fri, 21 Apr 2017 23:33:52 +0000 (16:33 -0700)]
Take new autofill structure for each partition

Bug: 36481649
Test: CtsAutofillServiceTestCases (now with a test that has an autofill
      session over two full screen fragments)
Change-Id: I55f2f6203f3bd5a7082b4ce90500d2c16a260c7d

7 years agoMerge "AudioService: make PlaybackActivityMonitor less log-chatty" into oc-dev
Jean-Michel Trivi [Mon, 24 Apr 2017 23:39:41 +0000 (23:39 +0000)]
Merge "AudioService: make PlaybackActivityMonitor less log-chatty" into oc-dev

7 years agoMerge changes I7d2b7e50,I784406a6 into oc-dev
TreeHugger Robot [Mon, 24 Apr 2017 23:26:01 +0000 (23:26 +0000)]
Merge changes I7d2b7e50,I784406a6 into oc-dev

* changes:
  AAPT2: Allow truncating of package names
  AAPT2: Make BinaryResourceParser more lenient

7 years agoMerge "Minor fixes on Autofill Framework:" into oc-dev
Felipe Leme [Mon, 24 Apr 2017 23:10:48 +0000 (23:10 +0000)]
Merge "Minor fixes on Autofill Framework:" into oc-dev

7 years agoMinor fixes on Autofill Framework:
Felipe Leme [Fri, 21 Apr 2017 15:56:04 +0000 (08:56 -0700)]
Minor fixes on Autofill Framework:

- Removed default implementation of onProvideAutofillVirtualStructure() that
  was using accessibility API (it's useless because without the View calling
  AutofillManager.notifyViewEntered(), it would never be triggered).
- Fixed obsolete TODOs.
- Removed obsolete service class name constant.
- Removed unused debug constant.

Fixes: 37078783
Fixes: 33197203
Bug: 33802548
Bug: 35956626

Test: CtsAutoFillServiceTestCases pass
Merged-In: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183
Change-Id: I834d34b8af8bf0d781dc7e0ffcd6e600bfa2d183

7 years agoMerge "[AWARE] Remove match style API" into oc-dev
Etan Cohen [Mon, 24 Apr 2017 22:59:17 +0000 (22:59 +0000)]
Merge "[AWARE] Remove match style API" into oc-dev

7 years agoVolumeShaper: API change for duration
Jean-Michel Trivi [Fri, 21 Apr 2017 01:13:34 +0000 (18:13 -0700)]
VolumeShaper: API change for duration

Time in milliseconds is a long.
Update API to not specify the unit in the setter/getter for
  the VolumeShaper duration.

Test: cts-tradefed run cts CtsMediaTestCases -t android.media.cts.VolumeShaperTest

Change-Id: If5f95cc43418d831105cbef2c43b6e9cfcf9082b

7 years agoMerge "Fix re-enabling alert window appop after leaving VR mode." into oc-dev
Ruben Brunk [Mon, 24 Apr 2017 22:49:07 +0000 (22:49 +0000)]
Merge "Fix re-enabling alert window appop after leaving VR mode." into oc-dev

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 agoAddress API Review comments
Tony Wickham [Fri, 21 Apr 2017 18:47:18 +0000 (11:47 -0700)]
Address API Review comments

- throw NullPointerException if the package name is null; there’s
  already a method with the specified null behavior.
- Return value of this method should be @NonNull - return an empty
  list. Document this.

Test: Unit test on AppWidgetServiceImplTest
$ runtest --path=services/tests/servicestests/src/com/android/server/appwidget/AppWidgetServiceImplTest.java

Bug: 37544056
Change-Id: I047a8e7c4e519ef7c5deddaca0d1ad931dc91343

7 years agoMove RecentsImpl task stack listener to background.
Winson Chung [Mon, 24 Apr 2017 19:23:47 +0000 (12:23 -0700)]
Move RecentsImpl task stack listener to background.

- In RecentsTaskLoader, synchronize on anything that might use the
  thumbnail cache
- In RecentsLoadPlan, remove synchronization when preloading/executing
  since that is done in the loader now
- In RecentsImpl, synchronize on anything that might use the dummy stack
  view

Bug: 37550083
Test: Launch Overview and some other tasks, ensure everything still works

Change-Id: I36d04566ebb04296f67a3233730c1dc5bc1569f4

7 years agoAAPT2: Add better error message when processing invalid files
Adam Lesinski [Mon, 24 Apr 2017 22:09:32 +0000 (15:09 -0700)]
AAPT2: Add better error message when processing invalid files

Instead of showing a failed mmap error, show a better error when a file
being compiled is a directory or other unsupported file type.

Bug: 37626838
Test: manual
Change-Id: Ib9acf5f48ab5da37e79411c6a9f37c51f00f925f

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 agoAAPT2: Allow <path-permission> tag in <provider>
Adam Lesinski [Mon, 24 Apr 2017 20:33:47 +0000 (13:33 -0700)]
AAPT2: Allow <path-permission> tag in <provider>

Fix a typo where the wrong tag name was expected under <provider>
in AndroidManifest.xml.

Bug: 37627250
Test: manual
Change-Id: I45afd09b4ff25feb320f7991e16c4172e20dd417

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 agoAudioService: make PlaybackActivityMonitor less log-chatty
Jean-Michel Trivi [Mon, 24 Apr 2017 18:59:29 +0000 (11:59 -0700)]
AudioService: make PlaybackActivityMonitor less log-chatty

Do not log error messages on release errors.
Do not try to terminate VolumeShaper when releasing a player.
Use coding convention for "private" and "static" keywords.

Test: make
Change-Id: Ic1ff376c1ce4750708c368756f7b4a8a2c05c50c

7 years agoHide deprecated APIs.
Felipe Leme [Fri, 21 Apr 2017 23:25:47 +0000 (16:25 -0700)]
Hide deprecated APIs.

Test: CtsAutoFillServiceTestCases pass
Bug: 37563972

Change-Id: Ia5f33c5624b7a6be3c152e126c99800914d23cbd

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 agoMove sendVisualVoicemailSms and setSmsFilterSettings to Telephony
Ta-wei Yen [Thu, 20 Apr 2017 19:41:17 +0000 (12:41 -0700)]
Move sendVisualVoicemailSms and setSmsFilterSettings to Telephony

Bug: 35766990
Change-Id: Ife9df5baa9b511cd8e9c043cb92236b7697582c1
Fixes: 35766990
Test: CtsTelephonyTestCases VisualVoicemailServiceTest

7 years agoAdd javadoc about APIs requiring uses-feature
Eugene Susla [Mon, 24 Apr 2017 20:26:12 +0000 (13:26 -0700)]
Add javadoc about APIs requiring uses-feature

Bug: 37629514
Test: Ensure no compilation error; proofread
Change-Id: Ia250c95da1edb20017bc13a4504ead092eb24fff

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 agoRemove redundant lockscreen shown check
lei.xa.liu [Tue, 20 Sep 2016 12:37:25 +0000 (21:37 +0900)]
Remove redundant lockscreen shown check

Symptom:
USB dialog is displayed incompletely and cannot be scrolled under
lockscreen in multi-window mode.

Root cause:
When lockscreen is shown, the bounds returned by getLaunchBounds()
is null, updateOverrideConfiguration() will finally consider the task
as fullscreen, USB dialog is under lockscreen, not over lockscreen,
as a result, the height measured in ViewRootImpl's performTraversals()
will be incorrect.

Solution:
Remove the lockscreen shown check from getLaunchBounds() which is
originally added to fix app over lockscreen being cropped by docked
stack, and the following commit also fix the behavior of app over
lockscreen.

 https://android.googlesource.com/platform/frameworks/base/+/99732940809058fae558618399323c36b8a0e856

So that above check should be redundant code.

Bug: 31256862
Fixes: 36163229
Test: manual
Change-Id: Iac483f625d2f4b35388290eb78a97a4bd3bd0fe8

7 years agoClarify time unit for StrongAuthTimeout APIs
Rubin Xu [Mon, 24 Apr 2017 19:26:30 +0000 (20:26 +0100)]
Clarify time unit for StrongAuthTimeout APIs

Bug: 37624569
Test: make -j32 docs
Change-Id: I9bdf191697e698fcc38b279c471a8ce6566927c8

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 agoAdd param javadoc to DevicePolicyManager.setBackupServiceEnabled
Rubin Xu [Mon, 24 Apr 2017 19:17:16 +0000 (20:17 +0100)]
Add param javadoc to DevicePolicyManager.setBackupServiceEnabled

Bug: 37624668
Test: make -j32 docs
Change-Id: Ie3457f4f5eba63365ed7920431037759475fa30b

7 years agoFix re-enabling alert window appop after leaving VR mode.
Ruben Brunk [Mon, 24 Apr 2017 19:07:17 +0000 (12:07 -0700)]
Fix re-enabling alert window appop after leaving VR mode.

Bug: 37526753
Test: Check that system alert windows appear after leaving VR mode.

Change-Id: I2942b2e2bd30308752367963b7ae896462811d2f

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 agoIntroduce KEYSTORE_FLAG_CRITICAL_TO_DEVICE_ENCRYPTION
Rubin Xu [Fri, 21 Apr 2017 18:21:42 +0000 (19:21 +0100)]
Introduce KEYSTORE_FLAG_CRITICAL_TO_DEVICE_ENCRYPTION

This flag is used by system server to mark keys used during the
synthetic password auth flow. keys marked with this flag will not
be super encrypted because super encryption requires knowledge of
the synthetic password, causing a chicken-and-egg problem.

Bug: 35849499
Bug: 34600579
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTest#testResetPasswordWithToken

Change-Id: I474822f2e026f24ce6f6de1aa58b5012922f7b13

7 years agoAllow Bluetooth CAP_SYS_NICE, set RT priority for Bluetooth HAL
Philip Cuadra [Fri, 24 Mar 2017 21:09:19 +0000 (14:09 -0700)]
Allow Bluetooth CAP_SYS_NICE, set RT priority for Bluetooth HAL

Bluetooth needs CAP_SYS_NICE in order to make important threads use RT
scheduling policy.

SchedulingPolicyService should set RT priority for the Bluetooth HAL.

Bug 37518404

Test: Play Bluetooth audio, confirm RT priority in systrace
Change-Id: I0ee55a2f2cfd80cbb066d9c034bb85d8d85ba470

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 agoCheck for uses-feature in Companion APIs
Eugene Susla [Fri, 21 Apr 2017 21:12:00 +0000 (14:12 -0700)]
Check for uses-feature in Companion APIs

Fixes: 37629514
Test: Invoke API from app without uses-feature
Ensure an exception with an appropriate message is thrown
Invoke API from app with uses-feature
Ensure no exception

Change-Id: I53665732264ea2de2b4c8c251b1f00bf3a256dad

7 years agofix check for provider resolution
Todd Kennedy [Mon, 24 Apr 2017 18:07:17 +0000 (11:07 -0700)]
fix check for provider resolution

Change-Id: I504e16463fbd58fb97a65ca74ffa38697e715652
Fixes: 37547666
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest#testEphemeralQuery

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