Commit Graph

468813 Commits

Author SHA1 Message Date
Automerger Merge Worker
65de31ca5d Merge "USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions" am: 2f9800a47d
Change-Id: Iaf10cf1c347b93eb87fa476d59b41fa35022cd80
2020-02-19 03:15:57 +00:00
Automerger Merge Worker
21e272d52e Merge "Add AdbTransportType.aidl. Add AdbWifi internal API stubs." am: c5cb13899d am: 44cf122df0
Change-Id: I44bd2674c6317231fc40afafdd133cff7757b523
2020-02-19 03:09:10 +00:00
James Wei
2f9800a47d Merge "USB: [API feedback] Add bitmask @IntDef annonation to setCurrentFunctions" 2020-02-19 03:04:09 +00:00
TreeHugger Robot
58b2432d03 Merge "Fix FillEventHistoryTest failed on CtsAutoFillServiceTestCases" 2020-02-19 03:00:30 +00:00
Automerger Merge Worker
44cf122df0 Merge "Add AdbTransportType.aidl. Add AdbWifi internal API stubs." am: c5cb13899d
Change-Id: I362b91ae3dd8cd2b696525e23ede9f3cb6c2f5d9
2020-02-19 02:52:39 +00:00
TreeHugger Robot
ecd28bc958 Merge "Framework changes to enable Notification listeners on Android Go." 2020-02-19 02:50:36 +00:00
Benedict Wong
24a2be8275 Add support for starting IKEv2/IPsec VPNs from settings
This commit allows the startLegacyVpn() call to start Platform VPN
profiles, allowing Settings to use the IKEv2/IPsec VPN options

When using an aliased private key, the
Ikev2VpnProfile.KEYSTORE_ALIAS_PREFIX must be prepended to the front of
the alias. This will in turn result in the fromVpnProfile() function to
pull the key from the KeyStore, as opposed to the inline-key that the
VpnManager API uses.

Bug: 148991741
Test: FrameworksNetTests passing, new tests added in subsequent CL
Test: Manually tested
Change-Id: Icbca695c353b2e12e99305676404dbf1a4495949
2020-02-19 02:44:34 +00:00
Joshua Duong
c5cb13899d Merge "Add AdbTransportType.aidl. Add AdbWifi internal API stubs." 2020-02-19 02:41:32 +00:00
Joshua Duong
b401e0a8bb Add AdbTransportType.aidl. Add AdbWifi internal API stubs.
Since wireless debugging can be enabled without usb debugging enabled,
we'll need to differentiate between which transport is enabled.

Also added the internal AdbManager stubs for wireless debugging. Adding
implementation in separate CL to get around merge conflict with a SysUI
CL in the stack.

BUG: b/111434128

Test: make
Exempt-From-Owner-Approval: already approved
Change-Id: I4e1ae6398f291f321e61e7eb119564ebd5e54c2e
2020-02-19 02:41:21 +00:00
Jeffrey Huang
1e4368aa43 Comment out Statsd tests
Added todos to make them ues the new schema.

Bug: 145923087
Test: m -j && bit statsd_test:*
Change-Id: I0749760eb3123407b78b9ace9a93967bac727bf5
2020-02-18 18:36:02 -08:00
Tej Singh
d87589549f Turn off cpp aidlgen, link libstatssocket as share
Test: make
Change-Id: I052fa53544e47eff6d1d8f409b62569e3d59fd04
2020-02-18 18:32:56 -08:00
Lyn Han
93cd313e05 Set default a11y notification title to "bubble"
Fixes: 132790058
Test: atest SystemUITests
Change-Id: Ib9bfeb2c124079be4ddee77d94bdc34ae875d3c3
2020-02-18 18:22:05 -08:00
David Su
7751734bb7 CurrentTimeMillisLong: Move to framework-annotations
Move CurrentTimeMillisLong to
framework-annotations since it is used by other
modules besides MediaProvider (e.g. Wifi).

