Commit Graph

468813 Commits

Author SHA1 Message Date
Shafik Nassar
15163807bd Merge "Revert "Request MANAGE_EXTERNAL_STORAGE permission"" am: e21d0ea642 am: 4ec80cc67d am: 4ebbdb6b22
Change-Id: I09fcfa6eefff3c500abc743918d8c625bb92cf71
2020-02-17 11:31:39 +00:00
Aaron Huang
4b65c08bd4 [automerger skipped] Merge "Remove framework code that has moved to frameworks/libs/net" am: 79b6ad735b am: 37413a4b82 am: 1965d49e73 -s ours
am skip reason: skipped by user huangaaron

Change-Id: I7f5c1c3a41a779512658008fafe108b1e99182ec
2020-02-17 11:31:07 +00:00
Chiachang Wang
c4f123463a Merge "Add NETWORK_SETTINGS to SystemApi" am: 0ab508981a
Change-Id: Ie81ece88b9375ffd465c8bb68b17a0c4500dd025
2020-02-17 11:22:30 +00:00
Chiachang Wang
0ab508981a Merge "Add NETWORK_SETTINGS to SystemApi" 2020-02-17 11:04:51 +00:00
Remi NGUYEN VAN
318a6b763c Add NETWORK_SETTINGS to SystemApi
The permissions are checked by Tethering; mainline modules should be
able to do permission checks based on these permissions.

Bug: 135411507
Test: m
Test: make test-api-stubs-docs-update-current-api \
      system-api-stubs-docs-update-current-api
Change-Id: I10eb0273461063149a8d0eec92e2aaadea0680bd
Merged-In: Ia617ea56aba18f98371d7dbd546679e0327bfacd
2020-02-17 11:04:38 +00:00
Mark Chien
0a3c802e02 Merge "Fix usage of annotations in TetheringLib" 2020-02-17 11:00:55 +00:00
TreeHugger Robot
d73f4e387c Merge "WebView: deprecate 'Secure' cookies for insecure schemes" 2020-02-17 10:56:03 +00:00
hughchen
e3fae2d4b9 Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT
Bug: 149609340
Test: Build pass
Change-Id: If90e3f5482f551884c016fd78c9f8165e728347b
2020-02-17 18:54:46 +08:00
Ahan Wu
c9c7ebb464 Fix potential NPE while releasing worker thread of ImageWallpaper
We nullify mWorker right in ImageWallpaper#destroy(),
we might get NPE if postRender is invoked later.
Thus, we add null check to avoid NPE.

Bug: 144039509
Bug: 146167292
Test: atest com.android.systemui
Test: atest CtsMultiUserHostTestCases
Change-Id: Idff558cbdbfa96df3154eb726a36645ee847c0bd
2020-02-17 18:49:59 +08:00
Santiago Seifert
c3e3933770 Merge "Add KEY_CAPTION_SERVICE_NUMBER to MediaFormat" 2020-02-17 10:45:30 +00:00
TreeHugger Robot
02684dec58 Merge "MediaRouter: fix manager test bug" 2020-02-17 10:38:29 +00:00
Tiger Huang
1828adfab2 Refactor AttachInfo.mGlobalSystemUiVisibility
Move it to ViewRootImpl and rename it: mDispatchedSystemUiVisibility
with default value 0 in the new insets mode instead of -1. Because
mCompatibleVisibilityInfo.globalVisibility will always be updated in the
new insets mode, we don't need the -1 value to detect the change from
non-zero value to zero dispatched from the server.

Bug: 118118435
Test: atest LayoutTests
Change-Id: I45064bdcdca37b9a2b30d82bb9d9c84e45732029
2020-02-17 18:27:58 +08:00
Riddle Hsu
8e5f6d2e6f Use consistent calling uid and package in navigateUpTo
Originally, if the caller of navigateUpTo is alive, even the calling
uid is set to the caller who launched the existing destination activity,
the uid from caller process has higher priority to replace the given
calling uid. So this change doesn't modify the existing behavior if
the caller process is valid. Besides, the case of delivering new intent
uses the source record as calling identity too, so the case of starting
new activity should be consistent.

