OSDN Git Service

android-x86/frameworks-base.git
7 years agoAOD: prevent clicking shelf when dark
Adrian Roos [Wed, 29 Mar 2017 00:54:05 +0000 (17:54 -0700)]
AOD: prevent clicking shelf when dark

Fixes: 35718464
Test: Enable AOD, try clicking on shelf in AOD, make sure it's not clickable.
Change-Id: Iede88d1e0ab394f0db2acaac6a1ad8baaeef15f1

7 years agoMerge "Remove code for seamlessly rotating SurfaceView's." into oc-dev
Rob Carr [Thu, 30 Mar 2017 20:10:23 +0000 (20:10 +0000)]
Merge "Remove code for seamlessly rotating SurfaceView's." into oc-dev

7 years agoMerge "Tweaking PiP for accessibility." into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 19:56:35 +0000 (19:56 +0000)]
Merge "Tweaking PiP for accessibility." into oc-dev

7 years agoMerge "Update ENSURE_VERIFY_APPS javadoc" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 19:31:18 +0000 (19:31 +0000)]
Merge "Update ENSURE_VERIFY_APPS javadoc" into oc-dev

7 years agoMerge "TextClassificationManager API updates." into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 19:17:18 +0000 (19:17 +0000)]
Merge "TextClassificationManager API updates." into oc-dev

7 years agoMerge "Hide TextClassifier.EntityType from the public API." into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 19:15:12 +0000 (19:15 +0000)]
Merge "Hide TextClassifier.EntityType from the public API." into oc-dev

7 years agoMerge "Do not hold locks when calling getAccounts" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 19:02:34 +0000 (19:02 +0000)]
Merge "Do not hold locks when calling getAccounts" into oc-dev

7 years agoMerge "Merge "Report the temperature during an OTA update" am: 47c7e7f41a am: 022682a...
Tianjie Xu [Thu, 30 Mar 2017 18:28:05 +0000 (18:28 +0000)]
Merge "Merge "Report the temperature during an OTA update" am: 47c7e7f41a am: 022682a721 am: 998c554463" into oc-dev

7 years agoMerge "BatteryStats: Clamp temperature to 0" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 18:22:39 +0000 (18:22 +0000)]
Merge "BatteryStats: Clamp temperature to 0" into oc-dev

7 years agoMerge "Change layer stack when moving displays." into oc-dev
Rob Carr [Thu, 30 Mar 2017 18:05:16 +0000 (18:05 +0000)]
Merge "Change layer stack when moving displays." into oc-dev

7 years agoMerge "Make Notification.EXTRA_ALLOW_DURING_SETUP system API" into oc-dev
Maurice Lam [Thu, 30 Mar 2017 18:04:19 +0000 (18:04 +0000)]
Merge "Make Notification.EXTRA_ALLOW_DURING_SETUP system API" into oc-dev

7 years agoMerge "Fix fonts following 455f1bfc05" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 17:39:21 +0000 (17:39 +0000)]
Merge "Fix fonts following 455f1bfc05" into oc-dev

7 years agoTweaking PiP for accessibility.
Winson Chung [Thu, 30 Mar 2017 17:26:48 +0000 (10:26 -0700)]
Tweaking PiP for accessibility.

- Disabling timeout when the PiP menu is invoked via an accessibility event
- Increasing default duration before menu times out and collapses
- Fixing issue where temporary bundle data was being clobbered

Bug: 36103023
Test: Launch PiP activity with accessibility, ensure menu does not time out
Change-Id: I4beda18ef2fb2e2b638b0ff6bac9a71ed1986639

7 years agoMerge "Simplified autofill() methods by returning void instead of boolean." into...
TreeHugger Robot [Thu, 30 Mar 2017 17:21:26 +0000 (17:21 +0000)]
Merge "Simplified autofill() methods by returning void instead of boolean." into oc-dev

7 years agoMerge "Track isolated process owners" into oc-dev
Chad Brubaker [Thu, 30 Mar 2017 17:03:46 +0000 (17:03 +0000)]
Merge "Track isolated process owners" into oc-dev

7 years agoDo not hold locks when calling getAccounts
Fyodor Kupolov [Thu, 30 Mar 2017 17:00:49 +0000 (10:00 -0700)]
Do not hold locks when calling getAccounts

