313021 Commits

Author SHA1 Message Date
Adam Lesinski
639345210b BatteryStats: Remove too-verbose logging
Bug: 36972594
Test: manual
Change-Id: I02976ed924550f73010a453d207d199b13307cfa
2017-04-05 17:54:13 -07:00
Felipe Leme
cde040ae95 Improvements on ViewNodes received on partitioned requests:
- Fixed focus
- Added autofillValue for nodes previously autofilled

BUG: 35707731

Test: existing CtsAutoFillServiceTestCases pass
Test: more tests on PartitionedActivityTest

Change-Id: If4390d002d44c82e3de0339a634041f3998e804e
2017-04-05 17:49:13 -07:00
TreeHugger Robot
aaca304a31 Merge "Created SaveInfo types for email and username." into oc-dev 2017-04-06 00:15:30 +00:00
TreeHugger Robot
1b2bedcd76 Merge "Change getFragments() to return a List." into oc-dev 2017-04-06 00:13:26 +00:00
Adam Lesinski
c745f42169 OverlayManagerService: Make broadcasts/updates explicit
Previously there was a listener attached to the Settings object
which would fire any time a single settings change was made.
This made it very inefficient to do batch updates.

This change makes the Settings object return its mutated status
on each call to a mutating method, allowing the caller to keep track
of whether or not to notify the listener of any changes.

This allows for the implementation of setEnabledExclusive, where
all but the target overlay are disabled and only a single notification
/ update is sent out.

Bug: 36099320
Test: manual (with OverlayManagerService.DEBUG = true), observe logcat
Test: when Going to Settings -> Display -> Advanced -> Themes and
Test: selecting a theme.
Change-Id: Ic8b8ca3ba0cf5d2d682bf6dac5a6c82e4f0f2502
2017-04-05 17:01:54 -07:00
Christopher Tate
b218e768f8 Don't call the Package Manager when holding the settings lock
The package manager sometimes has to call into the settings provider with
its own lock held in the course of processing queries, so it's vitally
important not to call into it with the settings provider's internal lock
already held.

In this case, the SSAID lazy-generation path was fetching the signatures
of the calling package from inside the settings lock.  Now it doesn't.

Bug 36863412
Test: manual

Change-Id: Ic9d53397b5bddb883c5d73aff253ca280a5e93c0
2017-04-05 17:01:12 -07:00
Peng Xu
33bbdda3d3 Merge "Local geomagnetic field update to sensor" into oc-dev 2017-04-06 00:00:11 +00:00
Adam Bookatz
a63e911ad2 Merge "Change wifiScanActualTime csv from usec to msec" into oc-dev 2017-04-05 23:57:00 +00:00
TreeHugger Robot
d3ed35f690 Merge "Dump autofill service component from settings." into oc-dev 2017-04-05 23:56:25 +00:00
Philip P. Moltmann
d37be36a56 Make print failure notifications important
Before failures and progress was similar important. Both were not shown.
Now both are shown and the failures alert.

Removed the notification grouping as autogrouping is good enough.

Test: Created failed and running print jobs
Change-Id: I6dfca583d69aa9713d45a2bc52d05e95f06b376f
2017-04-05 16:46:50 -07:00
TreeHugger Robot
63cb740b4f Merge "Serialize visibleToInstantApps" into oc-dev 2017-04-05 23:45:00 +00:00
Winson Chung
c9fa6399f2 Merge "Workaround for input ANR, always finish PiP menu activity." into oc-dev 2017-04-05 23:36:35 +00:00
Selim Cinek
58b39a1f87 Merge "Fixed that the icon could dissappear" into oc-dev 2017-04-05 23:35:59 +00:00
TreeHugger Robot
94b6b532c0 Merge "Use text input for various internationalized listeners" into oc-dev 2017-04-05 23:32:55 +00:00
TreeHugger Robot
6343bd8ffc Merge "Don't show empty account list in account chooser." into oc-dev 2017-04-05 23:29:26 +00:00
Selim Cinek
aca84c0b2a Improved accessibility behavior of the notification shelf
The content description of the shelf was hiding the icons,
so we removed it again.
Also added an expand action to make it clear that you can expand it.
Also made scrolling in the normal shade better again by marking it
to hide it's children.

Test: manual, test accessibility on the lockscreen
Change-Id: If96c014609f3fa1b7eedb5e89acd8fe55d5b9c69
Fixes: 36660851
2017-04-05 16:28:56 -07:00
TreeHugger Robot
a62a3d8ec1 Merge "Call noteStateNotSaved on child fragment managers." into oc-dev 2017-04-05 23:23:54 +00:00
Robert Carr
0c901695e6 Correct animation glitch for pinned stack.
During an auto-PiP operation it can be
such that the pipped activity "isWaitingForOpening".
This is due to the visibility toggling to hiddenRequested,
and then back to visible, which causes it to enter mOpeningApps.
Logic in display content, prevents updating the surface boundaries
while we are in this waiting for opening state. This causes the animation
to jank as the top left corner will not move. The claim made
by the comment is that certain animations may have not "processed
their initial transformation".  So we ignore this "waiting for opening"
state if the app transition is a dummy animation, in which case we have
no transformation anyway.