Also forbid attaching null application thread to avoid unexpected state
in process record.

Bug: 144285917
Test: ActivityStackTests#testNavigateUpTo
Test: StartActivityTests#testStartActivityByNavigateUpToFromDiffUid
Test: Run the sample app in the bug link

Change-Id: I60732f430256d37cb926d08d093581f051c4afed
2020-02-17 10:17:49 +00:00
Joanne Chung
332c6a9a1f Keep a strong reference to the InlineContentCallbackImpl
1. Keep a strong reference to the contentCallback.
2. Make sure inflated() only allowed to be called once.

Bug: 146524826
Test: atest CtsInputMethodTestCases:android.view.\
inputmethod.cts.InlineSuggestionTest
Test: manual. Call inflate() twice and make sure the
behavior is expected.

Change-Id: Id9bd386269111d11a2b2c27e33832cac90061b61
2020-02-17 18:04:46 +08:00
Kyunglyul Hyun
c24317d85e MediaRouter: fix manager test bug
There was a bug that waitAndGetRoutesWithManager returnes
a wrong list of routes that doesn't match the given features.

Test: atest mediaroutertest
Change-Id: Ibd01ba9d20fd5fa922d268998e10b497a88a3b45
2020-02-17 18:11:17 +09:00
Howard Ro
231f41bfcb Merge "Limit metricslogger call into statsdw for events" 2020-02-17 09:00:54 +00:00
Howard Ro
a2ae63c433 Merge "Remove libstats_jni from the platform" 2020-02-17 09:00:54 +00:00
Taesu Lee
c8ec731663 Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead
Zero-based month is not needed anymore since android.text.format.Time is
replaced with LocalDateTime. For the safety, just rename "month" to
"monthOrdinal" in the range 1-12.

Bug: 146021623
Test: atest CdmaSmsTest

Change-Id: I0eb5bad9b3701217a6e4f44bfcd76013576d79d5
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-02-17 17:55:25 +09:00
Chiachang Wang
10d16e52bc Merge "Add NETWORK_SETTINGS to SystemApi" 2020-02-17 08:40:24 +00:00
Steven Thomas
dd7bf2fea5 Add compatibility param to setFrameRate() api
Add a compatiblity param to the setFrameRate() api, so the system has
more info to decide the device frame rate when there are multiple
competing preferences.

I also changed the plumbing for setFrameRate() to go directly to surface
flinger, instead of through buffer queue. We're trying to avoid changes
to buffer queue code, to avoid disturbing the prebuilts.

Bug: 137287430

Test: Added new cts tests to verify behavior of the compatibility param.
      cts-tradefed run commandAndExit cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.SetFrameRateTest

Test: /data/nativetest64/SurfaceFlinger_test/SurfaceFlinger_test --gtest_filter='SetFrameRateTest.*'

Change-Id: I9123afee2ba63d01ff35fb2b257a1ee0e4928ddd
2020-02-17 00:38:43 -08:00
Treehugger Robot
fb6597f154 Merge "[vts-core] add vts_permission_validate_test to vts-core" am: 1c91a3d51b am: d7097988d3
Change-Id: Ie1ceb0f3792c07cb6f740082f6920e2ab09fd5e7
2020-02-17 08:23:07 +00:00
Treehugger Robot
d7097988d3 Merge "[vts-core] add vts_permission_validate_test to vts-core" am: 1c91a3d51b
Change-Id: Ia6af1371e0e736b53f536248591b7f61b4eb2cc7
2020-02-17 08:08:29 +00:00
Kyunglyul Hyun
3729e9f910 MediaRouter2: Clean up APIs
Rename APIS related to RoutingController.
Specifically,
- requestCreateController is changed to transferTo, which is the only
way to "transfer" that may or may not create a controller.
- ControllerCallback is split into TransferCallback and
(new) ControllerCallback.
- onControllerCreated and onControllerReleased is merged into
onTransferred(old, new)