Not only it may cause a deadlock, calling authenticator while holding
the lock is also error-prone.

Test: manual
Bug: 36770176
Change-Id: I6871ea88643fc3c178214685c038b2238329e881

7 years agoMerge "Allow ToolbarActionBar to pass-through unhandled keyShortcuts" into oc-dev
Evan Rosky [Thu, 30 Mar 2017 16:46:22 +0000 (16:46 +0000)]
Merge "Allow ToolbarActionBar to pass-through unhandled keyShortcuts" into oc-dev

7 years agoMerge "Switch libplatformproto to sharedlib" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 16:42:31 +0000 (16:42 +0000)]
Merge "Switch libplatformproto to sharedlib" into oc-dev

7 years agoMerge "Drop REASON_NON_SYSTEM_LIBRARY." into oc-dev
Nicolas Geoffray [Thu, 30 Mar 2017 16:32:35 +0000 (16:32 +0000)]
Merge "Drop REASON_NON_SYSTEM_LIBRARY." into oc-dev

7 years agoMerge "Fix getting wrong instance when restoring non-config" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 16:27:36 +0000 (16:27 +0000)]
Merge "Fix getting wrong instance when restoring non-config" into oc-dev

7 years agoMerge "Wait to unlock before changing notification importance" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 16:13:59 +0000 (16:13 +0000)]
Merge "Wait to unlock before changing notification importance" into oc-dev

7 years agoHide TextClassifier.EntityType from the public API.
Abodunrinwa Toki [Wed, 29 Mar 2017 20:51:45 +0000 (21:51 +0100)]
Hide TextClassifier.EntityType from the public API.

Test: current.txt and friends updated correctly.
Bug: 35959173
Change-Id: I74011020a4e509bad98b94738d2e929fc068d9ae

7 years agoUpdate ENSURE_VERIFY_APPS javadoc
Rubin Xu [Thu, 16 Mar 2017 18:02:57 +0000 (18:02 +0000)]
Update ENSURE_VERIFY_APPS javadoc

Make it clear that now this restriction applies across the whole device,
and is settable by profile owner.

Bug: 31000521
Test: None; just javadoc update
Change-Id: If82d8f4167cf1b77d6e10554f1d96b2d3a2a54a0

7 years agoFix fonts following 455f1bfc05
Diego Perez [Wed, 29 Mar 2017 11:29:58 +0000 (12:29 +0100)]
Fix fonts following 455f1bfc05

Test: Fixes broken tests
Change-Id: I62d001c6d0ed84fe1d1d9865b1027be0e1cad8b4
(cherry picked from commit de5a95d42c9e5f4fbcf0064ae8eaa33ab5747637)

7 years agoMerge "Show user running state in dumpsys user." into oc-dev
Makoto Onuki [Thu, 30 Mar 2017 15:18:25 +0000 (15:18 +0000)]
Merge "Show user running state in dumpsys user." into oc-dev

7 years agoWait to unlock before changing notification importance
Geoffrey Pitsch [Wed, 29 Mar 2017 17:39:10 +0000 (13:39 -0400)]
Wait to unlock before changing notification importance

Test: runtest systemui
Change-Id: I66614de96e0a5c725ac6f6e7b76f64b39326ba6b
Fixes: 36264464

7 years agoDrop REASON_NON_SYSTEM_LIBRARY.
Nicolas Geoffray [Sun, 26 Mar 2017 13:09:04 +0000 (14:09 +0100)]
Drop REASON_NON_SYSTEM_LIBRARY.

Dexopt them with the same "mode" as the apk we are
going to dexopt. Because we treat them as shared, this
means they are only going to be fully compiled once an app
that has it in its <uses-library> gets compiled.

bug:33799337
Test: m -j32 && boot
Change-Id: Ic93fbcf45be6b9cf31ad3a3eb498f9fbbefeb288
(cherry picked from commit 90978b4159dd1394c0643ae8171d24668fbc27a4)

7 years agoMerge "Drop REASON_CORE_APP." into oc-dev
Nicolas Geoffray [Thu, 30 Mar 2017 13:54:29 +0000 (13:54 +0000)]
Merge "Drop REASON_CORE_APP." into oc-dev

