Commit Graph

640958 Commits

Author SHA1 Message Date
Flavio Fiszman
baa72ebfdc Merge "Calculate People Tiles messages count properly" into sc-dev 2021-04-20 08:15:02 +00:00
Ken Chen
a3e32c8b4f Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell" am: 1b06ec2530 am: a96493b7a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675632

Change-Id: I9a94931334fe162c5f05c6c3a1628a41468a2d82
2021-04-20 08:14:40 +00:00
TreeHugger Robot
ae88ce7e0a Merge "Fix the ActivityLifecycleTests#testLocalRecreate flakiness" into sc-dev 2021-04-20 08:07:30 +00:00
Shashwat Razdan
8c63ca6581 Addressing the feedback received in the API review.
API Review bugs list is here: https://b.corp.google.com/issues?q=blockingid:176851064

Test: CTS tests:

Fixes:185226923
Fixes:185226755
Fixes:185226674
Fixes:185226597
Fixes:185226790
Fixes:184585058
Fixes:184585080
Fixes:184585117
Fixes:184585343
Fixes:184585079

Change-Id: Idacee5f95ce104d1fb6de40a04ac2b74691f977e
2021-04-20 08:06:25 +00:00
Nicolas Geoffray
202b58f119 Drop the O_NOFOLLOW flag.
It's unclear why it was put in the first pinner implementation, and we
may now get symbolic links returned by ART's metadata files.

Test: boot and see that there's no pinner warning
Bug: 185833667
Change-Id: I6cb1a5a9f684c7f0e61bb7fca394030d5dd30c58
2021-04-20 09:04:29 +01:00
Arc Wang
f891cef572 Fix UsageProgressBarPreference progress bug when zero total size
When zero total size, should update progress to zero.

Bug: 185869705
Test: atest UsageProgressBarPreferenceTest
Change-Id: I02dae2fbea23b56dad07941c614d9ef3500eeae4
2021-04-20 15:55:20 +08:00
Ken Chen
a96493b7a5 Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell" am: 1b06ec2530
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675632

Change-Id: I5ec3328b8bd782bfc184bcbddc7572671e826cbe
2021-04-20 07:38:50 +00:00
Adam Bookatz
d9f98565b2 Fix updateBluetoothStateLocked comments
There was confusion as to whether updateBluetoothStateLocked
took an ActivityInfo representing a cumulative total or a delta.
It is confirmed that it is now a cumulative total. (It had been
a delta in the past, but no longer.)

Bug: 174818545
Test: N/A (just comments)
Change-Id: I62130f22250eb496164f94c0668d1ff65fed7710
2021-04-20 00:14:51 -07:00
Ken Chen
1b06ec2530 Merge "Add CONNECTIVITY_USE_RESTRICTED_NETWORKS permission to shell" 2021-04-20 07:12:33 +00:00
Remi NGUYEN VAN
52c46df5d9 Update TEST_MAPPING imports for connectivity
Connectivity CTS tests were moved from cts/tests/net to
packages/modules/Connectivity.

Bug: 185751610
Change-Id: Id4efd99c419706a52ad5d708888097bd6312d4e6
Test: treehugger is needed to test
2021-04-20 07:10:41 +00:00
Remi NGUYEN VAN
8f5efb2702 Roll forward: add a test for ParseException
The test simply creates an exception and verifies that it has the
required fields.

The constructor tests are only run on S+ as they are not part of the
API before that.

Change-Id: Ic30a34d3203c1b40923ba783a34f0cfed53a07ae
Test: atest FrameworksNetTests
2021-04-20 16:04:33 +09:00
Remi NGUYEN VAN
c3915fc7e7 Revert "Add a test for ParseException"
This reverts commit 54e707a62e.

Reason for revert: Test broken on R: b/185751610

Change-Id: I9f5d25c0ba81011848ab3cf7ec44aa329fbb3b0f
2021-04-20 16:04:33 +09:00
TreeHugger Robot
6309cca5d9 Merge "ContentCapture: Log the text length for VIEW_APPEARED events." into sc-dev 2021-04-20 06:52:18 +00:00
markchien
091140edc0 Change Connectivity resources SDK version to 30
S tethering module fail to sideload in R platform because package
manager fail to parse S version sdk in R platform.

Bug: 182409819
Test: m
Change-Id: I35c63e4bfe7657afe1e7364926ab139b042b403e
Merged-In: I35c63e4bfe7657afe1e7364926ab139b042b403e
2021-04-20 06:21:04 +00:00
markchien
f0431c0edf Change Connectivity resources SDK version to 30
S tethering module fail to sideload in R platform because package
manager fail to parse S version sdk in R platform.