Rename APIS related to RoutingController.

Bug: 149185558
Test: atest android.media.cts.MediaRoute2InfoTest
  && atest android.media.cts.MediaRouter2Test
  && atest android.media.cts.RouteDiscoveryPreferenceTest
  && atest android.media.cts.RoutingSessionInfoTest
  && atest android.media.cts.MediaRoute2ProviderServiceTest
  && atest mediaroutertest

Change-Id: I348581be7c0b8537da22da3bc81e2ca31e16203f
2020-02-17 16:56:01 +09:00
Treehugger Robot
1c91a3d51b Merge "[vts-core] add vts_permission_validate_test to vts-core" 2020-02-17 07:49:45 +00:00
Riddle Hsu
6f548e99cb Introduce fixed rotation transform
It allows activity to be shown in an orientation different
from the current display. This initial change only handles
the case when transiting to another activity with different
orientation.

The opening activity and its process will be updated with
rotated configuration. The rotated display frames and insets
are also associated to the activity, then the activity can
be layouted in the rotated bounds. The surface of activity
is rotated to fit current display. And the display will be
rotated seamlessly until the transition is done.

The function is disabled by default. It can be enabled by:
adb shell settings put global fixed_rotation_transform 1

Bug: 143053092
Bug: 146415879
Bug: 147469351
Test: atest DisplayContentTests#testApplyTopFixedRotationTransform

Change-Id: Iea15c6fc68133728e5fcda87ba4efd1850fdf5d4
2020-02-17 15:49:37 +08:00
TreeHugger Robot
a3b86e211b Merge "Import translations. DO NOT MERGE" 2020-02-17 07:49:31 +00:00
Jackal Guo
957deabf29 Apply the screen matrix to the boundsInScreen
View could be embedded within a SurfaceView via SurfaceControlViewHost
now. We need to apply the screen matrix to the bound after that since
the host SurfaceView may scale or offset the embedded view. Otherwise,
the boundsInScreen would be incorrect.

Bug: 148821260
Test: a11y CTS & unit tests
Change-Id: Ia590cfd20b26a9d9c58b8499098d25ad9d67f261
2020-02-17 15:45:22 +08:00
TreeHugger Robot
92d21839f3 Merge "Remove FLAG_SHOW_FOR_ALL_USERS to avoid crash in a11y" 2020-02-17 07:29:45 +00:00
TreeHugger Robot
601847e5b9 Merge "Add tuner feature to PackageManager" 2020-02-17 07:26:31 +00:00
Chiachang Wang
3590ccd3fb Add NETWORK_SETTINGS to SystemApi
The permissions are checked by Tethering; mainline modules should be
able to do permission checks based on these permissions.

Bug: 135411507
Test: m
Test: make test-api-stubs-docs-update-current-api \
      system-api-stubs-docs-update-current-api

Change-Id: Ia617ea56aba18f98371d7dbd546679e0327bfacd
2020-02-17 14:51:31 +08:00
Kyunglyul Hyun
e8d6f95b29 Merge "MediaRouter2: Remove sendControlRequest" 2020-02-17 06:48:16 +00:00
Bill Yi
ff15164435 Import translations. DO NOT MERGE
Change-Id: I6ff099824dc2d947d0ad892ad4fd32ffdcb199de
Auto-generated-cl: translation import
2020-02-16 22:41:22 -08:00
Bill Yi
72d6aae8fb Import translations. DO NOT MERGE
Change-Id: I61abeb9aad87fd0915d4fecac2c62c319ada1051
Auto-generated-cl: translation import
2020-02-16 22:24:47 -08:00
TreeHugger Robot
34cbb22187 Merge "Tuner JNI: frontendCallback" 2020-02-17 06:13:46 +00:00
Bill Yi
1a8dc26b82 Import translations. DO NOT MERGE
Change-Id: Ibe51abb286ea28d80473b6918eafcb26ae741dfa
Auto-generated-cl: translation import
2020-02-16 22:07:34 -08:00
SongFerng Wang
e417bcfd31 Merge "Config of LTE signal strength default value remove SNR" am: b9e141bc55 am: c443e7ba90
Change-Id: I701cd94b9c06ce7fd072a6a5e923eea061e34ba9
2020-02-17 06:00:12 +00:00
Chalard Jean
14af825dbe [NS D02] Mix in the ignore on wifi policy.
Ultimately ConnectivityService and its satellites should mix in
some measurements to NetworkScore, but in the immediate future
they'll just use this to mix in at the new format the policy it
used to managed in an ad-hoc way.