Bug: 149605228
Test: compiles
Change-Id: If5a3c77391a63eb11e682b7654864c2bef8b87d4
2020-02-18 18:10:07 -08:00
Bill Yi
4ef4b08659 Merge "Import translations. DO NOT MERGE" 2020-02-19 02:08:55 +00:00
Lyn Han
d698186a64 Dismiss bubbles into overflow
Fixes: 149716471
Test: manual -> dismiss single bubble -> bubble in overflow
Test: manual -> dismiss stack -> create bubble -> expand stack ->
previous bubbles in stack now in overflow

Change-Id: I6897a369f734af18029872c65b6f104eb701b202
2020-02-18 18:01:43 -08:00
Mehdi Alizadeh
10e88cc150 Overrides permission check in tests to fix failing unit tests
Bug: 149793111
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10

Change-Id: I524985ca8c28a2b75dc584fb70761a1ce1598882
2020-02-18 18:01:13 -08:00
Automerger Merge Worker
b79f0c4c12 Merge "Declare a public field for new Japanese Era Reiwa" am: 857636e059 am: 191127c556
Change-Id: I2a504ebd0cbc42567daed02dd8a2ce4f43461d38
2020-02-19 01:53:12 +00:00
Songchun Fan
7c0f3292cf copy first level apk dir on movePackage
The goal is to make sure the code path still has two levels after the
move, on the target storage.

Test: manual as follows:
$ adb install ~/Downloads/yelp.apk
$ adb shell
walleye:/ # su
walleye:/ # sm set-virtual-disk true
walleye:/ # sm list-disks
disk:7,224
walleye:/ # sm partition disk:7,224 private
walleye:/ # sm list-volumes
private mounted null
private:7,226 mounted ea386596-0d69-4cd7-87f8-2d77ced59f0c
emulated;0 mounted null
emulated:7,226;0 unmounted null
walleye:/ # pm move-package com.yelp.android ea386596-0d69-4cd7-87f8-2d77ced59f0c
Success

Example log:
PackageManager: Update package com.yelp.android code path from /data/app/~~LKNWa_moIm9tFw5KY5E7ZA==/com.yelp.android-VgweFDciQH9cPQLnkooiMA== to /mnt/expand/ea386596-0d69-4cd7-87f8-2d77ced59f0c/app/~~LKNWa_moIm9tFw5KY5E7ZA==/com.yelp.android-VgweFDciQH9cPQLnkooiMA==

BUG: b/148844589 b/148237378
Change-Id: I46109a7befa8971a05049b4f495ca0d73e244a0b
2020-02-19 01:46:27 +00:00
Automerger Merge Worker
191127c556 Merge "Declare a public field for new Japanese Era Reiwa" am: 857636e059
Change-Id: I623b5af1467b4f511d0d7a7c69b58f1768493fe0
2020-02-19 01:41:27 +00:00
Automerger Merge Worker
a61f378be4 Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" am: 7e0dbc53e3 am: 5f0be54993
Change-Id: I7cc74f3344804e19051eb5bdd49f7c8b83b18722
2020-02-19 01:37:37 +00:00
Automerger Merge Worker
2aeef3b8cf Merge "[adbwifi] Add settings event for opening adb device details." am: 085565313b am: 04f1c4267b
Change-Id: I3b45fe66f5644f1c4bbc920c1dc7dc372b3497db
2020-02-19 01:37:10 +00:00
Treehugger Robot
857636e059 Merge "Declare a public field for new Japanese Era Reiwa" 2020-02-19 01:30:47 +00:00
Dan Stoza
b04705837a Add PowerManager#getThermalHeadroom
Adds getThermalHeadroom, which allows users to determine how close the
device currently is to SEVERE thermal throttling. For intensive
applications which can scale their workloads, this allows them to help
manage the thermal envelope of the device.

