OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Clear calling uid before changing whitelist" into oc-dev
Amith Yamasani [Tue, 2 May 2017 17:20:31 +0000 (17:20 +0000)]
Merge "Clear calling uid before changing whitelist" into oc-dev

7 years agoMerge "Fix app transition logging when switching quickly" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 17:14:57 +0000 (17:14 +0000)]
Merge "Fix app transition logging when switching quickly" into oc-dev

7 years agoMerge "Don't crash during app uninstall." into oc-dev
Daniel Nishi [Tue, 2 May 2017 17:03:51 +0000 (17:03 +0000)]
Merge "Don't crash during app uninstall." into oc-dev

7 years agoMerge "Add "Paste as plain text" in TextView's toolbar." into oc-dev
TreeHugger Robot [Tue, 2 May 2017 16:21:10 +0000 (16:21 +0000)]
Merge "Add "Paste as plain text" in TextView's toolbar." into oc-dev

7 years agoMerge "DO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService...
Android Build Merger (Role) [Tue, 2 May 2017 16:00:52 +0000 (16:00 +0000)]
Merge "DO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to 15s am: a686345759 am: a399705286  -s ours" into oc-dev

7 years agoDO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to...
Erik Wolsheimer [Tue, 2 May 2017 15:59:43 +0000 (15:59 +0000)]
DO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to 15s am: a686345759
am: a399705286  -s ours

Change-Id: I654fc19afef7f11d894590d287cde3650b8252af

7 years agoMerge "SurfaceTexture: setConsumerIsProtected" into oc-dev
Jiwen Cai [Tue, 2 May 2017 15:59:21 +0000 (15:59 +0000)]
Merge "SurfaceTexture: setConsumerIsProtected" into oc-dev

7 years agoDO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to 15s
Erik Wolsheimer [Tue, 2 May 2017 15:54:40 +0000 (15:54 +0000)]
DO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to 15s
am: a686345759

Change-Id: I0598c6210dbf0d0447c31112419a2fee829037be

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 15:49:24 +0000 (15:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 15:47:33 +0000 (15:47 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Fix submenu position when showing with Gravity.END" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 15:40:37 +0000 (15:40 +0000)]
Merge "Fix submenu position when showing with Gravity.END" into oc-dev

7 years agoMerge "Add back the throwIfParentInstance checking in getAffiliationIds" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 15:38:44 +0000 (15:38 +0000)]
Merge "Add back the throwIfParentInstance checking in getAffiliationIds" into oc-dev

7 years agoFix app transition logging when switching quickly
Jorim Jaggi [Fri, 28 Apr 2017 17:06:24 +0000 (19:06 +0200)]
Fix app transition logging when switching quickly

If an app was set to invisible before the transition started,
which happens when quickly open an app and then closing again
before the animation is starting (only possible if starting
window is slightly delayed), we never receive onWindowsDrawn so we
need to cancel the transition in this case.

Also fixes an issue where the wrong activity was reported as
starting to us in case reusedActivity != null but we'll only reuse
it for the task and not the actual activity.

Test: Open Calendar, press home immediately, open another app, make
sure all logged events and times are correct.
Fixes: 37538546

Change-Id: I5819bd97964ab2dd5cb40b2f4e3bc5a9ac348152

7 years agoMerge "Split out whether frame callback and tick is scheduled" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 14:58:15 +0000 (14:58 +0000)]
Merge "Split out whether frame callback and tick is scheduled" into oc-dev

7 years agoAdd "Paste as plain text" in TextView's toolbar.
Abodunrinwa Toki [Fri, 28 Apr 2017 21:14:13 +0000 (22:14 +0100)]
Add "Paste as plain text" in TextView's toolbar.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Bug: 36179795
Change-Id: Iee0502678adcfb9de58c107b9247a528718b2c40

7 years agoMerge "Don't send configuration that app doesn't support to it." into oc-dev
TreeHugger Robot [Tue, 2 May 2017 13:58:55 +0000 (13:58 +0000)]
Merge "Don't send configuration that app doesn't support to it." into oc-dev

7 years agoAdd back the throwIfParentInstance checking in getAffiliationIds
Tony Mak [Tue, 2 May 2017 12:50:18 +0000 (13:50 +0100)]
Add back the throwIfParentInstance checking in getAffiliationIds