Bug: 182409819
Test: m
Change-Id: I35c63e4bfe7657afe1e7364926ab139b042b403e
2021-04-20 14:19:01 +08:00
Charles Chen
d9ea032b73 Fix WindowContext is removed unexpectedly
Previously WindowContext is removed if the associated WindowContainer
is removed. However, it causes an issue that WindowContext is removed
unexpectedly after the last window is removed by WM#removeView().
When the last view is removed, WMS will remove the WindowToken
in postWindowRemoveCleanupLocked(), and if the WindowToken is created
by WindowContext, the associated WindowContext is also removed
unexpectedly.

This CL makes WindowContext switch back to listen to the previous
DisplayArea if the last window is removed.

Test: atest WindowContextListenerControllerTests
Bug: 185460076

Change-Id: I9c1d0c15c77bbfb3662355f8c72f0d8c70ed6748
2021-04-20 14:10:45 +08:00
Gyumin Sim
2ae2b96c61 Merge "Fix ParcelableListBinder to send empty list" into sc-dev 2021-04-20 06:01:49 +00:00
Louis Chang
f3ae7ab1ea Fix the ActivityLifecycleTests#testLocalRecreate flakiness
IACC#activityTopResumedStateLost was reported to ATMS later than
IACC#activityPaused sometimes because one is one-way binder call
while the other one is two-way binder.

Also make IACC#activityTopResumedStateLost a two-way binder

Bug: 185810414
Test: atest ActivityLifecycleTests
Change-Id: Ib87de693f5ebcfd836208924aa8fc2a035ca7c82
2021-04-20 13:55:50 +08:00
shubang
e8c3a42409 TIF: Change the isForeground API to isVisible and isMainSession
isForeground is not a good approach to indentify current channel info

And add a permission for tuned info.

Bug: 180482268
Test: atest CtsPermission2TestCases
Test: atest TvInputManagerTest#testGetCurrentTunedInfos
Change-Id: Ib1c1f2da719336ae856684e843b06f8b9b442723
2021-04-20 05:49:14 +00:00
Dichen Zhang
a0acf1f6f7 Merge "enum migration" into sc-dev 2021-04-20 05:38:30 +00:00
Aaron Huang
f6008978c4 Add getters to UnderlyingNetworkInfo
Address API review feedback, add getters to UnderlyingNetworkInfo
instead of exposing fields.

Instead of wasting memory by converting this into an array, have
migrateTun take a List<String>. In turn, tunAdjustmentInit should
also take a List<String>.

Bug: 183972554
Test: atest android.net.UnderlyingNetworkInfoTest
Change-Id: Id59744097208d91298a25ef110ade91a9cf291a1
2021-04-20 13:34:52 +08:00
Jacky Kao
8048d256c2 Fix the crash due to multi-register callbacks
For multi-display device, like pixel_jumbojack, when this device is
folded, the secondary display is removed. The A11y framework stops
tracking windows on the removed display by un-registering its
callback.

When the A11y framework un-registers a callback, it checks if the
display is embedded. If it is, the observer is not removed since
the same observer will be observing the parent display.

When the display disappears entirely, however, its context
disappears and there's no way to know if it was embedded or not.
The observer was therefore not removed. When the device is unfolded
and the display reappears, the attempt to register an observer
causes an exception because the previous one is still there.

Due to there's no multi-display device for android S now, so we
adopt simple solution as below to fix it:
1. Throws the exception for debug builds only.
2. Adds this exception into the error log.
3. Recovers by unregistering the current observer and proceeding to
register the new one

The fully solution will phase in the master.

Bug: 182963008
Test: a11y CTS & unit tests
Change-Id: Iff9776ac6e054c0198c0d8739d9446a785716612
2021-04-20 13:20:13 +08:00
Ahaan Ugale
6f4ace91fd ContentCapture: Log the text length for VIEW_APPEARED events.
Helps for matching logs to screen contents while debugging.

Bug: 177687849
Test: manual
Change-Id: Id7e43034843f65f36c9030278728d27ec4f27168
2021-04-19 22:08:54 -07:00
TreeHugger Robot
c85f9a62b5 Merge "Fix the service cann't rebinded after the service died" into sc-dev 2021-04-20 04:54:44 +00:00
Yi-yo Chiang
ea80476aa4 Merge "Revert "Introduce SpellCheckerSessionParams."" into sc-dev 2021-04-20 04:41:45 +00:00
Charles Chen
6db5c60751 Introduce WindowToken Builder
... te improve readability.
Also change remaining ctr's visibility to protected for
ActivityRecord and WallpaperWindowToken to inherit.