Test: Manual, modify Filament test app to call and observe values
Test: PowerManagerTest#testGetThermalHeadroom
Test: atest android.os.cts.PowerManager_ThermalTest
Test: atest com.android.systemui.statusbar.phone.StatusBarTest
Test: atest CachedDeviceStateServiceTest
Test: atest AbstractAccessibilityServiceConnectionTest
Test: atest KeyEventDispatcherTest
Test: atest AttentionManagerServiceTest
Test: atest HdmiControlServiceTest
Test: atest ThermalManagerServiceTest
Test: atest RecoverySystemServiceTest
Bug: 136285293
Change-Id: I26e1c849c4b08cbf7ee0057f555cf0893750da43
2020-02-18 17:29:26 -08:00
Darryl Johnson
75088d14f4 Merge "Revert creation of home stack from WindowState#getRootTask()." 2020-02-19 01:21:56 +00:00
Automerger Merge Worker
5f0be54993 Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" am: 7e0dbc53e3
Change-Id: I0fe3fadb78a1fc92463c498ce1cf01d9fbffb362
2020-02-19 01:21:49 +00:00
Automerger Merge Worker
04f1c4267b Merge "[adbwifi] Add settings event for opening adb device details." am: 085565313b
Change-Id: I54b4fafac3cd092258c7ad990f4dfdb7342b5816
2020-02-19 01:20:20 +00:00
David Su
121cfa79db Rename OsuLogin package to com.android.hotspot2.osulogin
Currently, it is "com.android.hotspot2", which is
too generic, as in the future we may add more
Passpoint-related apps. Rename the package name
to be more specific.

Bug: 149589553
Test: Connecting to an OSU network automatically
opens the OsuLogin activity

Change-Id: I115a4a70379a7e897c6f82dd4eef1ef50625a6ef
2020-02-18 17:18:13 -08:00
Shu Chen
d931a4763f Supports dynamic height for the new magnifier.
And also limits the pre-magnified line height:
 - If the text line height is too big, don't show the magnifier.
 - If the text line height is too small, enlarges the zoom factor so
   that the magnified text can be seen clearly.

Bug: 77791703, 148181186
Test: locally verified.
Change-Id: I4cf56e0a54fda6b23dafe153040fe5ba206f5f1f
2020-02-19 09:17:01 +08:00
Sudheer Shanka
4c3249b2fd Merge "Read the sessionId value as long." 2020-02-19 01:16:46 +00:00
Mikhail Naganov
cb96e93b86 media: Do not use forward declaration for AudioPlaybackRate
AudioPlaybackRate becomes a typedef from a C struct,
thus forward declaring it as "struct AudioPlaybackRate"
is not correct anymore.

Bug: 133526565
Test: m
Change-Id: I400049d8445640dc40937ff9e9891ef8c7ad8094
2020-02-18 17:13:33 -08:00
Junyu Lai
7e0dbc53e3 Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" 2020-02-19 01:10:38 +00:00
Valerie Hau
21bb59188e Query to SystemProperties for BLAST Flag
For some reason DeviceConfig is not successfully querying the
value on crosshatch - move to query SystemProperties directly

Bug: 147096935
Test: build, boot, adb shell device_config put
window_manager_native_boot wm_use_blast_adapter true/false + reboot

Change-Id: Ic09d1b4446f948248e4e58a6a4f3dc336131a5d0
2020-02-18 17:10:01 -08:00
Lee Shombert
9202f4dbd3 Binder cache for Bluetooth getBondState()
Bug: 140788621

Test: A special build that puts the PropertyInvalidatedCache in verification
mode was loaded on the device.  Then one iteration of MPTS was executed.  No
cache inconsistencies were found and no SELinux violations (associated with
the binder cache) were found.  The number of cache misses was approximately
10% of the total binder calls.  Then the phone was cycled through bluetooth
pairing and unpairing events.

