Commit Graph

906 Commits

Author SHA1 Message Date
Colin Cross
7d089ac5ae Merge "Convert more of frameworks/base/packages to Android.bp" into stage-aosp-master am: ba9073a6a8
am: 97c07ce018

Change-Id: I515c0c0b6870f8eafd850011cf8c9799fdd72a90
2019-07-29 19:22:40 -07:00
Colin Cross
97c07ce018 Merge "Convert more of frameworks/base/packages to Android.bp" into stage-aosp-master
am: ba9073a6a8

Change-Id: I0298b237f67c860aa19be20aea4c820cda5520d0
2019-07-29 19:01:40 -07:00
Colin Cross
20bc2bf3f6 Convert more of frameworks/base/packages to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: m DynamicSystemInstallationService InputDevices MtpDocumentsProvider SimAppDialog
Change-Id: I851b819030a1da6091f5d6125a228bb01a99011b
2019-07-24 16:06:52 -07:00
Xiangyu/Malcolm Chen
dbb897ee22 Merge changes from topic "135105735" into qt-r1-dev
am: 896cdfa547

Change-Id: Ie661fdc8a29645fa1b319cf1db8a896a8d21deae
2019-07-12 10:43:52 -07:00
Malcolm Chen
ac56a4254e Provide @hide API to return merged IMSIs from grouping.
Bug: 135105735
Test: test app. Apply grouping and call the new API, to make sure
it returns correct values.

Change-Id: I99586976d3421d4b35be465201ee33cbb2dfd1d9
2019-07-11 13:19:36 -07:00
Lei Yu
62e334fc0f Merge "Use old API to build NetworkTemplate" into qt-dev am: e5fdc968a0
am: fd80b569f9

Change-Id: I028536be6c63a9c0424d998e5dd6fe14bf75c71e
2019-07-10 11:18:29 -07:00
Lei Yu
68178f853b Merge "Use old API to build NetworkTemplate" into qt-dev
am: e5fdc968a0

Change-Id: I35702ae50d5274defd6974245bf1209ad3a0115f
2019-07-10 11:07:38 -07:00
Lei Yu
fd80b569f9 Merge "Use old API to build NetworkTemplate" into qt-dev
am: e5fdc968a0

Change-Id: I3fcf42d184015e52d064baf6efdd38150fbc2b9b
2019-07-10 11:05:19 -07:00
Lei Yu
5e955861f9 Use old API to build NetworkTemplate
Use old API to be consistent with NetworkPolicyManagerService

Bug: 135105735
Test: RunSettingsLibRoboTests & Manual test
Change-Id: I5d04cfd962c3d09cac7d33a97f847771074ab258
2019-07-09 17:18:49 -07:00
Beverly
2fd1a1043b Merge "Log Preference changes when value is a String" into qt-r1-dev
am: c7f3fec1c2

Change-Id: Ic5efd2f583e7de0959109b5f41368fba3bc75f6e
2019-06-24 15:04:53 -07:00
Beverly
5090f7da48 Log Preference changes when value is a String
As long as the String can be converted to an integer

Test: atest SharedPreferenceLoggerTest
Fixes: 135937584
Change-Id: If58077c9c7b10373c4c2459d275add25a5bcdc05
2019-06-24 16:41:37 -04:00
Lei Yu
acae7eacd2 Merge "Use new API to build NetworkTemplate" into qt-dev
am: 8ed50556f5

Change-Id: I945f34dbe539ca8637182e10bea26778308292d4
2019-06-03 10:03:25 -07:00
Lei Yu
2a31c40e45 Use new API to build NetworkTemplate
This CL is built to make CBRS show correct data usage, by merging
all subscriberId under same groupuuid

Bug: 133865338
Test: RunSettingsLibRoboTests
Change-Id: I1c5084ff98ac9a71655cc93698f3e02268654977
2019-05-31 13:40:54 -07:00
Colin Cross
4a420d368f Merge "Make test_options.timeout an int64" am: 9a2d64872b
am: 9b4f268106