7 years agoMerge "Handle the case where no session exists" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 13:26:55 +0000 (13:26 +0000)]
Merge "Handle the case where no session exists" into oc-dev

7 years agoTextClassificationManager API updates.
Abodunrinwa Toki [Wed, 29 Mar 2017 21:41:57 +0000 (22:41 +0100)]
TextClassificationManager API updates.

- Changes getDefaultTextClassifier to getTextClassifier
- Adds a setTextClassifier API

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

Change-Id: I24e86272cf58bf6864505bee3b06978c1c0d46e5

7 years agoMerge "Make layoutlib more lenient with recoverable errors" into oc-dev
Diego Perez [Thu, 30 Mar 2017 13:12:34 +0000 (13:12 +0000)]
Merge "Make layoutlib more lenient with recoverable errors" into oc-dev

7 years agoDrop REASON_CORE_APP.
Nicolas Geoffray [Fri, 24 Mar 2017 15:13:38 +0000 (15:13 +0000)]
Drop REASON_CORE_APP.

After ensuring apps used by system server are speed compiled
on /system, we don't need a special reason anymore.

bug:36532541
bug:33799337

Test: m -j32 && boot
Change-Id: I1fb894f0f5b796cb9d59ed01a4afb2709c0f5496
(cherry picked from commit b70e4bfe0776a3446ccfddd5a10b1ff155f60e34)

7 years agoMerge "Correctly blame ANR on process using another process token" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 11:25:03 +0000 (11:25 +0000)]
Merge "Correctly blame ANR on process using another process token" into oc-dev

7 years agoHandle the case where no session exists
Diego Perez [Mon, 27 Mar 2017 14:14:45 +0000 (15:14 +0100)]
Handle the case where no session exists

In some cases, if an error happens, no session will exist in
BridgeRenderSession.

Test: Added small regression test
Change-Id: Ic9be381767626766395c65044542c197ed7649e7

7 years agoMake layoutlib more lenient with recoverable errors
Diego Perez [Wed, 29 Mar 2017 16:20:01 +0000 (17:20 +0100)]
Make layoutlib more lenient with recoverable errors

In many cases, throwing an exception will stop the inflation or
rendering of a layout. Sometimes, we could recover from some of the
failures and render a layout that is "usable".
I've done a first pass trying to follow the following rules:
 - Try simple recoveries by choosing sensible defaults. Not trying
 complex recoveries.
 - Only recover if the exception is not part of the class behaviour.
 Avoided removing declared exceptions or exceptions that are expected by
 the framework.
 - I've kept assertions in place so, in most cases, the behaviour will
 be almost identical to the previous one with assertions enabled.

Test: Checked with existing tests
Change-Id: I0001fdd3c808cf405c4eb8d734b9bbe63493e05c

7 years agoMerge "Fix flaky tests in NetworkPolicyManagerServiceTest." into oc-dev
Sudheer Shanka [Thu, 30 Mar 2017 07:38:05 +0000 (07:38 +0000)]
Merge "Fix flaky tests in NetworkPolicyManagerServiceTest." into oc-dev

7 years agoFix flaky tests in NetworkPolicyManagerServiceTest.
Sudheer Shanka [Thu, 30 Mar 2017 03:46:30 +0000 (20:46 -0700)]
Fix flaky tests in NetworkPolicyManagerServiceTest.

Test: runtest -c com.android.server.NetworkPolicyManagerServiceTest frameworks-services
Change-Id: I0a6f0d11e3922bfeb2bd3784f23e10ae45e5e40c

7 years agoMerge "Cherry-pick: Remove implementation of bssid hotlist" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 02:58:35 +0000 (02:58 +0000)]
Merge "Cherry-pick: Remove implementation of bssid hotlist" into oc-dev

7 years agoBatteryStats: Clamp temperature to 0
Adam Lesinski [Thu, 30 Mar 2017 02:29:00 +0000 (19:29 -0700)]
BatteryStats: Clamp temperature to 0

Temperature is encoded without the sign-bit, meaning
negative temperatures cause an underflow and show up
in the history as large values. We do not expect to
deal with negative temperatures for debugging/diagnostics
so just clamp the temperature to 0.

Bug: 33270828
Test: adb shell dumpsys battery set temp -10 && adb shell dumpsys batterystats --history
Change-Id: I8a92f770e4a90333eade1bb38f21d2d87bb00430