Bug: 36821017
Bug: 35396882
Test: Enter PiP from YouTube, make sure top left corner moves smoothly.
Change-Id: Ia8519fe3c955f2ac80151b851c219d6ddbd26fed
2017-04-05 16:19:24 -07:00
TreeHugger Robot
154836844d Merge "don't honour domain verification for browsers" into oc-dev 2017-04-05 23:11:42 +00:00
Julia Reynolds
3aeddedc17 Show a link to app settings in notification guts.
Test: runtest systemui, cts
Change-Id: I7204102d5c83d589af5d3da57f72068491c12daa
2017-04-05 22:40:37 +00:00
Julia Reynolds
6031533702 Remove unneeded methods
Test: make, make cts, make cts-verifier, runtest systemui-notification
Change-Id: I25b559cfcc30f2d85f468adf840f9124e80f00b0
2017-04-05 18:36:07 -04:00
Felipe Leme
a9baa4c851 Merge "Changed FillResponse.setAuthentication() to require field ids." into oc-dev 2017-04-05 22:25:16 +00:00
Vladislav Kaznacheev
adf08d4eb9 Fix anchor overlap handling in ListPopupWindow
Do not change anchor overlap on the underlying
PopupWindow unless ListPopupWindow.setOverlapAnchor
has been called explicitly.

Bug: 36714649
Test: ApiDemos > Views > Spinner
Change-Id: I5e66d4409a1f04cdc0fbe64e255609836c2b0e95
2017-04-05 22:24:13 +00:00
TreeHugger Robot
f68766f666 Merge "Collect background stats: scheduled jobs" into oc-dev 2017-04-05 22:13:10 +00:00
Sundeep Ghuman
2ca3aa94c1 Update comment on why Keep is needed.
Bug: b/36403696
Test: NA
Change-Id: I309a5f14afb34009064f5a6193faa8fb2367b19b
2017-04-05 15:13:01 -07:00
Calin Juravle
b0baef0715 Merge "Fix dex flags for secondary dex files" into oc-dev 2017-04-05 22:07:52 +00:00
Selim Cinek
f30345869f Fixed a bug where the indeterminate progressbar janky
Because we were setting it to gone and to visible, the
animation would restart.

Test: add notifications with indeterminate progress and update a few times
Change-Id: I0d68ad609bac07fc0ab8ea7b0c78bf2e27dd21eb
Fixes: 36737710
2017-04-05 15:06:27 -07:00
Jack Yu
d19b6ae9c6 Fixed the obsolete logging
Added missing logging messages and removed legacy codes.

Test: adb bugreport
bug: 33041058
Change-Id: I38ec1aeb14ba4bf5b0e7df2aea45dcbd1bb3ff7f
2017-04-05 14:57:23 -07:00
Bryce Lee
3157927652 Merge "Remove accidental debugger wait." into oc-dev 2017-04-05 21:55:19 +00:00
Joseph Pirozzo
11b1b06973 Bluetooth Multi Connect
Allow automotive bluetooth profiles to connect to issue multiple connect
calls without disconnecting other devices.  These client side profiles
either support multiple connections or handle multiple connection
requests gracefully.

Bug: 36789202
Test: Manual, Connect to one paired device then attempt to connect to a
second paired device, observe that HFP and PBAP are both connected on
both devices.

Change-Id: I8bd6aea2b8411ba5585b34292d8c6ec62c5c2f96
(cherry picked from commit 43eba0836d89c21c4bec20bd251f4e82310b7cf1)
2017-04-05 21:53:38 +00:00
Felipe Leme
98d5c7f6b0 Dump autofill service component from settings.
Bug: 36978445
Test: manual verification

Change-Id: I30992452c94a78c05a5a98e94d5ffc5325151a76
2017-04-05 14:50:36 -07:00
Bryce Lee
18498714fe Remove accidental debugger wait.
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests
Change-Id: I129b139a14d925221f2c9b614f45aedac1f153b5
2017-04-05 14:49:44 -07:00
TreeHugger Robot
4734737329 Merge "Restore @VisibleForTesting on NetworkScorerAppManager." into oc-dev 2017-04-05 21:48:10 +00:00
TreeHugger Robot
101b151548 Merge "Consolidate a11y unit tests and get them working" into oc-dev 2017-04-05 21:41:27 +00:00
Roozbeh Pournader
e389f00d7f Merge "Revert "Use KB instead of kB."" into oc-dev 2017-04-05 21:39:14 +00:00
Todd Kennedy
f2e4e8ba90 Merge "don't log non-instant app resolutions" into oc-dev 2017-04-05 21:36:42 +00:00
Jorim Jaggi
010484f7c3 Merge "Check for null when updating header" into oc-dev 2017-04-05 21:30:00 +00:00
TreeHugger Robot
0d47527058 Merge "Create Espresso test for WifiSettings." into oc-dev 2017-04-05 21:27:40 +00:00
Todd Kennedy
02a6b73e97 Bind with the correct action
While services themselves don't need an action when an explicit
component is specified, services in GMS may be different. In
the case of instant apps, the resolver service is hidden behind
a proxy that uses the action to route to the actual, implementing
service.

