306794 Commits

Author SHA1 Message Date
Jason Long
1e92f02387 Improve AnchoredWindow with smart positioning logic.
* Add appToken.
* Add mWindowSizeListenerView for getting the displayable window size
  (screen - system windows - soft input).
* Add mContentView when we have all the necesssary info.
* Change mContentView only if something changes (height, bounds,
  displayBounds).

Bug: 34637800
Test: CTS
Change-Id: Icef5eb8d8e0b54376c84cbcaa5719aee0520e345
2017-02-07 13:58:12 -08:00
Felipe Leme
1bdf3f070b Set autofill id on virtual structures.
ViewStructure.newChild(virtualId) uses the AutoFillId of the parent,
which was not set anymore due do a previous refactoring, and was
causing this method to crash a custom view when
onProvideAutoFillVirtualStructure() was called on it.

Test: manual verification
Bug: 31001899

Change-Id: I602b421b0ec3a926ffdd52253d5b2498c4217d02
2017-02-07 13:50:53 -08:00
Jin Qian
edf0a3715d BatteryManager: Add battery status to getProperty
Bug: 34198239
Change-Id: I65cef6864b1074445342e18f49c7cecd0706b938
2017-02-07 21:41:39 +00:00
Dmitry Dementyev
f794c8dc1b GET_ACCOUNTS_PRIVILEGED permission check for Account Discovery API.
GET_ACCOUNTS_PRIVELEGED still works in Android O, but authenticators can
limit visibility for apps with the permission.
Bug: 34841115
Test: cts, manual tests.

Change-Id: Ibd87f6172969c550b6166f88176924e517393763
2017-02-07 13:39:11 -08:00
Peter Qiu
bffe405e1f hotspot2: expose Passpoint APIs as public
Bug: 34862444
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I8bf5c715b9088c673e59a73a78e18f6e6b64d1d1
2017-02-07 13:34:47 -08:00
Peter Qiu
da8a67e8a6 hotspot2: fix class/function/variable names to comply with API guideline
Bug: 34862444
Test: frameworks/base/wifi/tests/runtests.sh
Test: frameworsk/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ide425c06be46bc41c8f601e732dca0543de096b1
2017-02-07 13:34:46 -08:00
Peter Qiu
a77809766c hotspot2: rename classes to comply with API guideline
This is purely a file rename operation.

Bug: 34862444
Test: None
Change-Id: I297a228f3ee7e09c9cce5ca9f677eb1db478fd46
2017-02-07 13:34:46 -08:00
Selim Gurun
38d07a18bb Merge "Fix WebView crashes" 2017-02-07 21:29:00 +00:00
Winson Chung
cd161864a3 Merge changes I3ef361bd,I89a5184c
* changes:
  Refactor PiP logic in preparation for expanded state.
  Modifying RemoteAction callback to PendingIntent.
2017-02-07 21:18:15 +00:00
Julia Reynolds
c9842c1627 Dump notification records to proto
Bug: 34227881
Test: cts
Change-Id: I1b55d37ee73a17330f4039a50bdf05e9ce1be24d
2017-02-07 15:46:10 -05:00
Julia Reynolds
2187d34e35 Highlight selected channel on launching settings.
Test: manual
Change-Id: Iae49dcf8989a6524012897c321c0499e784a05e1
2017-02-07 15:46:09 -05:00
Julia Reynolds
529e3329e6 Let developers choose a light color for channels
Test: runtest systemui-notification & cts
Change-Id: Ibfab57924d0a9093af23191ebdd68ce1c0da6eca
2017-02-07 15:46:09 -05:00
Abodunrinwa Toki
b89cf026cf TextClassificationManager: Avoid exposing lock.
Test: CtsViewTestCases passes
Bug: 35040457
Change-Id: Ia27730816f8aa4832a16aa9ebcafac68acb79e27
2017-02-07 20:41:44 +00:00
John Reck
e10971d903 Fix capturing systrace while hwuimacro is running
Test: manual; ran hwuimacro -c 10000 and started a systrace
while it was running. verified trace tags showed up as
expected

Change-Id: Iedc20c6825e77b76ad79660512b627201f61969f
2017-02-07 15:31:03 -05:00
Ashutosh Joshi
d9b6cf1fe9 Merge "Make requested service for context hub service compliant." 2017-02-07 20:21:16 +00:00
Jean-Michel Trivi
bdc2365489 Merge "Audio player delayed start: don't throw exception" 2017-02-07 20:03:56 +00:00
Hakan Seyalioglu
23f3465f62 Use default icons while disambig sheet is loading
bug: 34254941
Test: manual testing and check coretests pass
Change-Id: I8cae7ee98628ef3d69fddd6374bcbf91d8a1873c
2017-02-07 11:49:37 -08:00
Chris Craik
0091181f32 Add ShadowShaderAnimation benchmark
Bug: 34809371
Test: manual