7 years agoMerge "Rename ACTION_VOICEMAIL_SMS_RECEIVED" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 01:51:51 +0000 (01:51 +0000)]
Merge "Rename ACTION_VOICEMAIL_SMS_RECEIVED" into oc-dev

7 years agoMerge "Convert bitmaps to sRGB/scRGB when they have a color profile" into oc-dev
Romain Guy [Thu, 30 Mar 2017 01:42:25 +0000 (01:42 +0000)]
Merge "Convert bitmaps to sRGB/scRGB when they have a color profile" into oc-dev

7 years agoSwitch libplatformproto to sharedlib
John Reck [Thu, 30 Mar 2017 01:41:27 +0000 (18:41 -0700)]
Switch libplatformproto to sharedlib

libplatformprotos is really really unhappy if it gets
loaded twice into the same process which trivially happens
if it's a static library. Switch it to a shared library
instead to fix this.

Change-Id: I90297d076d0739bab683fbd9607d7fc0884a002d
Fixes: 36272398
Test: Ran hwui_unit_test, didn't crash

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 01:30:06 +0000 (01:30 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Make public getFragments() and onGetLayoutInflater() methods" into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 01:26:09 +0000 (01:26 +0000)]
Merge "Make public getFragments() and onGetLayoutInflater() methods" into oc-dev

7 years agoMerge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()" into...
TreeHugger Robot [Thu, 30 Mar 2017 01:17:20 +0000 (01:17 +0000)]
Merge "Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()" into oc-dev

7 years agoSimplified autofill() methods by returning void instead of boolean.
Felipe Leme [Thu, 30 Mar 2017 00:47:58 +0000 (17:47 -0700)]
Simplified autofill() methods by returning void instead of boolean.

Test: CtsAutoFillServiceTestCases pass

Change-Id: Ic94e6686e291fed60ef6715bd160f9b568bf0ea6

7 years agoMerge "Expose initial focus feature flag for testing" into oc-dev
Evan Rosky [Thu, 30 Mar 2017 01:02:22 +0000 (01:02 +0000)]
Merge "Expose initial focus feature flag for testing" into oc-dev

7 years agoMerge "Update injectSmsPdu documentation." into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 00:35:57 +0000 (00:35 +0000)]
Merge "Update injectSmsPdu documentation." into oc-dev

7 years agoMerge "AAPT2: Parse an ID encoded as a map" into oc-dev
Adam Lesinski [Thu, 30 Mar 2017 00:30:58 +0000 (00:30 +0000)]
Merge "AAPT2: Parse an ID encoded as a map" into oc-dev

7 years agoMerge "AAPT2: Allow arbitrary entry names with aapt2 optimize" into oc-dev
Adam Lesinski [Thu, 30 Mar 2017 00:30:28 +0000 (00:30 +0000)]
Merge "AAPT2: Allow arbitrary entry names with aapt2 optimize" into oc-dev

7 years agoMerge "Allow cluster navigation to jump into touchscreenBlocksFocus" into oc-dev
Evan Rosky [Thu, 30 Mar 2017 00:22:36 +0000 (00:22 +0000)]
Merge "Allow cluster navigation to jump into touchscreenBlocksFocus" into oc-dev

7 years agoChange layer stack when moving displays.
Robert Carr [Wed, 29 Mar 2017 22:52:23 +0000 (15:52 -0700)]
Change layer stack when moving displays.

Previously we only change layer stack when creating a new surface.
This isn't enough for moving existing activities between displays.

Test: Try moving existing activity to new display.
Bug: 36002411
Change-Id: I536f26cba43fc4fd1b60c8b504355076e2fb162e

7 years agoCherry-pick: Remove implementation of bssid hotlist
Michael Plass [Mon, 27 Mar 2017 18:11:47 +0000 (11:11 -0700)]
Cherry-pick: Remove implementation of bssid hotlist

Test: Relevant unit tests pass
Bug: 30147676
Change-Id: I268907cc13ef21c0ba547722fe7c866ee4cdae5a

7 years agoMerge "Correct ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS" into oc-dev
Robert Greenwalt [Wed, 29 Mar 2017 23:53:17 +0000 (23:53 +0000)]
Merge "Correct ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS" into oc-dev