Change-Id: Id2c82d2be806d1f9c729b7b0428eccbf67db83d8
2019-05-30 20:24:19 -07:00
Colin Cross
c3378677a6 Make test_options.timeout an int64
Test: m RunSettingsLibRoboTests

Change-Id: I87e185a54474c43a0c5e77a657c28d3403354876
2019-05-30 11:39:13 -07:00
Colin Cross
32e0401582 Convert SettingsLib tests to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: m RunSettingsRoboTests
Test: atest SettingsLibTests (same failures before and after)
Change-Id: I69b5b2c6c22f93a31ef978710867226cb1ba3db0
Merged-In: I69b5b2c6c22f93a31ef978710867226cb1ba3db0
2019-05-29 14:44:48 -07:00
Philip P. Moltmann
cb9eac87e3 Merge "Whitelist all perms on installExistingPackage" into qt-dev
am: 4f09b09f62

Change-Id: I4846eb0e9ea4697d033000b46aa744a8ce70e2e6
2019-05-17 13:28:47 -07:00
Philip P. Moltmann
4f09b09f62 Merge "Whitelist all perms on installExistingPackage" into qt-dev 2019-05-17 19:56:19 +00:00
Lei Yu
642b6050a6 Merge "Add short version bluetooth device summary" into qt-dev
am: b899f8abdd

Change-Id: I8b5320baa917bacae85cb741ccf6bb43e90554a8
2019-05-16 11:57:36 -07:00
Lei Yu
b899f8abdd Merge "Add short version bluetooth device summary" into qt-dev 2019-05-16 18:18:45 +00:00
Xin Li
c76d117d2a DO NOT MERGE - Merge pi-platform-release (PPRL.190505.001) into stage-aosp-master
Bug: 132622481
Change-Id: I7ba1a9999b3a9bac8031dd086fa2632e45404f32
2019-05-15 11:31:45 -07:00
Philip P. Moltmann
a4bd150588 Whitelist all perms on installExistingPackage
The code allows to also whitelist only a select set of permissions, but
this is not yet exposed in the API.

Also: Fix up shell commands for restricted permissions

Fixes: 132368462
Test: - Enabled app via device admin in secondary profile
        -> verified that permissions were whitelisted
      - Installed existing and new app using --restrictpermissions and
        not
	-> verified that permissions were whitelisted or not
      atest AppRestrictionsHelperTest
            RestrictedPermissionsTest
Change-Id: I9cd76c555b40663f2e25ad86e8a54991baae346c
Merged-In: I9787e63d8beb8f6b1ba2d15532d4c0f69dbdf863
2019-05-15 11:09:45 -07:00
Lei Yu
fcde0225e6 Merge "Use merged NetworkTemplate to query data usage" into qt-dev
am: 35fcd6b0e3

Change-Id: I1030f49eb9e24ad8bc4a10c3ab8890c34d20f8f6
2019-05-14 17:51:03 -07:00
Lei Yu
35fcd6b0e3 Merge "Use merged NetworkTemplate to query data usage" into qt-dev 2019-05-15 00:27:23 +00:00
Lifu Tang
145832140a Merge "Add a parameter to filter out system apps" into qt-dev
am: 9a78a2a88c

Change-Id: Ifc78096c894db7562e7704ce96eaaa2c010c88a2
2019-05-13 17:21:17 -07:00
TreeHugger Robot
9a78a2a88c Merge "Add a parameter to filter out system apps" into qt-dev 2019-05-14 00:07:28 +00:00
Lei Yu
e63ca1b857 Add short version bluetooth device summary
Bug: 132640667
Test: RunSettingsLibRoboTests
Change-Id: I38e7eb486238637bdacfaf6b1140f1a24b71a066
2019-05-13 16:17:29 -07:00
Lei Yu
c00a30eb8a Use merged NetworkTemplate to query data usage
This CL uses merged NetworkTemplate so that it shows correct
data for carrier which is a virtual that has multiple
subscriberId under the hood.