Test: touched tests
Bug: 185460076

Change-Id: I3437771d417fd19ea58414e2189e2126bbcc1901
2021-04-20 12:27:51 +08:00
Pinyao Ting
8b875d2446 Implement Device Flag for shortcut integration with AppSearch
Bug: 185828535
Test: atest ShortcutManagerTest1 ShortcutManagerTest2
ShortcutManagerTest3 ShortcutManagerTest4 ShortcutManagerTest5
ShortcutManagerTest6 ShortcutManagerTest7 ShortcutManagerTest8
ShortcutManagerTest9 ShortcutManagerTest10 ShortcutManagerTest11
Test: atest CtsShortcutManagerTestCases

Change-Id: I6ef8b03cdbc875c965ead30a61d33de838e65b1f
2021-04-19 21:10:33 -07:00
Treehugger Robot
0bf5efaeab Merge "Set a floor value for BLE Batch Scan report delay of 5000ms" am: ce2a2c80dd am: da5eb08ae3 am: 2b8dce1db1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676810

Change-Id: I2aafeceb53a673e0172e5873c7354a6d59acc530
2021-04-20 04:00:37 +00:00
TreeHugger Robot
2a499f7ff5 Merge "Adding a permission to Shell for testing" into sc-dev 2021-04-20 03:58:30 +00:00
TreeHugger Robot
dbadfb22fa Merge "A WorkSource version of AlarmManager#setExact" into sc-dev 2021-04-20 03:58:30 +00:00
Mill Chen
1d07de9e9c Update the new animation for collapsing toolbar
Bug: 183496853
Test: visual verified
1) Settings -> Notifications -> Notification history
2) Observe and see if the new animation is applied

Change-Id: Ic4b584b10a27c8e17075b044e659b5dc3e3fec87
2021-04-20 11:58:21 +08:00
Yi-yo Chiang
cef2817d90 Revert "Introduce SpellCheckerSessionParams."
Revert "Use SpellCheckerSessionParams in CTS."

Revert submission 14191185-ky-tsm

Reason for revert: breaks build test_suites_x86_64 b/185855437
Reverted Changes:
I724aaad15:Introduce SpellCheckerSessionParams.
I510a4cfec:Use SpellCheckerSessionParams in CTS.

Change-Id: I4173bd5bee62f02a248de69df77420c39326b9f0
2021-04-20 03:57:05 +00:00
Treehugger Robot
2b8dce1db1 Merge "Set a floor value for BLE Batch Scan report delay of 5000ms" am: ce2a2c80dd am: da5eb08ae3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676810

Change-Id: Ia8dc4c371e4c1c082c22e58eff0825f156717625
2021-04-20 03:31:28 +00:00
Winson Chung
649853599c Merge "Alternative workaround for using private attribute" into sc-dev 2021-04-20 03:15:59 +00:00
Joanne Chung
f6a52811a1 API feedback: Translation View API refinement.
Bug: 178046780
Test: manual
Test: atest android.translation.cts.UiTranslationManagerTest
CTS-Coverage-Bug: 177960696

Change-Id: I557ca4b3b4e7324af12e81dd8b5ac8a04a17b6b8
2021-04-20 11:14:22 +08:00
Jackal Guo
57601cc769 Merge "Apply package visibility to AppWidgetManager#getInstalledProviders" into sc-dev 2021-04-20 03:14:16 +00:00
Treehugger Robot
da5eb08ae3 Merge "Set a floor value for BLE Batch Scan report delay of 5000ms" am: ce2a2c80dd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676810

Change-Id: If77fb0d86606fcc8a9b6c8a6b7f95c7990b7a9a2
2021-04-20 03:07:55 +00:00
Kohsuke Yatoh
93528b8f5b Merge "Introduce SpellCheckerSessionParams." into sc-dev 2021-04-20 03:06:40 +00:00
TreeHugger Robot
5c6d0c5509 Merge "Move CtsInstalledLoadingProgressHostTests to group presubmit-large" into sc-dev 2021-04-20 02:32:47 +00:00
James Mattis
e13786d7b3 Correctly count nri uid request counts
Correctly count nri uid request counts in the per-app functionality in
connectivity currently used by set profile and set oem network
preference APIs. Previously, upon creation, nris would be created prior
to removing them. This would cause the uid request counts to
artificially increase and incorrectly throw an error if the request
count limit was hit even though in actuality an apps request count was
valid.