Fix: 37887947

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.ParentProfileTest#testParentProfileApiDisabled

Change-Id: I05944c7a2447998d3ea948195fb25b09ab9735fc

7 years agoSplit out whether frame callback and tick is scheduled
Jorim Jaggi [Fri, 28 Apr 2017 14:39:19 +0000 (16:39 +0200)]
Split out whether frame callback and tick is scheduled

Since the animation/gesture for screen zoom is running at
vsync-app, calling WMS.scheduleAnimation will schedule only
at the next frame. However, in the next frame, only the frame
callback is handled but not the tick yet, however
mAnimationScheduled was still true. Thus, the request to schedule
another frame callback is ignored, and then the things get
updated only every 2nd frame.

Fix this by splitting the information whether the frame callback
is scheduled or the actual tick.

Test: Use accessibility screen zoom, make sure gestures are
smooth.
Fixes: 37476440

Change-Id: I2301fab5bf3f3b896d4aa131fb041b89572fa3a7

7 years agoImport translations. DO NOT MERGE
The Android Open Source Project [Tue, 2 May 2017 07:05:25 +0000 (00:05 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Allow null setup activity for TV input" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 06:56:48 +0000 (06:56 +0000)]
Merge "Allow null setup activity for TV input" into oc-dev

7 years agoMerge "Add a method to start the captive portal login app." into oc-dev
Lorenzo Colitti [Tue, 2 May 2017 04:38:50 +0000 (04:38 +0000)]
Merge "Add a method to start the captive portal login app." into oc-dev

7 years agoMerge "Refactor accessibility button support detection" into oc-dev
Casey Burkhardt [Tue, 2 May 2017 04:05:26 +0000 (04:05 +0000)]
Merge "Refactor accessibility button support detection" into oc-dev

7 years agoMerge "TIF: change documentation wording for onSetSurface()" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 03:26:29 +0000 (03:26 +0000)]
Merge "TIF: change documentation wording for onSetSurface()" into oc-dev

7 years agoMerge "Adding the AOSP header." into oc-dev
TreeHugger Robot [Tue, 2 May 2017 02:18:50 +0000 (02:18 +0000)]
Merge "Adding the AOSP header." into oc-dev

7 years agoMerge "Don't relaunch activity in TaskRecord.size if caller deferResume" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:55:15 +0000 (01:55 +0000)]
Merge "Don't relaunch activity in TaskRecord.size if caller deferResume" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:48:15 +0000 (01:48 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "hotspot2: hide Release 2 APIs" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:44:41 +0000 (01:44 +0000)]
Merge "hotspot2: hide Release 2 APIs" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:38:26 +0000 (01:38 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Make auth fill UI size sane size" into oc-dev
TreeHugger Robot [Tue, 2 May 2017 01:33:24 +0000 (01:33 +0000)]
Merge "Make auth fill UI size sane size" into oc-dev

7 years agoImport translations. DO NOT MERGE
The Android Open Source Project [Tue, 2 May 2017 01:07:07 +0000 (18:07 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Fix cropping in docked stack." into oc-dev
Rob Carr [Tue, 2 May 2017 01:03:44 +0000 (01:03 +0000)]
Merge "Fix cropping in docked stack." into oc-dev

7 years agoMerge "Fix rotation animation selection." into oc-dev
Rob Carr [Tue, 2 May 2017 01:01:29 +0000 (01:01 +0000)]
Merge "Fix rotation animation selection." into oc-dev

7 years agoMerge "Removed deprecated setAuthentication() method that didn't take ids." into...
TreeHugger Robot [Tue, 2 May 2017 00:53:30 +0000 (00:53 +0000)]
Merge "Removed deprecated setAuthentication() method that didn't take ids." into oc-dev

7 years agoDon't send configuration that app doesn't support to it.
Wale Ogunwale [Mon, 10 Apr 2017 13:35:59 +0000 (06:35 -0700)]
Don't send configuration that app doesn't support to it.

If an app doesn't support the current device orientation configuration,
then don't run the app in that configuration. Instead have the run in
the last configuration that it supports.
This mostly fixes transient cases where there is a short window that the
device is switching configuration and the app could be sent the single
incorrect configuration that is quickly corrected

Test: Will be added soon.
Fixes: 36897968
Change-Id: I030a04200fdf33c4c1938bda980ea8c14aa1c736

7 years agoMerge "AudioService: send AUDIO_BECOMING_NOISY intent when disconnecting USB" into...
TreeHugger Robot [Tue, 2 May 2017 00:45:39 +0000 (00:45 +0000)]
Merge "AudioService: send AUDIO_BECOMING_NOISY intent when disconnecting USB" into oc-dev

7 years agoMerge "Video badging levels: @Deprecate and @remove" into oc-dev
Jeff Sharkey [Tue, 2 May 2017 00:44:47 +0000 (00:44 +0000)]
Merge "Video badging levels: @Deprecate and @remove" into oc-dev

7 years agoAdding the AOSP header.
Jeremy Joslin [Tue, 25 Apr 2017 22:43:13 +0000 (15:43 -0700)]
Adding the AOSP header.

Test: make
Bug: 37683421
Change-Id: I0c656b91f3533b87a80c34e7461000e75ee1da8e

7 years agoSurfaceTexture: setConsumerIsProtected
Jiwen 'Steve' Cai [Sat, 22 Apr 2017 02:05:01 +0000 (19:05 -0700)]
SurfaceTexture: setConsumerIsProtected

When in a protected context, SurfaceTexture should call
setConsumerIsProtected Instead of setting consumer usage bits to
indicate the producer that the consumer can handle protected content.

Bug: 35726763
Test: videoplayer-nodrm-protected.apk and videoplayer-drm-protected.apk
both works.

Change-Id: I0028c040e727691e1e42226c0b66de075fe5515d

7 years agoImport translations. DO NOT MERGE
The Android Open Source Project [Mon, 1 May 2017 23:47:11 +0000 (16:47 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Hide FragmentContainer#instantiate for API 26" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:30:08 +0000 (23:30 +0000)]
Merge "Hide FragmentContainer#instantiate for API 26" into oc-dev

7 years agohotspot2: hide Release 2 APIs
Peter Qiu [Mon, 1 May 2017 22:59:53 +0000 (15:59 -0700)]
hotspot2: hide Release 2 APIs

Bug: 37514629
Test: builds
Change-Id: Idcd684cf9846791cb02ae0f74ec35ff4850666f1

7 years agoMerge "Change protection level of companion permissions" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:22:06 +0000 (23:22 +0000)]
Merge "Change protection level of companion permissions" into oc-dev

7 years agoMerge "Add @TestApi annotation to AdaptiveIconDrawable" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:18:37 +0000 (23:18 +0000)]
Merge "Add @TestApi annotation to AdaptiveIconDrawable" into oc-dev

7 years agoMake auth fill UI size sane size
Svetoslav Ganov [Mon, 1 May 2017 23:11:14 +0000 (16:11 -0700)]
Make auth fill UI size sane size

Now the width and height are capped to 0.9 of the screen
dimensions. The height is also adjusted as needed by the
popup window positioning logic.

Test: manual

bug:36660292
Change-Id: I54d032f4e9b9b8fae6f98846c470a1455babcb68

7 years agoMerge "Rename to follow API council guidance." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:15:54 +0000 (23:15 +0000)]
Merge "Rename to follow API council guidance." into oc-dev

7 years agoMerge "AOD: Increase shelf icon size while dark" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 23:11:49 +0000 (23:11 +0000)]
Merge "AOD: Increase shelf icon size while dark" into oc-dev

7 years agoImport translations. DO NOT MERGE
The Android Open Source Project [Mon, 1 May 2017 23:07:16 +0000 (16:07 -0700)]
Import translations. DO NOT MERGE

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

7 years agoRefactor accessibility button support detection
Casey Burkhardt [Fri, 28 Apr 2017 02:30:15 +0000 (19:30 -0700)]
Refactor accessibility button support detection

- Moves logic to detect devices capable of supporting the
  accessibility button into AccessibilityManager from
  SettingsLib to avoid issues with resource shifting in the
  SUW binary

Bug: 37650567
Test: Existing Robolectric / Manual
Merged-In: Ibb2aaa3c2f79570df768cfa796fa890988ef82cc
Change-Id: I83bbecdf7836ae0de32ce7d39155ac0c111a8f15

7 years agoMerge "AudioService: more AUDIO_BECOMING_NOISY intent fixes" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:52:13 +0000 (22:52 +0000)]
Merge "AudioService: more AUDIO_BECOMING_NOISY intent fixes" into oc-dev