By doing this, this CL also adds several hidden API so settings
can query by NetworkTemplate directly.

Fixes: 120566366
Test: RunSettingsLibRoboTests
Change-Id: I8b747697933c75b48b14387adafb5ac9ca165926
2019-05-13 11:42:23 -07:00
hughchen
97c717b9e9 Merge "Notify UI update when get onAudioModeChanged() callback" into qt-dev
am: ec14f42bd7

Change-Id: I123452f56c2f871f90d5c3b2d8d2411e5aba0c17
2019-05-10 11:48:40 -07:00
TreeHugger Robot
ec14f42bd7 Merge "Notify UI update when get onAudioModeChanged() callback" into qt-dev 2019-05-10 18:14:02 +00:00
Xiangyu/Malcolm Chen
5427a765f8 Merge "Mobile data in quick setting still work if default data not set" into qt-dev
am: c2d6cf12a2

Change-Id: I801050b9bf75f00c3da94d55ff19f29c2b743dd1
2019-05-10 01:42:10 -07:00
hughchen
db335faae8 Notify UI update when get onAudioModeChanged() callback
- Update test case

Bug: 132385707
Test: make -j42 RunSettingsLibRoboTests

Change-Id: I96043e2cf5411745483db00bb2bba982e68558ce
2019-05-10 10:15:31 +08:00
Xiangyu/Malcolm Chen
c2d6cf12a2 Merge "Mobile data in quick setting still work if default data not set" into qt-dev 2019-05-10 01:57:10 +00:00
Malcolm Chen
a1a7f192f9 Mobile data in quick setting still work if default data not set
Even if default data subscription is not set, we'll make "Mobile data"
toggle in quick setting work. It will find an active subscription, turn
on its mobile data, which implicitly makes it default data sub.

Bug: 132063538
Test: robo test and manual

Change-Id: I05263ca6e7e0f9171c6d34c7b628553b9ec506ab
2019-05-09 14:54:45 -07:00
Colin Cross
9f6df81fa3 Merge "Convert SettingsLib tests to Android.bp" into qt-dev-plus-aosp 2019-05-08 23:21:33 +00:00
Lifu Tang
b131757938 Add a parameter to filter out system apps
Bug: 124015107
Test: build, flash, and test manually
Change-Id: Id1dd5926b77b1b2ae68220f90af8aab6be8dc408
2019-05-07 17:53:28 -07:00
Daniel Nishi
02917dd5f7 Remove the cache size from internal size.
Because the system can automatically clear away cache data, we remove
usage of it from the list of app storage usage in Settings. This should
encourage developers to more aggressively use the unattributed cache,
rather than the attributed regular data folder.

This affects the following fields on the AppEntry: internalSize & str
and size & sizeStr (which are derived from the internal size).

Currently, ApplicationsState.AppEntry.internalSize, externalSize, and
size are only used in the Settings apps so this shouldn't have broader
implications.

Test: Manual verification of Other Apps page
Fixes: 131152171
Change-Id: I3eb2e28701490a543c633e9c95a280059bb99c21
2019-05-07 15:18:10 -07:00
Colin Cross
fdec9ffee0 Convert SettingsLib tests to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: m RunSettingsRoboTests
Test: atest SettingsLibTests (same failures before and after)
Change-Id: I69b5b2c6c22f93a31ef978710867226cb1ba3db0
2019-05-07 11:17:01 -07:00
Quang Luong
d20d4b1d65 Merge "Update Passpoint R1 AccessPoint with R2 config" into qt-dev 2019-05-03 21:31:30 +00:00
Quang Luong
e747f59665 Update Passpoint R1 AccessPoint with R2 config
Made sure to update the WifiConfiguration of a Passpoint AccessPoint
to update the friendly name if a user installs an R2 config over an
R1 config.