New benchmark uses several levels of overdraw from just shadows to benchmark
shadow shader performance.

Tessellation workload is minimal, due to simple rect caster shape.

Change-Id: I760961e6d48d44ca61f4e8ebca5760175af34953
2017-02-07 19:49:22 +00:00
Chris Craik
49ddb3d558 Merge "Add simple gradient and colormatrix benchmarks" 2017-02-07 19:48:35 +00:00
Adam Lesinski
0e61883f5d Fix WebView crashes
Use the sharedLibraryFiles from ApplicationInfo, which is
what WebView patches.

Bug:34761805
Test: None
Change-Id: I5a496e8e017842a3fa30b956edf1b16c9459c5f0
2017-02-07 11:43:45 -08:00
Evan Rosky
a5082a3f67 Merge "Default focus order now tries to adhere to view hierarchy" 2017-02-07 19:40:44 +00:00
TreeHugger Robot
3f57d7f7eb Merge "Gradients are now an absurd Chimera" 2017-02-07 19:27:02 +00:00
Phil Weaver
1e2758256a Merge "Provide text locations to accessibility services." 2017-02-07 19:14:09 +00:00
Calin Juravle
4466c5ad84 Fix typo in dexopt.secondary system property
Test: adb shell cmd package bg-dexopt-job
Bug: 32871170
Change-Id: Ic8a14a3fc5c9aa63f6cb376f337b5bf459997325
2017-02-07 11:09:01 -08:00
Jean-Michel Trivi
10ffc78304 Audio player delayed start: don't throw exception
When the framework sets a delayed start on a PlayerBase instance
  (e.g. MediaPlayer or AudioTrack), catch the IllegalStateException
  that can be thrown if the player's state has changed by the time
  the actual start command gets executed.

Test: generate notifications played by NotificationPlayer
Bug 35019197

Change-Id: I51fd0305bc83b34e33fbcf9331f55627d32702f3
2017-02-07 10:47:31 -08:00
Adam Powell
0f552f4d50 Provide old behavior for View#hasFocusable to old apps
Existing apps have copies of ListView behavior that expects the old
hasFocusable behavior of only reporting explicitly focusable views.
Use targetSdkVersion to give the old behavior to existing apps.
Add hasExplicitFocusable method to View to offer the old behavior
to apps that need it. ViewCompat method required in support library
to shim through to hasFocusable pre-O.

Bug: 34946284
Test: CTS
Change-Id: I65503fa2c5fe4cb8b635efa464e653bbf5e7f821
2017-02-07 10:44:37 -08:00
Soonil Nagarkar
de6780acb6 Set default throttle to 30m.
Test: manually

Change-Id: Ib8ce75819095af7e01124a2c55c3a96f7c38740c
2017-02-07 10:40:45 -08:00
Jason Monk
d8df1b083d Merge "QS: Fix brightness/edit disappearing with too few tiles" 2017-02-07 18:23:54 +00:00
Vladislav Kaznacheev
19dab2df3a Hide pointer icon while navbar is hidden
When the navbar gets hidden as a result of
View.setSystemUIVisibility call, the most recent pointer gets
stuck because hover events stop being dispatched to the app.
Hide the pointer icon to avoid confusion.

Bug: 32248070
Test: ApiDemos > View > System UI Visibility > System UI Modes >
   click on HIDE_NAV

Change-Id: Iae80bfa7ab5469946485a68e5308ea752a4645b0
2017-02-07 10:12:51 -08:00
Felipe Leme
fb0f360222 Merge "Refined session management so Save can be automatically called." 2017-02-07 17:50:29 +00:00
Bill Yi
7f01089aae Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 7e61e7c585 -s ours
am: fdb6ec0314  -s ours

Change-Id: Ie5eb63649ee976737b3287c19b4c8238e9eb84d7
2017-02-07 17:33:18 +00:00
Bill Yi
750f29ae93 Import translations. DO NOT MERGE am: ca2ead63c9 -s ours
am: 2192d06b21  -s ours

Change-Id: I5d6efc9f948b01823d854393bb4e319866aaa458
2017-02-07 17:32:16 +00:00
Bill Yi
fdb6ec0314 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 7e61e7c585  -s ours

Change-Id: I541c140a9244f7671b3a09f19a4e0ff7acef4f0f
2017-02-07 17:28:13 +00:00
Bill Yi
2192d06b21 Import translations. DO NOT MERGE
am: ca2ead63c9  -s ours