E.g., if there was an existing request for per-app functionality and
its owning app made a change to the per-app requests, it would double
count the existing requests. If the current count was say, one under the
limit, an error would be thrown even though it was being replaced which
should have resulted in no net change to the request count limit if
working correctly.

This patch will allow for the requests to be removed prior to creation
so that request counts are tabulated correctly.

Bug: 185849563
Bug: 183785319
Test: atest FrameworksNetTests
Change-Id: I13da0c81256cc02bea6aff2fe1ef99d6f6b0e764
2021-04-19 19:28:23 -07:00
Treehugger Robot
ce2a2c80dd Merge "Set a floor value for BLE Batch Scan report delay of 5000ms" 2021-04-20 02:27:23 +00:00
Dmitri Plotnikov
efa581e44e Save power component names in the summary parcel for MeasuredEnergySnapshot
Bug: 185534915
Test: mp :BatteryStatsViewer && adb shell am start -n com.android.frameworks.core.batterystatsviewer/.BatteryStatsViewerActivity
  and check that custom component is displayed as "GPU", not "CUSTOM_10000"
Test: atest FrameworksServicesTests:com.android.server.am.MeasuredEnergySnapshotTest
Change-Id: Ibb68bb2ee62678db5f3b30c4f2ef607006ccc81b
2021-04-19 19:25:36 -07:00
Arthur Hung
b4c004ab64 Merge "Add hall sensor support" into sc-dev 2021-04-20 02:05:32 +00:00
Chloris Kuo
993a4f080a Merge "NAS Settings onboarding notification" into sc-dev 2021-04-20 02:03:27 +00:00
Mady Mellor
26d226301c Fix bubbles for workprofile
- use getPackageManagerForUser when looking up app info
- add test for it

Bug: 184041127
Test: atest BubblesTest
Test: - have a managed work profile
      - install the bubbles app *only* for the work profile
      - make some bubbles
      => Notice bubbles appear
      - dismiss all the bubbles
      - restart the device, add a bubble
      - open the bubble, navigate to the bubble overflow
      => notice the previously dismissed workprofile bubbles
        are in the overflow
Change-Id: I479bb717b3c365346682331b0def7170ed1a791b
2021-04-19 18:51:01 -07:00
Mady Mellor
bac16b93bc Sysui bubbles multiuser fixes: persistence / overflow
* Persist bubbles per-user - rather than one list the
  XML now has a list per-user. The entries in these lists
  still include userId for workprofile since bubbles are
  mixed in the stack / overflow for workprofile.
* When loading bubbles, only the ones for the current user
  are loaded / hit bubbleController code
* When user changes, overflow data should be re-loaded
* Allow the bubble window to be visible for all users

Test: atest BubbleXmlHelperTest BubbleVolatileRepositoryTest
BubblePersistentRepositoryTest BubblesTest
Bug: 173408780

Change-Id: I88cb7cc7ee676d8e0756328a95a54fdaf018a013
2021-04-19 18:51:01 -07:00
Mady Mellor
b5a783d611 Move bubble setting to secure table & support multiuser
* Move bubbles setting from the global table to the secure
  table, this should be a per-user setting
* Update step in SettingsProvider that adds the secure
  setting based on the value of the previous global, or if
  the user is managed, it checks if the owner of the managed
  user has a secure setting & uses the value from that to
  insert the new setting.
* Adds the secure setting to the "cloned to profile"
  group since it should follow the setting of the profile
  owner.
* PreferencesHelper tracks this value per-user.

Bug: 173408780
Test: atest PreferencesHelperTest NotificationManagerServiceTest BubbleExtractorTest
Change-Id: I261364890fcc54fb2791e628b41c07aeddde3974
2021-04-19 18:51:01 -07:00
wilsonshih
25ddb677b6 Let windowSplashScreenBackground work independent from icon.
The API windowSplashScreenBackground should work even when starting
window controller request to create an empty icon splash screen.

Bug: 182759603
Test: atest SplashscreenTests
Change-Id: I0c8178f27663f92acfdd0da8d216ff7ae94db981
2021-04-20 09:49:25 +08:00
Chris Li
1ca437909f Fix flaky legacy split screen flicker tests
Bug: 182235458
Test: pass existing
Change-Id: I20e957b0bfcacb37c1ad72b4a8cea155eeee911a
2021-04-19 18:25:26 -07:00
Pinyao Ting
18818b7518 Merge "Additional debug logging to triage shortcut related issue." into sc-dev 2021-04-20 01:25:12 +00:00