7 years agoShow user running state in dumpsys user.
Makoto Onuki [Wed, 29 Mar 2017 23:52:03 +0000 (16:52 -0700)]
Show user running state in dumpsys user.

Test: Manual test with: watch adb shell dumpsys user
Change-Id: I38f36331b95e2602b09d60bee75a65f62cf85a86

7 years agoAllow ToolbarActionBar to pass-through unhandled keyShortcuts
Evan Rosky [Fri, 17 Feb 2017 21:11:53 +0000 (13:11 -0800)]
Allow ToolbarActionBar to pass-through unhandled keyShortcuts

It was consuming all keyShortcuts which broke system hotkeys
like shift+tab.

In order to prevent the decor/phonewindow from creating menus,
this creates a dummy view in onCreatePanelView.

This also includes a change to Activity to not send KEYCODE_TAB
keystrokes to the defaulthandler. This was preventing keyboard
navigation from working on any activity that had a default
search fallback.

Bug: 32482282
Bug: 18021345
Test: Added a CTS test (ToolbarTest#testKeyShortcuts) for toolbar
      keyShortcuts. Verified Tab-navigation works in Play Store.
Change-Id: I5c732a2b21219157818bed49576debd20d5a8178
(cherry picked from commit b22faf524e9339fc1f17b8c2d8a59e2a02054cb1)

7 years agoTrack isolated process owners
Chad Brubaker [Wed, 29 Mar 2017 21:05:52 +0000 (14:05 -0700)]
Track isolated process owners

This fixes two issues:
1) Isolated processes spawned by Instant Apps do not get full access to
package lists as those spawned by normal apps do
2) Package manager considers the isolated process the same app as the
Instant App that created it when determining what packages are exposed.

Bug: 34087569
Test: Webview works
Test: Isolated apps cannot access package info of other apps via start
an isolated service.

Change-Id: Ib26280b87fb46dc66f1f25ee6209427a095342b0

7 years agoMerge "Expose ACCESSIBILITY_CAPTIONING_* to Instant Apps" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 23:25:54 +0000 (23:25 +0000)]
Merge "Expose ACCESSIBILITY_CAPTIONING_* to Instant Apps" into oc-dev

7 years agoMerge "Mention <intent> can't have string resources." into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 23:24:38 +0000 (23:24 +0000)]
Merge "Mention <intent> can't have string resources." into oc-dev

7 years agoMake Notification.EXTRA_ALLOW_DURING_SETUP system API
Maurice Lam [Wed, 29 Mar 2017 22:42:38 +0000 (15:42 -0700)]
Make Notification.EXTRA_ALLOW_DURING_SETUP system API

Test: Manually tested setup wizard notifications continue to work
Bug: 34705874
Change-Id: If2bff20a74caeac5041d97f1656138676c93f554

7 years agoMerge "Whitelist ManagedProvisioning from bg check" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 23:12:38 +0000 (23:12 +0000)]
Merge "Whitelist ManagedProvisioning from bg check" into oc-dev

7 years agoMerge "Report the temperature during an OTA update" am: 47c7e7f41a am: 022682a721
Tianjie Xu [Wed, 29 Mar 2017 18:34:14 +0000 (18:34 +0000)]
Merge "Report the temperature during an OTA update" am: 47c7e7f41a am: 022682a721
am: 998c554463

Change-Id: I12a0f4c5fb768bdaa3a4baa4fa5bd7964b80110e
(cherry picked from commit d580a85b20a57984a3cb77685f5a10af8e2f2506)

7 years agoAdd new internal API: enableOptionalCodecs()/disableOptionalCodecs()
Pavlin Radoslavov [Fri, 24 Feb 2017 18:19:14 +0000 (10:19 -0800)]
Add new internal API: enableOptionalCodecs()/disableOptionalCodecs()

This API can be used to enable the optional codecs, or disable them
and use only the mandatory SBC.
Internally, it is implemented by raising the SBC priority to
highest (so SBC will be used/selected), or reducing the SBC priority
to its default value (lowest).

Test: A2DP streaming and enabling/disabling/selecting optional codecs
Bug: 35873828
Change-Id: Ia82036ac33590a3a402b1f5a36102264d47a9029
(cherry picked from commit 61075105ca95a2389c23733bf72b5d49b0da4b28)