7 years agoMerge "Addess API council comments" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:48:58 +0000 (22:48 +0000)]
Merge "Addess API council comments" into oc-dev

7 years agoVideo badging levels: @Deprecate and @remove
Joe LaPenna [Mon, 1 May 2017 16:46:01 +0000 (09:46 -0700)]
Video badging levels: @Deprecate and @remove

Video based badging is not going out in O. Hide video-terminology
constants.

Bug: 37687077
Test: make update-api;
Change-Id: Ibd3a732be11bcd0f6b1077943a34b77f7c971ee3

7 years agoMerge changes from topic 'LOHSapi' into oc-dev
Jeff Sharkey [Mon, 1 May 2017 22:35:01 +0000 (22:35 +0000)]
Merge changes from topic 'LOHSapi' into oc-dev

* changes:
  WifiManager: expose base LOHS apis
  WifiManager: update API for LOHS

7 years agoMerge "Do not unsnooze canceled notifications." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:23:42 +0000 (22:23 +0000)]
Merge "Do not unsnooze canceled notifications." into oc-dev

7 years agoFix rotation animation selection.
Robert Carr [Mon, 1 May 2017 22:22:22 +0000 (15:22 -0700)]
Fix rotation animation selection.

The default activity specified value for rotation animation
should be unset, not ROTATE, so that it will not override
window specified versions.

