309042 Commits

Author SHA1 Message Date
Bill Yi
a1b35d339f Import translations. DO NOT MERGE
Change-Id: I69afa2c75c5334244598a13ebd17217ec0dcb66e
Auto-generated-cl: translation import
2017-02-28 01:32:37 -08:00
Bill Yi
4eabb5dff8 Import translations. DO NOT MERGE
Change-Id: I585aa8798b0ebebe1b6290dfa18783259a0f413b
Auto-generated-cl: translation import
2017-02-28 00:44:48 -08:00
Bill Yi
2a830815a1 Import translations. DO NOT MERGE
Change-Id: Ie8189227b7840495e79f5b3bbefac9e3eda81d6f
Auto-generated-cl: translation import
2017-02-28 00:20:21 -08:00
Jaewan Kim
158cd7b1f2 Merge "Add callback for AVRCP 1.6 support" 2017-02-28 06:19:49 +00:00
Amin Shaikh
21496f6ee1 Setting for RecommendedNetworkEvaluator cache TTL
Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
Merged-In: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
2017-02-27 21:49:05 -08:00
Chong Zhang
c3013b5bda Merge "MediaCas: move *.aidl files from frameworks/base to frameworks/av" 2017-02-28 05:02:23 +00:00
TreeHugger Robot
47d663fcb8 Merge "Document future removal or move of fonts.xml" 2017-02-28 04:52:26 +00:00
Jaewan Kim
bd16f457a1 Add callback for AVRCP 1.6 support
Bug: 33828042
Test: Build
Change-Id: Iaf5cecfa38065cfeed096929952559d7cb2e248b
2017-02-28 04:29:38 +00:00
Jaewan Kim
2584ba6bf4 Merge "Send long-press of KEYCODE_HEADSETHOOK to the media key listener" 2017-02-28 04:28:46 +00:00
TreeHugger Robot
ee3aa6ceab Merge "Treat Telephony as legacy app for now." 2017-02-28 04:18:18 +00:00
TreeHugger Robot
f561734e9c Merge "Fix crash in onRestoreInstanceState" 2017-02-28 03:15:33 +00:00
David Stevens
d057cf8e21 Only kill processes on default display density change
This means pre-N apps launched on secondary displays might not work
properly after a density change, but multiwindow (let alone
multidisplay) isn't something truly supported by those apps.

Test: manual
Change-Id: I80e18c6db19faa716ec1d653caef410c67327546
2017-02-27 19:15:14 -08:00
TreeHugger Robot
bf5bc5fd14 Merge "Setting for RecommendedNetworkEvaluator cache TTL" 2017-02-28 02:52:10 +00:00
Jaewan Kim
98003d36dd Send long-press of KEYCODE_HEADSETHOOK to the media key listener
For the key events with the code KEYCODE_HEADSETHOOK, the
MediaSessionService always starts the voice input for long-presses
regardless of the media key listener, and only short-presses can be sent
to the media key listener.

This CL sends all media key events to the media key listener first
if the listener is set. If the key event isn't consumed, short-presses
will be sent to the media session and long-presses will start the voice
input.

Bug: 35348856
Test: Manual test (Install the OnMediaKeyListener test app and confirm
that the app can consume the media key long-press)
Change-Id: I82f8e5f355efe16867e6f4345c46470c690e1f80
2017-02-28 02:51:47 +00:00
Yuichi Araki
2650af949f Merge "Recycle TypedArrays in Fade and TransitionInflater" 2017-02-28 02:41:38 +00:00
TreeHugger Robot
df0b8da82e Merge "Add private consumer and producer flags to AHardwareBuffer." 2017-02-28 02:29:42 +00:00
TreeHugger Robot
423d3b90fd Merge "Fix issue #34327404: AppOpsManager.stopWatchingMode(callback)..." 2017-02-28 02:13:10 +00:00
Jim Miller
7e1cb55230 Don't crash if client token is null.
Test: verify that fingerprint clients still work and that
null client no longer crashes systemui.