7 years agoMerge "Fix battery warning color lookup" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 22:50:28 +0000 (22:50 +0000)]
Merge "Fix battery warning color lookup" into oc-dev

7 years agoMerge "wifi: add test for tracking Passpoint AP on devices with Passpoint disabled...
TreeHugger Robot [Wed, 29 Mar 2017 22:49:59 +0000 (22:49 +0000)]
Merge "wifi: add test for tracking Passpoint AP on devices with Passpoint disabled" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 29 Mar 2017 22:41:14 +0000 (15:41 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Add HidlSupport.java for utility methods for HIDL." into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 22:20:28 +0000 (22:20 +0000)]
Merge "Add HidlSupport.java for utility methods for HIDL." into oc-dev

7 years agoAllow cluster navigation to jump into touchscreenBlocksFocus
Evan Rosky [Wed, 15 Feb 2017 21:26:51 +0000 (13:26 -0800)]
Allow cluster navigation to jump into touchscreenBlocksFocus

Adds an exception to touchscreenBlocksFocus ViewGroups which
are also keyboardNavigationClusters. The behavior we want is
that cluster navigation can jump into touchscreenBlocksFocus
clusters but normal keyboard navigation can't. Once focus is
in a touchscreenBlocksFocus cluster; however, we allow focus
navigation to move freely within that cluster. It remains in
that cluster until a subsequent cluster navigation brings it
back out.

Adds back the touchscreenBlocksFocus attributes to Toolbar
and actionbar so that they behave like they did before.

Bug: 34363323
Test: Added CTS test. Verified desired behavior in a test app

Change-Id: I555bf5570b16a57f0d4c8a020ae509a1e1b33910
(cherry picked from commit aee802f3bc3da699315a7040728e5483483099ff)

7 years agoFix getting wrong instance when restoring non-config
George Mount [Wed, 29 Mar 2017 21:56:05 +0000 (14:56 -0700)]
Fix getting wrong instance when restoring non-config

Bug 36679897

When restoring the non-config fragments, the wrong index was
being used to lookup the fragment fromt the list of active
fragment states.

Test: Ic862fd9670408dab09ab5817cdec21e91aef001b
Change-Id: Ic5a8e723041949e6d01d4f5ddc6d54e491143b59

7 years agoExpose initial focus feature flag for testing
Evan Rosky [Fri, 17 Mar 2017 21:08:55 +0000 (14:08 -0700)]
Expose initial focus feature flag for testing

Bug: 34520588
Test: View_FocusHandlingTest
Change-Id: I7a20a6e9c57fc61bd2562307f4e7f8dee1979a40
(cherry picked from commit 9a0ea38671f1721b940e0a1ba94226d1ebae397d)

7 years agoMake public getFragments() and onGetLayoutInflater() methods
George Mount [Wed, 29 Mar 2017 14:13:03 +0000 (14:13 +0000)]
Make public getFragments() and onGetLayoutInflater() methods

Bug 34703669
Test: I846ef668e3dd7d664cfb56d2b9400467ba9b79f4
Change-Id: Ie202960ada86b25e964f98a639b5f5740c8fdb79

7 years agoMerge "Move displaying mag bounds into surface transation" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 21:25:02 +0000 (21:25 +0000)]
Merge "Move displaying mag bounds into surface transation" into oc-dev

7 years agoMention <intent> can't have string resources.
Makoto Onuki [Fri, 24 Mar 2017 19:54:56 +0000 (12:54 -0700)]
Mention <intent> can't have string resources.

Test: build
Bug 34046756

Change-Id: I761b246d6aba5df4a836af3d0b3bef8f977be5ec

7 years agoAAPT2: Allow arbitrary entry names with aapt2 optimize
Adam Lesinski [Wed, 29 Mar 2017 20:52:38 +0000 (13:52 -0700)]
AAPT2: Allow arbitrary entry names with aapt2 optimize

Presumably, the apps build fine for the developers, so just
feed the existing names through without validation. Validation
still exists when building an app from source.

Bug: 36051854
Change-Id: Idc64ee91b08dce67d3c28f3c5284a7afa1312df1
Test: run aapt2 optimize on the apks from b/36051854 and build aapt2_tests