Bug: 37671120
Test: Rotate camera 180 degrees...expect crossfade or jumpcut depending on APK version but never rotate animation.
Change-Id: I6acbf32b3de0e2848565cc6cb6fb62f625053634

7 years agoMerge changes from topic 'aia_settings_overlay' into oc-dev
Chad Brubaker [Mon, 1 May 2017 22:12:47 +0000 (22:12 +0000)]
Merge changes from topic 'aia_settings_overlay' into oc-dev

* changes:
  Add overlay for Instant Apps Settings whitelists
  Revert "Allow Instant Apps to read Settings defined by apps"

7 years agoMerge "Set stack bounds to null instead of empty for fullscreen" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:11:34 +0000 (22:11 +0000)]
Merge "Set stack bounds to null instead of empty for fullscreen" into oc-dev

7 years agoMerge "Marking deprecated recommendation request code as @removed." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 22:05:23 +0000 (22:05 +0000)]
Merge "Marking deprecated recommendation request code as @removed." into oc-dev

7 years agoMerge "Add android.os.VintfRuntimeInfo" into oc-dev
Yifan Hong [Mon, 1 May 2017 22:02:15 +0000 (22:02 +0000)]
Merge "Add android.os.VintfRuntimeInfo" into oc-dev

7 years agoDO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to 15s
Erik Wolsheimer [Mon, 1 May 2017 21:58:31 +0000 (14:58 -0700)]
DO NOT MERGE Adjust WALLPAPER_RECONNECT_TIMEOUT_MS in WallpaperManagerService to 15s

Bug: 37773684
Change-Id: Ifeeb26a164c7bab59561721d10a4915ed6d9dcf3

7 years agoMerge "hotspot2: update method name for timestamp related APIs" into oc-dev
Jeff Sharkey [Mon, 1 May 2017 21:57:28 +0000 (21:57 +0000)]
Merge "hotspot2: update method name for timestamp related APIs" into oc-dev

7 years agoMerge "Make PrivateStorageInfo have a public constructor." into oc-dev
Daniel Nishi [Mon, 1 May 2017 21:40:17 +0000 (21:40 +0000)]
Merge "Make PrivateStorageInfo have a public constructor." into oc-dev

7 years agoClear calling uid before changing whitelist
Amith Yamasani [Mon, 1 May 2017 21:29:19 +0000 (14:29 -0700)]
Clear calling uid before changing whitelist

Avoids security exception for UPDATE_DEVICE_STATS

Bug: 37627773
Test: manual
Change-Id: I18617d068e7db0813c11b23b281d283908664eae

7 years agoHide FragmentContainer#instantiate for API 26
Adam Powell [Mon, 1 May 2017 21:23:03 +0000 (14:23 -0700)]
Hide FragmentContainer#instantiate for API 26