Fixes bug 35806157

Change-Id: Icda7fb538caf50ba44297fe8e47c35aed1275280
2017-02-27 18:09:48 -08:00
Jean-Michel Trivi
34a6663d08 Merge "Audio focus API with AudioAttributes and more options" 2017-02-28 01:57:15 +00:00
Jaewan Kim
5b30c1bc34 Merge "MediaSessionService: Synchronize isGlobalPriorityActive()" 2017-02-28 01:51:56 +00:00
Vladislav Kaznacheev
41ac866961 More accurate cascading submenu position
The current submenu positioning logic is based on the assumption
that the parent menu was displayed at the exact offset which was
passed to the framework. The actual parent menu position
could have been adjusted to fit the screen.

Bug: 35767083

Test: manual
Change-Id: Ib72eb7808ebf894c526d2c44c6116ee72542fd03
2017-02-27 17:28:49 -08:00
Jaewan Kim
5125501099 MediaSessionService: Synchronize isGlobalPriorityActive()
Test: Manual test (Press the headset button while the phone is ringing)
Change-Id: I682d4d07a1e238892afe8b03b2b824bb40345ab8
2017-02-28 10:25:24 +09:00
Amin Shaikh
d3c8193093 Setting for RecommendedNetworkEvaluator cache TTL
Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
2017-02-27 17:03:10 -08:00
Chris Tate
fbe8553860 Merge "A little more logging for receiver reregistration" 2017-02-28 00:57:30 +00:00
Dianne Hackborn
68d7655558 Fix issue #34327404: AppOpsManager.stopWatchingMode(callback)...
...does not remove all references to callback

Keep the callbacks in a set, so each callback can only appear once.

Test: none currently, not sure how to do a CTS test for this.
(But verifying the system boots and runs.)

Change-Id: I01c8ea2a662e09ad0a0cdf713f0ea7f175182e82
2017-02-27 16:27:17 -08:00
Chad Brubaker
2f2053b939 Prevent packages besides android defining ephemeral permissions
Bug:34980926
Test: manual
Change-Id: I608bc746b4b212c02ba62433fbb3f8141b5e67e9
2017-02-27 16:26:27 -08:00
Chong Zhang
c1e701d03f MediaCas: move *.aidl files from frameworks/base to frameworks/av
PDK builds can't reference frameworks/base from frameworks/av.

bug: 22804304
Change-Id: Ibcda0b6a56e36233ad37c2d5d2b03d5c58674010
2017-02-27 16:09:23 -08:00
Jean-Michel Trivi
3db31acf93 Audio focus API with AudioAttributes and more options
Wrap all options of an audio focus request into a new
 class, AudioFocus request, and the corresponding
 methods in AudioManager to request and abandon focus
 with an AudioFocusRequest instance.
New options include handler for focus change listener,
 delayed focus, and option for specifying pause behavior
 on duckable transient loss of focus.

Test: cts-tradefed run cts -m CtsMediaTestCases -t android.media.cts.AudioFocusTest
Bug: 30258418

Change-Id: I99151270d0d9c59595db3f5c91480c7af2d1fd71
2017-02-27 15:55:57 -08:00
Alan Viverette
7485a9bbb3 Setting focusableInTouchMode clears FOCUSABLE_AUTO
Bug: 35726873
Test: View_FocusHandlingTest#testHasFocusable
Change-Id: I10ec94684846dc2280ba0bd7922d9304bf8a95db
2017-02-27 23:34:25 +00:00
Jeff Sharkey
32ce5be843 Merge "Consider disabled authorities for notifs." 2017-02-27 23:30:23 +00:00
Jeff Sharkey
2afae796de Treat Telephony as legacy app for now.
Telephony stack is relying on non-existant ContentProviders for
sending Uri change notifications; it'll eventually need to move over
to using real ContentProviders, but apply this band-aid for now.