7 years agoMerge "Enable static RROs by default" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 20:48:53 +0000 (20:48 +0000)]
Merge "Enable static RROs by default" into oc-dev

7 years agoWhitelist ManagedProvisioning from bg check
Tony Mak [Wed, 29 Mar 2017 14:53:07 +0000 (15:53 +0100)]
Whitelist ManagedProvisioning from bg check

Notice that app put in this list is also exempted from doze.
Also, this only exempts us from the service restriction, but not the broadcast one.

Test: adb shell am make-uid-idle  --user 0 com.android.managedprovisioning
      && adb shell am broadcast -a android.intent.action.PRE_BOOT_COMPLETED -n com.android.managedprovisioning/com.android.managedprovisioning.ota.PreBootListener
      Observe there is no crash

Change-Id: Ic0a943a9b66c909a6727f9411af519a8c6cf0157
Fix: 36705375

7 years agoMerge "[AWARE] Remove Publish/Subscribe Count configuration" into oc-dev
Etan Cohen [Wed, 29 Mar 2017 20:14:59 +0000 (20:14 +0000)]
Merge "[AWARE] Remove Publish/Subscribe Count configuration" into oc-dev

7 years agoAAPT2: Parse an ID encoded as a map
Adam Lesinski [Wed, 29 Mar 2017 20:00:35 +0000 (13:00 -0700)]
AAPT2: Parse an ID encoded as a map

ID types should not be encoded as a map. AAPT and AAPT2 emit
IDs as boolean types.

Some apps exist that for some reason have their ID types encoded
as empty maps. This is the case only for the auto generated IDs
from enum values in <attr> tags.

Allow IDs as maps and ignore their content when processing an APK
for optimizing.

Also fixes an issue with expected size of the ResTable_package struct.

Bug: 35861796
Test: tested against the APK in b/35861796
Change-Id: I29a19cd9777bb10bed6766cd42e35e50e098797b

7 years agoCorrectly blame ANR on process using another process token
Wale Ogunwale [Wed, 29 Mar 2017 19:58:24 +0000 (12:58 -0700)]
Correctly blame ANR on process using another process token

Activities can give their window tokens to other process to add
windows with. E.g. -1 screen on launcher. We were in correctly
blaming the process that gave out its token when an ANR occurs
because we were looking at the process associated with the activity.
This CL fixes that.

Test: manual
Change-Id: I08fca00d12ab89dc27eb104115fd375bb4e8ec66
Fixes: 36730136

7 years agoAdd HidlSupport.java for utility methods for HIDL.
Yifan Hong [Mon, 27 Mar 2017 20:02:34 +0000 (13:02 -0700)]
Add HidlSupport.java for utility methods for HIDL.

The old .equals code uses Objects.deepEquals,
which does not handle for, e.g. ArrayList<byte[]>.
Create our own recursive HidlSupport.deepEquals
and deepHashCode method to handle these edge cases.

Bug: 36454147
Test: hidl_test_java
Change-Id: I56dc48985486b561263c260cf43aa90f30d581d0

7 years agoMerge "Make sure TileServices get onTileRemoved on reset" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 20:03:59 +0000 (20:03 +0000)]
Merge "Make sure TileServices get onTileRemoved on reset" into oc-dev

7 years agoMerge "Removing duplicate string in Recents." into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:51:53 +0000 (19:51 +0000)]
Merge "Removing duplicate string in Recents." into oc-dev

7 years agoMerge "Dismiss the PiP if user changes setting while PiP is open." into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:40:53 +0000 (19:40 +0000)]
Merge "Dismiss the PiP if user changes setting while PiP is open." into oc-dev

7 years agoMove displaying mag bounds into surface transation
Phil Weaver [Tue, 28 Mar 2017 15:35:38 +0000 (08:35 -0700)]
Move displaying mag bounds into surface transation

Bug: 30960346
Test: Manually enabled magnification and explored
Change-Id: Ida16979ecf0263b1c1288aa92385af29928f2d9e
(cherry picked from commit 251db070c5bc6f2859ef05e5456cc9079afc8224)

7 years agoMerge "wifi: document UnsupportedOperationException for Passpoint related APIs" into...
TreeHugger Robot [Wed, 29 Mar 2017 19:34:05 +0000 (19:34 +0000)]
Merge "wifi: document UnsupportedOperationException for Passpoint related APIs" into oc-dev