Bug 37638617

Change-Id: I065cd31d6ce987155669f72eff0e0d6d8a9430ab

Test: none; hiding API only

7 years agoChange protection level of companion permissions
Eugene Susla [Mon, 1 May 2017 21:25:52 +0000 (14:25 -0700)]
Change protection level of companion permissions

Fixes: 37721270
Test: Ensure co build errors
Change-Id: Ide6ce7c83f466ef6886b2aad0228176ae84314b2

7 years agoAllow null setup activity for TV input
Chulwoo Lee [Mon, 1 May 2017 21:10:25 +0000 (14:10 -0700)]
Allow null setup activity for TV input

Test: cts-tradefed run cts -m CtsTvTestCases -t android.media.tv.cts.TvInputInfoTest
Bug: 37863603
Change-Id: I62f9927f94534c0564a3c52f8c7b266a347399e1

7 years agoRename to follow API council guidance.
Jeff Sharkey [Mon, 1 May 2017 21:09:11 +0000 (15:09 -0600)]
Rename to follow API council guidance.

Test: builds, boots
Bug: 37422404
Change-Id: Idcec897e775f2613805a86209615e389b63bd78d

7 years agoAddess API council comments
Svetoslav Ganov [Mon, 1 May 2017 20:41:56 +0000 (13:41 -0700)]
Addess API council comments

Test: manual

bug:37322491

Change-Id: I2017e667c5452c7ef7c56ec19c594e685700b33a

7 years agoAll taps under max double tap timeout are quick taps
Matthew Ng [Sat, 29 Apr 2017 00:33:22 +0000 (17:33 -0700)]
All taps under max double tap timeout are quick taps

When tapping rapidly on the overview button on a recents grid device
(like tablets), users might tap very quickly that would have triggered a
elasped time under the min double tap time (40ms) which would cause the
button to not be a quick tap. Removing the check allows all taps under
the max double tap timeout to be a quick tap. Then quickly tapping the
overview button would not confuse alt-tab with resume same task
functionality.

Test: manual
Change-Id: I9161fd5b68c299dc794e538a4fd9021ae98c7e94
Fixes: 36886408

7 years agoDon't relaunch activity in TaskRecord.size if caller deferResume
Wale Ogunwale [Mon, 1 May 2017 14:41:08 +0000 (07:41 -0700)]
Don't relaunch activity in TaskRecord.size if caller deferResume

If the caller of TaskRecord.resize() requested resume to be deferred,
then we also don't want to ensure configuration on the top activity in
the task as that can lead to a re-launch. In this case the caller will
handle things.

Test: manual
Change-Id: I247c4409d4bd19c8ae801e1720aa415d55395201
Fixes: 37767027

7 years agoTIF: change documentation wording for onSetSurface()
Conrad Chen [Mon, 1 May 2017 20:14:35 +0000 (13:14 -0700)]
TIF: change documentation wording for onSetSurface()

Test: documentaion fix
Bug: 31494507
Change-Id: Ib25d45fb3c7e973aa09a5f91ced11abefea4c5ba

7 years agoAdd android.os.VintfRuntimeInfo
Yifan Hong [Wed, 26 Apr 2017 18:38:01 +0000 (11:38 -0700)]
Add android.os.VintfRuntimeInfo

This is the Java API for ::android::vintf::RuntimeInfo.
This will be used by CTS for device info report purposes.

Bug: 28656227
Test: cts-tradefed run cts -m CtsEdiHostTestCases --skip-preconditions
Change-Id: Id87c95a17e77d7ec1794a6f850de97edf9ae892d

7 years agoAudioService: send AUDIO_BECOMING_NOISY intent when disconnecting USB
Eric Laurent [Sat, 29 Apr 2017 01:11:50 +0000 (18:11 -0700)]
AudioService: send AUDIO_BECOMING_NOISY intent when disconnecting USB

Bug: 37752052
Test: Verify music stops when removing USB headset
Change-Id: I6efd9e0532ea0569cfcab941a93e32395845201f

7 years agoAudioService: more AUDIO_BECOMING_NOISY intent fixes
Eric Laurent [Sat, 29 Apr 2017 01:00:04 +0000 (18:00 -0700)]
AudioService: more AUDIO_BECOMING_NOISY intent fixes