As a first mix-in, this adds mixing in the IGNORE_ON_WIFI policy,
which so far used to be handled in Connectivity as the avoidBadWifi
bit. Ultimately this should move to Telephony.

Bug: 113554781
Test: ConnectivityServiceTest
Change-Id: I4869d5eb9ea74679e57c087005ed3d9b8119fed2
2020-02-17 14:58:31 +09:00
shubang
0184edc6ad Add tuner feature to PackageManager
Context: Tuner system APIs and Tuner HAL are adding to R. Tuner hardware
and HAL implementation are required for these new features.

Test: make;
Bug: 139308734
Change-Id: I89f56ee58cdfae447d33cdcd841e0d556e7f6cab
2020-02-16 21:44:55 -08:00
SongFerng Wang
c443e7ba90 Merge "Config of LTE signal strength default value remove SNR" am: b9e141bc55
Change-Id: I6dfeab49fd99678816d49c52e910cb1eaff1494d
2020-02-17 05:44:47 +00:00
SongFerng Wang
b9e141bc55 Merge "Config of LTE signal strength default value remove SNR" 2020-02-17 05:34:16 +00:00
Kyunglyul Hyun
c943f212a5 MediaRouter2: Remove sendControlRequest
Unused sendControlRequest is removed.
According to that, MediaRouter2ManagerTest is a little bit
modified.

Bug: 145487522
Test: atest cts realted to media router 2
Change-Id: I3c2c5d1c2c67a3398a45bb2fab4e90dcf90f627e
2020-02-17 14:02:48 +09:00
TreeHugger Robot
305c7391cc Merge "Avoid creating new instance on top when started for result in some cases" 2020-02-17 04:59:30 +00:00
Kyunglyul Hyun
1682f7a8bc Merge "Link MediaRouter2 from MediaRouter" 2020-02-17 04:55:05 +00:00
Jackal Guo
0d8fea17d3 Merge "Use boundsOnScreen to offset the translate" 2020-02-17 03:47:30 +00:00
TreeHugger Robot
71cb02dc18 Merge "Add new api for output switcher" 2020-02-17 03:38:58 +00:00
TreeHugger Robot
cbb9454cd6 Merge "Ensure clearCallingIdentity for getDisplayContentOrCreate" 2020-02-17 03:11:54 +00:00
Chalard Jean
922e1feecd Merge "[NS D01] Remove candidates that don't satisfy the request." 2020-02-17 02:49:34 +00:00
Ivan Chiang
9d0bd71ea9 Fix isDocumentMimeType issue in MediaFile
Bug: 149077289
Test: atest MediaFileTest
Change-Id: I541c32d7e44b852999dd1aefa531e7cd88978bc9
2020-02-17 10:42:59 +08:00
Trung Lam
38c4fcf917 Merge "Added missing protobuf for PeopleService data persistence." 2020-02-17 02:18:35 +00:00
Arc Wang
1caf57d5ca Rename PasspointConfiguration#getSubscriptionExpirationTimeInMillis
Rename to getSubscriptionExpirationTimeMillis.

Bug: 149434940
Test: compiles
Change-Id: I34f395d14bc03432170ecf2d331cf1bf5088ae68
2020-02-17 10:15:32 +08:00