Change-Id: I0411d2408480cd60d32c40db1e5c5f59a9d98609
2017-02-07 17:28:07 +00:00
TreeHugger Robot
7e61e7c585 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-02-07 17:21:09 +00:00
Makoto Onuki
f34f9736a9 Merge "Fix PSS/USS Average in procstats" 2017-02-07 17:11:45 +00:00
Winson Chung
2a82fe587b Refactor PiP logic in preparation for expanded state.
- #1: Move logic for handling IME size changes into SysUI, and only rely
      on PinnedStackController to provide bounds when first entering
      PiP and on rotation
- #2: Doing #1 allows us to move PipMotionHelper to SysUI completely, which
      lets us aggregate the animation calls out of PipTouchHandler
- #3: Add proper callbacks to the listeners when the movement bounds
      changed from config change, ime change, or aspect ratio change. This
      allows SysUI to calculate the associated movement bounds for the
      expanded state, and we can then remove the corresponding WM call.
      It also means that SysUI is the only thing that needs to know about
      the expanded state.
- #4: Fix issue where TV was getting the default bounds, not taking the
      aspect ratio when the PiP was entered into account.  Doing #3
      allows us to report the right bounds.
- #5: Remove dead code related to edge snapping/minimizing now that they
      are on by default and associated tuner setting, and controller
      callbacks

Test: android.server.cts.ActivityManagerPinnedStackTests (all existing tests pass)

Change-Id: I3ef361bdf8d44094b4c0a11c70ba4db7d697fdec
Signed-off-by: Winson Chung <winsonc@google.com>
2017-02-07 08:26:36 -08:00
Winson Chung
9c2a686757 Modifying RemoteAction callback to PendingIntent.
Test: android.server.cts.ActivityManagerPinnedStackTests
Bug: 34864798
Change-Id: I89a5184c2f067722cb1f5f962bbb8cbb91529092
2017-02-07 08:26:24 -08:00
Paul Lawrence
c47dd7cf0c Expand seccomp whitelist
Bug: 34979910
Test: System boots, app runs
Change-Id: I8b60a24ac855679251e73edcdec57eb4af4a5610
2017-02-07 08:21:29 -08:00
Abodunrinwa Toki
8710ea13c1 start/invalidate selection actionMode asynchronously
Text selection is now started/updated using AsyncTasks that first get
a result from the TextClassifier before actually starting/invalidating
the actionMode on the UI thread with the result.

Bug: 34778899
Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testSmartSelection
Change-Id: Ie7eda04bb64335744d88b8874363d46af4f94742
2017-02-07 16:14:56 +00:00
Delphine Martin
3f7bf2e96c Merge "Fix incorrect syntax in Proguard flags" 2017-02-07 15:41:04 +00:00
Clara Bayarri
5edceec2cc Merge "Cache Downloaded Fonts in Typeface" 2017-02-07 15:36:28 +00:00
Esteban Talavera
84e706fb9b Merge "Unhide getLockTaskPackages" 2017-02-07 15:04:48 +00:00
Filip Pavlis
8874d6efda Merge "Fix transitions between single and multi-pane." 2017-02-07 14:46:54 +00:00
Rubin Xu
f810cc9a5b Merge "Fix uri permission grant on remote bug report uri" 2017-02-07 14:40:17 +00:00
Bill Yi
63bfc8312c Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 6654edae49 -s ours
am: 5e1652a7c9  -s ours

Change-Id: I12564fcecc14484b8cf32c669f77bf5f11c0fa87
2017-02-07 14:20:39 +00:00
Bill Yi
b01f312dd0 Import translations. DO NOT MERGE am: 446a66d235 -s ours
am: 9e1b6881a6  -s ours

Change-Id: I5583afd8f110c57fd8cbaa43ca23457b91073b93
2017-02-07 14:19:39 +00:00
Bill Yi
a2dd05c284 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3f4f78dc7 -s ours
am: 0e4a8f5f41  -s ours

Change-Id: Ic0894bfb2f8e5d5c9850caf6110e4e24959e6bac
2017-02-07 14:18:49 +00:00
Bill Yi
0cc5fe37a6 Import translations. DO NOT MERGE am: b83f6b6f44 -s ours
am: f8f731cbe6  -s ours

Change-Id: I135bddc74ce28a227a4c2197305be7b5379b2152
2017-02-07 14:17:56 +00:00
Charles He
d2aa0bb0d3 Merge "Fingerprint: get auth id for non-current user." into nyc-mr2-dev am: 15b8313d1b
am: d7d9c0241f  -s ours

Change-Id: I54e46e945fa45b35932efb697b65a3afce34782d
2017-02-07 14:17:06 +00:00