Fix more race conditions
Ignore condition on removed device being actually used for
music when in call.

Bug: 37687852
Test: Verify AUDIO_BECOMING_NOISY intent is sent in more corner cases
Change-Id: I024aa3a4a68d84ac620289720caf3a32fb2985b1

7 years agoMerge "Audio focus: fix mapping of old requestAudioFocus to AudioFocusRequest" into...
Jean-Michel Trivi [Mon, 1 May 2017 19:50:38 +0000 (19:50 +0000)]
Merge "Audio focus: fix mapping of old requestAudioFocus to AudioFocusRequest" into oc-dev

7 years agoMerge "Fix accessibility button CTS test" into oc-dev
Casey Burkhardt [Mon, 1 May 2017 19:49:08 +0000 (19:49 +0000)]
Merge "Fix accessibility button CTS test" into oc-dev

7 years agoWifiManager: expose base LOHS apis
Rebecca Silberstein [Mon, 1 May 2017 19:45:45 +0000 (12:45 -0700)]
WifiManager: expose base LOHS apis

This CL exposes a minimal set of APIs to start LocalOnlyHotspot.  This
includes the call to start the hotspot along with the objects necessary
to get updates and unregister the hotspot request.

Bug: 31466854
Bug: 37073685
Test: make update-api
Test: make
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I5e9a6a842c0b9233ebf99317f61e0b36192d5be7

7 years agoAudio focus: fix mapping of old requestAudioFocus to AudioFocusRequest
Jean-Michel Trivi [Mon, 1 May 2017 19:33:40 +0000 (12:33 -0700)]
Audio focus: fix mapping of old requestAudioFocus to AudioFocusRequest

When translating a focus request from the N- API to AudioFocusRequest,
  do not do null checks for listener or handler, those are only
  for the AudioFocusRequest.Builder.

Test: use app built for N- and request focus, no crash
Bug 37855238

Change-Id: I675b3144e913ab674fe27f9f65ee7a7bea24a72c

7 years agoMerge "Move the last user save from onCleanupUser to onStopUser" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 19:31:16 +0000 (19:31 +0000)]
Merge "Move the last user save from onCleanupUser to onStopUser" into oc-dev

7 years agoMerge "Fix stupid bug." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 19:30:33 +0000 (19:30 +0000)]
Merge "Fix stupid bug." into oc-dev

7 years agoMerge "Fixed that snooze options were animating" into oc-dev
Selim Cinek [Mon, 1 May 2017 18:43:35 +0000 (18:43 +0000)]
Merge "Fixed that snooze options were animating" into oc-dev

7 years agoWifiManager: update API for LOHS
Rebecca Silberstein [Sun, 30 Apr 2017 21:05:00 +0000 (14:05 -0700)]
WifiManager: update API for LOHS

Add a return code for disallowed tethering for the user.  Also updated
call to startLocalOnlyHotspot in WifiServiceImpl to return a code
instead of a config.  This allows us to return different failure modes
to the application instead of assuming an incompatible mode error.

Also updated method name to retrieve the wifi config.

Bug: 37073685
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Iaa442f7062145dbfbdc8e26ae5479d14307addf8

7 years agoMerge "Updates based on API council guidance." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 18:36:18 +0000 (18:36 +0000)]
Merge "Updates based on API council guidance." into oc-dev

7 years agoMerge "Use newest scrap view in ListView" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 18:31:35 +0000 (18:31 +0000)]
Merge "Use newest scrap view in ListView" into oc-dev

7 years agoMerge "Rename restartOnConfigChanges to recreateOnConfigChanges." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 18:22:33 +0000 (18:22 +0000)]
Merge "Rename restartOnConfigChanges to recreateOnConfigChanges." into oc-dev

7 years agoRemoved deprecated setAuthentication() method that didn't take ids.
Felipe Leme [Mon, 1 May 2017 16:35:33 +0000 (09:35 -0700)]
Removed deprecated setAuthentication() method that didn't take ids.

Such method would cause the AutofillUi to show on all fields, now it only
shows in the fields the service is interested on.

This doesn't solve FillResponse auth on multiple partition, but that will
come soon...