7 years agoMerge "wifi: update passpoint to Passpoint in comments" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:31:37 +0000 (19:31 +0000)]
Merge "wifi: update passpoint to Passpoint in comments" into oc-dev

7 years agoRemove code for seamlessly rotating SurfaceView's.
Robert Carr [Wed, 29 Mar 2017 19:25:50 +0000 (12:25 -0700)]
Remove code for seamlessly rotating SurfaceView's.

No longer required :D

Bug: 36230754
Bug: 36727915
Test: Rotate camera in different modes.
Change-Id: I7708d61646a36bc0c35cfa91d441296eb49eff9a

7 years agoMerge "Only use cacheLock when it's needed" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:27:10 +0000 (19:27 +0000)]
Merge "Only use cacheLock when it's needed" into oc-dev

7 years agoMerge "Revert "finished implementation of fingerprintservice enumerate"" into oc-dev
Kevin Chyn [Wed, 29 Mar 2017 19:25:08 +0000 (19:25 +0000)]
Merge "Revert "finished implementation of fingerprintservice enumerate"" into oc-dev

7 years agoFix battery warning color lookup
Jason Monk [Wed, 29 Mar 2017 19:21:36 +0000 (15:21 -0400)]
Fix battery warning color lookup

Test: visual
Change-Id: Ia3db18f27d83c079b19fc555387e1f7be8963298
Fixes: 36552063

7 years agoMerge "TextClassifier: Switch model based on locale" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:17:31 +0000 (19:17 +0000)]
Merge "TextClassifier: Switch model based on locale" into oc-dev

7 years agoMerge "Removing PiP notification channel." into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:13:07 +0000 (19:13 +0000)]
Merge "Removing PiP notification channel." into oc-dev

7 years agoMerge "Do not use many FDs in FontManagerService." into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 19:11:33 +0000 (19:11 +0000)]
Merge "Do not use many FDs in FontManagerService." into oc-dev

7 years agoMerge "TextClassifier: add API to WebView" into oc-dev
Tima Vaisburd [Wed, 29 Mar 2017 18:50:04 +0000 (18:50 +0000)]
Merge "TextClassifier: add API to WebView" into oc-dev

7 years agoRevert "finished implementation of fingerprintservice enumerate"
Kevin Chyn [Wed, 29 Mar 2017 18:29:37 +0000 (11:29 -0700)]
Revert "finished implementation of fingerprintservice enumerate"

This reverts commit f8ff36c47f9f8d60cf825e6b43eb75d1eae81df5.
Test: manual

Change-Id: Ib7a887ad2b185d83174d171832cd9c3bc87939c0

7 years agoMerge "Fix bad Java docs in View.java" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 18:33:07 +0000 (18:33 +0000)]
Merge "Fix bad Java docs in View.java" into oc-dev

7 years agoCorrect ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS
Robert Greenwalt [Fri, 24 Mar 2017 18:55:47 +0000 (11:55 -0700)]
Correct ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS

The name is not allowed for an internal, non-public
intent.  Changed to use com.android.internal.* namespace.

bug:35266833
Test: Ran cts.IntentTest.shouldNotFindUnexpectedIntents
Change-Id: Ifd7d7f0aa537bfbbc7d67aa3b73b0887acd6104a

7 years agoMerge "Prevent invisible PiP menu activity from having touch focus." into oc-dev
Winson Chung [Wed, 29 Mar 2017 18:18:08 +0000 (18:18 +0000)]
Merge "Prevent invisible PiP menu activity from having touch focus." into oc-dev

7 years agoMerge "Do not allow printing until preview is updated" into oc-dev
TreeHugger Robot [Wed, 29 Mar 2017 17:58:55 +0000 (17:58 +0000)]
Merge "Do not allow printing until preview is updated" into oc-dev

7 years agoUpdate injectSmsPdu documentation.
Abhijith Shastry [Wed, 29 Mar 2017 17:54:53 +0000 (10:54 -0700)]
Update injectSmsPdu documentation.

BUG: 35325136
Test: Comment only update.
Change-Id: I4ff38665a06de5e989e15e17aaac5f512da4303e