Change-Id: Ia494f0ad58b889130052e5beb3bec6d1011508ef
2020-02-19 01:04:44 +00:00
Automerger Merge Worker
725617e9a4 Merge "DO NOT MERGE Dismiss system dialog" into qt-qpr1-dev am: e59b568ac4
Change-Id: I00b2a53fc76f3a64f307617b7b448191a71f9b5a
2020-02-19 00:59:53 +00:00
Automerger Merge Worker
fcbb0e0faa DO NOT MERGE Dismiss system dialog am: 07af69531c
Change-Id: I49650bdefe90510fde2f6de95f32a7229b1a17e4
2020-02-19 00:59:43 +00:00
Joshua Duong
085565313b Merge "[adbwifi] Add settings event for opening adb device details." 2020-02-19 00:59:17 +00:00
Philip P. Moltmann
e01d126aaf Merge "Revert "Make PermPolicySvc based on uid"" 2020-02-19 00:55:28 +00:00
Automerger Merge Worker
b585c1cc78 Merge "[SP12] Remove the usage of getVtDataUsage" am: cde5e170b0 am: 565f09f97c
Change-Id: Ia10e2365d5f02a1e3444d80e6d7f9d5da00264e0
2020-02-19 00:54:03 +00:00
Automerger Merge Worker
893bf3b7f5 Merge "Improve BaseBundle#kindofEquals" am: 42ab50d14b am: 1f82fbb4ac
Change-Id: I0dadb4269692a86cab1c66e1c69d9a95bfddd9a2
2020-02-19 00:53:38 +00:00
Sudheer Shanka
3899bdc898 Merge "Add CtsBlobStoreHostTestCases to test_mapping." 2020-02-19 00:45:38 +00:00
Henry Fang
5cba7b1136 Use Tuner Resource Manager to get resource permission
Cooperate with Tuner Resource Manager to allocate and free CAS session resource

bug: 141783130
Test: Manual
Change-Id: I2fb09d8def0fcfa19d568e8c618b1824158ceda9
2020-02-18 16:45:29 -08:00
TreeHugger Robot
e59b568ac4 Merge "DO NOT MERGE Dismiss system dialog" into qt-qpr1-dev 2020-02-19 00:41:29 +00:00
Automerger Merge Worker
565f09f97c Merge "[SP12] Remove the usage of getVtDataUsage" am: cde5e170b0
Change-Id: I4e617685c887098e5a93905b77455fb42116a99c
2020-02-19 00:33:48 +00:00
Automerger Merge Worker
1f82fbb4ac Merge "Improve BaseBundle#kindofEquals" am: 42ab50d14b
Change-Id: Ic5c2c5bcf979236c77344d0507d071bbb83f624e
2020-02-19 00:33:09 +00:00
Automerger Merge Worker
3e2818affd Merge "Separate icon sizes for sharesheet and resolver list." into qt-qpr1-dev am: f51ae98a50
Change-Id: If92a37cf5075e645475eee3fb67cdecebef6ad20
2020-02-19 00:32:02 +00:00
Hai Shalom
efc940ff3f [Passpoint] Remove throws IllegalStateException form getUniqueId API
Following up on feedback from API council:
Remove throws IllegalStateException form PasspointConfiguration#getUniqueId
API. No need to explicitly declare runtime exceptions.

Bug: 149758065
Test: PasspointConfigurationTest
Change-Id: I9022a7c87ef9839c6b60fdfd8394915779fa708b
2020-02-18 16:24:49 -08:00
TreeHugger Robot
28454c730a Merge "Allow statsd to link against libstatslog" 2020-02-19 00:24:10 +00:00
TreeHugger Robot
df0edf1aac Merge "Enable compositor shadows for PIP" 2020-02-19 00:23:56 +00:00
Hui Yu
b9a91a633f FGS BG start restriction enforcement mode.
Change the "FGS background start while-in-use permission restriction"
feature from permissive mode to enforcement mode, which means, the
restriction is turned on.

It denies while-in-use location, camera, record_audio permissions in
foreground service started from background ("Always" permissions are
not denied).

Bug: 136219221
Test: atest android.app.cts.ActivityManagerProcessStateTest

Change-Id: If6bf8309f5af8210ee536fdd484d7e17d0dc12c5
2020-02-18 16:23:52 -08:00
Sudheer Shanka
ab4a8ae4df Don't hold any locks while computing the blob digest.
Computing the digest could take long and there is no need to hold
any locks for this.

Test: atest --test-mapping apex/blobstore
Change-Id: If986e90743a6fc244f3afb7615d6167790077d23
2020-02-18 16:22:52 -08:00