Bug: 37424539
Test: removed hack from testFillResponseAuthJustOneField()
Test: CtsAutoFillServiceTestCases pass

Change-Id: Id97dddfb9fc1630cd6bac96b9bae9d4a2986dd6d

7 years agoMerge "Add parameter for accessing channels from 3rd-party TV apps." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 18:20:08 +0000 (18:20 +0000)]
Merge "Add parameter for accessing channels from 3rd-party TV apps." into oc-dev

7 years agoMerge "Ensure that the action views are always updated." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:56:08 +0000 (17:56 +0000)]
Merge "Ensure that the action views are always updated." into oc-dev

7 years agoFix stupid bug.
Dianne Hackborn [Mon, 1 May 2017 17:54:07 +0000 (10:54 -0700)]
Fix stupid bug.

Test: manual

Change-Id: I1e3bd86eb3e000111721bad82bebdfb491c2e5de

7 years agoMerge "Change String to CharSequence in #loadSummary." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:52:22 +0000 (17:52 +0000)]
Merge "Change String to CharSequence in #loadSummary." into oc-dev

7 years agoMerge "Fix issue with double tapping PiP" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:50:37 +0000 (17:50 +0000)]
Merge "Fix issue with double tapping PiP" into oc-dev

7 years agoMerge "Removing unnecessary asset." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:48:24 +0000 (17:48 +0000)]
Merge "Removing unnecessary asset." into oc-dev

7 years agoMerge "Increase max system_server hwbinder threadpool to 5." into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:47:00 +0000 (17:47 +0000)]
Merge "Increase max system_server hwbinder threadpool to 5." into oc-dev

7 years agoMarking deprecated recommendation request code as @removed.
Jeremy Joslin [Mon, 1 May 2017 17:02:25 +0000 (10:02 -0700)]
Marking deprecated recommendation request code as @removed.

Test: adb shell am instrument -e class android.net.NetworkRecommendationProviderTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: Built & ran
Bug: 37357264
Change-Id: I6d55fbad87b11c99e7ddac07cfaa82efeee33187

7 years agoMerge "Move ColorSpace#Renderer tests to APCT" into oc-dev
TreeHugger Robot [Mon, 1 May 2017 17:23:50 +0000 (17:23 +0000)]
Merge "Move ColorSpace#Renderer tests to APCT" into oc-dev

7 years agoMerge "Change MANAGE_OWN_CALLS permission to be a "normal" permission." into oc-dev
Jeff Sharkey [Mon, 1 May 2017 17:19:26 +0000 (17:19 +0000)]
Merge "Change MANAGE_OWN_CALLS permission to be a "normal" permission." into oc-dev

7 years agoMove the last user save from onCleanupUser to onStopUser
Makoto Onuki [Fri, 28 Apr 2017 19:24:16 +0000 (12:24 -0700)]
Move the last user save from onCleanupUser to onStopUser

Bug: 37780857

Test: manual test with work profile

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests
Change-Id: I8b053c6a55df374a89ab85d76b9d36abf639f649

7 years agoMerge "Added dialog to notify user of thermal shutdown" into oc-dev
Salvador Martinez [Mon, 1 May 2017 16:45:25 +0000 (16:45 +0000)]
Merge "Added dialog to notify user of thermal shutdown" into oc-dev

7 years agoMerge "Removing ACTION_CLEAR_PACKAGE intent" into oc-dev
Matthew Snider [Mon, 1 May 2017 16:42:19 +0000 (16:42 +0000)]
Merge "Removing ACTION_CLEAR_PACKAGE intent" into oc-dev

7 years agohotspot2: update method name for timestamp related APIs
Peter Qiu [Mon, 1 May 2017 16:41:14 +0000 (09:41 -0700)]
hotspot2: update method name for timestamp related APIs

Bug: 37514629
Test: build
Change-Id: Iadd8b7a9ea98bc01f796a261293f87173ba1d52f

7 years agoMerge "Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED, ACTION_DEFAULT_SUBSCRIPT...
Jeff Sharkey [Mon, 1 May 2017 16:05:26 +0000 (16:05 +0000)]
Merge "Move intents ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED, ACTION_DEFAULT_SUBSCRIPTION_CHANGED and EXTRA_SUBSCRIPTION_INDEX from Intent class to SubscriptionManager class." into oc-dev