Bug: 131840803
Test: atest WifiTrackerTest
Change-Id: I39cd5679b65240dabee0f67df866e34d1700c769
2019-05-02 11:43:06 -07:00
TreeHugger Robot
781ebfb059 Merge "Catch NPE and add more logging for a crash in Tile" into qt-dev 2019-05-01 20:38:37 +00:00
Fan Zhang
5efaa86a8d Catch NPE and add more logging for a crash in Tile
Fixes: 131648303
Test: robotests
Change-Id: I879aad929b9620607612eb3456545ac2a8050ccc
2019-04-30 13:34:04 -07:00
clownshen
78be6541d6 Provide "Disconnected" in summary for detail page
Wi-Fi detail page need to use "Disconnected" instead of "Saved" to
improve UX.

Bug: 131119614
Test: atest AccessPointTest
Test: manual test
Change-Id: I8e1cec3c64a3118f6a7448b7ec233cd4d9a92942
2019-04-25 06:07:13 +00:00
Tarandeep Singh
3daa9f56b5 Fix: Allow system IME to be disabled when another IME is available
In P, pre-installed system IME could be disabled if an ASCII non-aux IME
was available. With I1352bf42dcb9219a370a16a381ea39c43c57637a,
system-IMEs could no longer be disabled. This was unintentional as the
method name isValidSystemNonAuxAsciiCapableIme was incorrect and it
wasn't checking isSystem() earlier.

This change renames it to isValidNonAuxAsciiCapableIme and removes the
system check in order to revert to original P behavior.

Change-Id: If40de88ca0536a4446135047b6ccab64681675ec
Fix: 124536147
Test: atest InputMethodPreferenceTest
Test: atest InputMethodAndSubtypeUtilTest
Test: Manually verified using steps in bug.
2019-04-17 16:20:12 -07:00
Daisuke Niwa
fc63619d49 Avoid NPE when accessing to EnforcedAdmin
NPE happens when "modify" is tapped on the carrier wifi network
connected using CarrierConfig information. null is passed to
sendShowAdminSupportDetailsIntent method through 2nd argument.

Bug: 128188146
Test: Manually verified the crash scenario
Test: RunSettingsLibRoboTests
Signed-off-by: Daichi Ueura <daichi.ueura@sony.com>
(Cherry-pick from pa/1302748)
Change-Id: If92c12041b91dbab0f083a1b49d263b201e87699
2019-04-15 13:09:58 -07:00
Ying Zheng
6e54927990 Remove the deprecated UserManagerHelper, new one is in car user lib.
Test: build
Bug: 130313554
Change-Id: Iee5282a9a40935c43dc1b4cb7814a67ac4324d7c
2019-04-11 10:20:34 -07:00
Ugo Yu
73c387d950 Bluetooth metadata API changes in SettingsLib
* Align with the changes of Bluetooth metadata API.
* Move metadata utils from Settings to SettingsLib.

Bug: 124448651
Test: make -j56 RunSettingsLibRoboTests
Change-Id: I431e7bcbd8123eacf0ed3b5ba87af6cc54670481
2019-04-09 11:49:32 +08:00
TreeHugger Robot
0e7083bcf3 Merge "Refactor PowerWhitelistBackend" 2019-04-03 20:41:21 +00:00
lindatseng
fff2b19e56 Fix tinting on injected pref icon in Tile
We used to tint the icon when refreshing Tile.  However, when we getIcon
from Tile, we get the icon directly from the icon resource but not the
copy of the tinted icon.  The tinting was not honored in this case.

Do a little refactor in this cl to tint the icon in Tile.getIcon
instead.

Test: Manual/Visual inspection, robotests
Fixes: 129010399
Change-Id: I88c9b00046534d8b9ddedce9009a6e340d42fca6
2019-04-02 16:29:04 -07:00
jackqdyulei
aaabf2b44d Refactor PowerWhitelistBackend
Extract method to check default active apps

Fixes: 118910079
Test: RunSettingsLibRoboTests
Change-Id: I7ff771d23d83d21e041a208619bbec885039c7a5
2019-04-02 14:48:08 -07:00