Bug: 36594944
Test: see that ephemeral resolution occurs
Change-Id: Id8c352614f780dc63f36c65be2ddb2d480b6846b
2017-04-05 14:24:58 -07:00
Todd Kennedy
f6746ce148 don't honour domain verification for browsers
When a default browser is set, we change its domain verification status
to "INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS". This change is
global and permanent; it affects all URLs and won't be cleared by
resetting the browser's domain handling in settings.

To properly handle this, we don't pay attention to the domain verification
status for "browser" applications when we determine whether or not to
offer an instant app.

Change-Id: I1e2766e9856b0c9d3276e33a8db10195c72ae6ea
Fixes: 36978307
Test: Install firefox, start a browser intent [from command line], select chrome and choose "use always", start another browser intent that resolves to an instant app, see that ephemeral apps still resolve
2017-04-05 14:15:00 -07:00
Roozbeh Pournader
77a85765de Revert "Use KB instead of kB."
This reverts commit 8ebf40498f00cdb789b92b9394e69844f5df4e3a.

Bug: 27672362
Bug: 36496960
Change-Id: Id04623a400c30f3c9b218806c118c5e4ffada020
2017-04-05 21:13:22 +00:00
Roozbeh Pournader
889c6503a1 Use text input for various internationalized listeners
Since the characters that need to be entered for an internationalized
input type may not be available on the old non-internationalized
layouts, switch to the full text layout if there are any such
characters.

TextView is also modified to call the locale-aware listeners if
the target SDK is set to O or later.

Test: Manual
Bug: https://code.google.com/p/android/issues/detail?id=2626
Bug: https://code.google.com/p/android/issues/detail?id=82993
Bug: 8319249
Bug: 33276673
Bug: 34394455
Change-Id: I544bf0cc893a475ab5bf88cbad01cb981c6fef91
2017-04-05 14:07:22 -07:00
Ray Essick
ed5b028693 Move MediaMetrics into its own library
Changes for the new HAL structure have brought about a build time
circular dependency between libmedia and libmediadrm. This set of
changes the media metrics code into its own library and arranges
for the relevant consumers of the media metrics code to link
to this new library (where they had previously picked it up by
including libmedia).

Bug: 36990807
Test: build, boot.
2017-04-05 14:01:00 -07:00
George Mount
e196b6fefe Change getFragments() to return a List.
Bug 36762718
Bug 36982279

Changes getFragments() to return a List instead of a Collection.
The order is the order in which the fragment is added or attached.

Test: ran fragment cts tests
Change-Id: I10bbeef13e9154bbe052127cfa0e160b2e500b4d
2017-04-05 13:56:37 -07:00
Winson Chung
87e5d55e98 Workaround for input ANR, always finish PiP menu activity.
- Always finish the PiP menu activity when the interaction is complete
  (either the menu is hidden after showing, or when the user stops
  interacting with it and it was shown for the dismiss overlay)
- Fix issue with bounds animation callback not working due to the app
  window being removed and not updating the app transition that its
  animation "finished"
- Add additional logging throughout to trace PiP animation

Bug: 36877782
Test: Enter PIP, tap to show menu, wait for it to hide, and then use
      wired headset button

Change-Id: Ie88ba107d7fffdd182a4063ef4f324b58669d0ad
2017-04-05 13:44:53 -07:00
Tenghui Zhu
399dba4ab0 Merge "Make sure we handle the matrix separately for non-invertable matrix" into oc-dev 2017-04-05 20:44:36 +00:00
TreeHugger Robot
0283544c49 Merge "Allow background default container service in a less crashy way" into oc-dev 2017-04-05 20:43:42 +00:00
TreeHugger Robot
448727bdae Merge "AAPT2: Fix pseudolocalization (again)" into oc-dev 2017-04-05 20:43:23 +00:00
TreeHugger Robot
7e5205137c Merge "Fix NPE when adding WebView to ResourcesManager" into oc-dev 2017-04-05 20:42:01 +00:00
TreeHugger Robot
36de376430 Merge "Work on issue #36869295: com.qti.qualcomm.datastatusnotification..." into oc-dev 2017-04-05 20:40:57 +00:00