Test: builds, boots, SMS send/receive works
Bug: 35792675
Change-Id: Ice66278f876f1c754852300da7eb045a7c778d14
2017-02-27 15:58:27 -07:00
TreeHugger Robot
a120091195 Merge "Fix PiP being out of bounds when launched into forced orientation" 2017-02-27 22:40:11 +00:00
Phil Weaver
2fe5752635 Merge "Document null labels for standard a11y actions" 2017-02-27 22:35:02 +00:00
TreeHugger Robot
c33b943f25 Merge "deprecate replayClips" 2017-02-27 22:22:16 +00:00
Alan Viverette
8a8e33dbb0 Merge "Always handle hover events if the View is already hovered" 2017-02-27 22:16:55 +00:00
Christopher Tate
58e1fd557e A little more logging for receiver reregistration
Bug 34983231
Test: n/a

Change-Id: I44d3c9f0b010dd3bfc66e58bcfa7730262dbfd89
2017-02-27 13:58:04 -08:00
Jeff Sharkey
2d0c0e35a6 Consider disabled authorities for notifs.
They're still valid providers, even when they're disabled.

Test: builds, boots, disabled authorities considered
Bug: 35791633
Change-Id: Ie1c40ae92a72b5b9f6869ea3dca19f2b74f80bae
2017-02-27 14:38:37 -07:00
Craig Donner
3027095761 Add private consumer and producer flags to AHardwareBuffer.
Bug: 34050596
Test: cts-tradefed run cts -m CtsNativeHardwareTestCases
New test cases cover the new functionality.

Change-Id: I9285e53b8e608778ec2f080cb5eda4596215224f
2017-02-27 13:37:32 -08:00
Brad Ebinger
eb422ead0c Merge "Adds read/modify permission checks to ImsService" am: 3e64003641 am: 175213e1ee
am: 055adc457a

Change-Id: I41289905222c0bc83fe1d6b075427b79afe9b0db
2017-02-27 21:34:30 +00:00
Brad Ebinger
055adc457a Merge "Adds read/modify permission checks to ImsService" am: 3e64003641
am: 175213e1ee

Change-Id: Ia55e5751b222e3e95780e16821e832f760b2d7c5
2017-02-27 21:30:19 +00:00
Brad Ebinger
175213e1ee Merge "Adds read/modify permission checks to ImsService"
am: 3e64003641

Change-Id: Ia4cb2c789a13658de86c0a36648a09e7abceb621
2017-02-27 21:26:50 +00:00
Brad Ebinger
3e64003641 Merge "Adds read/modify permission checks to ImsService" 2017-02-27 21:19:18 +00:00
Youhan Wang
d632305e37 Merge "Add Resource for TelephonyMonitor debug switch." 2017-02-27 21:14:53 +00:00
Dianne Hackborn
59774e209c Merge "Add new job scheduler constraints for "battery not low"." 2017-02-27 21:11:29 +00:00
Peng Xu
2e2c35febf Merge "Added implementation of shared memory NDK API" 2017-02-27 20:58:23 +00:00
TreeHugger Robot
321ea18167 Merge "media: Add more detail for the use of metadata track." 2017-02-27 20:40:17 +00:00
TreeHugger Robot
6ff8367dc2 Merge "AccessPoint - Add Builder; Add unit tests for compareTo()" 2017-02-27 20:39:36 +00:00
TreeHugger Robot
ffffb47569 Merge "Change internal intents from android.* to com.android.internal.*" 2017-02-27 20:34:21 +00:00
TreeHugger Robot
6087ea2b9d Merge "Provide some compatibility story for devs in the past" 2017-02-27 20:28:58 +00:00
TreeHugger Robot
bdaded344f Merge "Don't log privapp-permissions violations for updated apps" 2017-02-27 20:25:53 +00:00