Commit Graph

3759 Commits

Author SHA1 Message Date
Bill Yi
51a197d06f Merge "Import translations. DO NOT MERGE" 2019-02-06 00:11:40 +00:00
TreeHugger Robot
e53c2f7a0f Merge "Allow querying for multiple uids in NetworkCycleDataForUidLoader." 2019-02-05 22:11:04 +00:00
Stanley Tng
1617377d1b Merge "Update the Hearing Aids Strings" am: 3fdbf46ac1 am: aa36e0d7b0
am: 5110d23b6d

Change-Id: I2602784a871be4b286134373a1d9def6ca472d34
2019-02-05 13:31:56 -08:00
Stanley Tng
5110d23b6d Merge "Update the Hearing Aids Strings" am: 3fdbf46ac1
am: aa36e0d7b0

Change-Id: I5022edcd208b26ef2b99e13666b3925a9f2ecd2a
2019-02-05 13:15:26 -08:00
Treehugger Robot
3fdbf46ac1 Merge "Update the Hearing Aids Strings" 2019-02-05 20:20:51 +00:00
TreeHugger Robot
6745b68f81 Merge "Provide java_defaults as a counterpart to the settings.mk file" 2019-02-05 19:40:23 +00:00
Yohei Yukawa
d20eef826c Query right user's system IMEs in AppRestrictionsHelper
It turns out that AppRestrictionsHelper#addSystemImes() has always
queried for the owner user's system IMEs despite the fact that it's
trying to query system IMEs for a restricted profile user.  This
behavior has not changed since its beginning [1].

Most likely people would not have noticed this though, because:

* Settings app does not show a menu item to create a restricted user
   on phone devices.
 * Even if it's available, most people do not use restricted users.
 * Even if someone created a restrected user, most likely the owner
   user and the restrected user share the same set of system IMEs,
   which are defined as "pre-installed" IMEs.

Anyway, AppRestrictionsHelper#addSystemImes() will start using a newly
introduced @hide API IMM#getEnabledInputMethodListAsUser() so that it
can query for the right user's system IMEs, instead of querying owner
user's ones.

 [1]: Ifced841ad3bfbde33d2403356216dd1749b7fa9a
      a7a93784d1f9798d37cb618def1a558f8d626f0f

Bug: 122164939
Test: atest SettingsLibTests:AppRestrictionsHelperTest
Test: manually done as follows.
  1. Build aosp_taimen-userdebug and flash it.
  2. adb shell pm create-user --restricted test_profile
  3. adb shell am start -a android.settings.USER_SETTINGS
  4. Click the gear icon next to the "test_profile" user.
  5. By adding a log, make sure that IMMS#getInputMethodList()
     gets called with userId = 10.
Change-Id: I5b50b5fe143c74c87b331bda3e5bcc4d6248436e
2019-02-05 10:45:32 -08:00
Stanley Tng
73fcb83273 Update the Hearing Aids Strings
Minor update to the Hearing Aids string by making it plural.

Bug: 121036176
Test: Compile
Change-Id: I2745d797923f896e91c3146ca907cca85d5099e4
2019-02-02 17:56:58 +00:00
Bill Yi
e5f6df6f17 Import translations. DO NOT MERGE
Change-Id: Iab916f0d073867f800b8da088bb3cc35299c3aa9
Auto-generated-cl: translation import
2019-02-01 22:10:10 -08:00
Daniel Nishi
8970bc35e6 Merge "Use the correct Smart Storage flag in SettingsLib." into pi-dev
am: b8c9dace53

Change-Id: Id04613a0bbe6c2147a9fc176c5add96d12ed6d46
2019-02-01 13:16:06 -08:00
Daniel Nishi
b8c9dace53 Merge "Use the correct Smart Storage flag in SettingsLib." into pi-dev 2019-02-01 20:44:53 +00:00
TreeHugger Robot
934d626c99 Merge "Allow ActionBarShadowController to attach to Views." 2019-02-01 15:50:52 +00:00
Quang Luong
56a967e115 Merge "Removed SSID from connected Passpoint network summary" 2019-02-01 03:43:57 +00:00
Quang Luong
98d06bd9a4 Removed SSID from connected Passpoint network summary
Special case for connected Passpoint network summary has been removed.
Text should now display "Connected" instead of "<SSID> by <ProviderName>

Bug: 118705403
Test: manual, build and visual check
Change-Id: I458ea3df35fc942b9f920213ef5310d00ffe1747
2019-01-31 13:00:36 -08:00
Soonil Nagarkar
32bee192b4 Remove dead code
Bug: 118883513
Test: manually
Change-Id: I0bbdfac91cbe26d08445178b5690c2e9171a39c8
2019-01-31 10:32:28 -08:00
Joel Galenson
de5b585072 Allow ActionBarShadowController to attach to Views.
Instead of only allowing ActionbarShadowController to attach to
RecyclerViews, we allow it to attach to any View, as we can listen to
scroll events on them.

Test: See correct behavior when scrolling app info.
Test: atest ActionBarShadowControllerTest
Change-Id: I286a83599bd60ca0a592ee49198b284c5561ec58
2019-01-30 15:47:42 -08:00
Doris Ling
e6854876bd Allow querying for multiple uids in NetworkCycleDataForUidLoader.
- since we might want to get aggregated usage data for multiple uids,
change the implementation to allow adding multiple uids instead of
always querying for a single uid.

Change-Id: I26ba07042f8a0a0800e6d0ad0938da70691c3500
Fixes: 122200400
Test: make RunSettingsLibRoboTests
2019-01-30 13:52:18 -08:00
Dan Sandler
cf318694e4 Merge "Some of us are weird." am: 559d6018b6 am: 99c3f55c89
am: 9007b5e977

Change-Id: Ie403557c8295b7d708ffcb0fbf800e8ac27f31a7
2019-01-30 13:34:35 -08:00
Dan Sandler
9007b5e977 Merge "Some of us are weird." am: 559d6018b6
am: 99c3f55c89

Change-Id: I9605a2e5f9efd41ca4c5eb0e6f0c636e6920774d
2019-01-30 13:24:06 -08:00
Quang Luong
e075a65a06 Merge "Simplified OSU status strings in wifi picker" 2019-01-30 21:14:10 +00:00
Dan Sandler
559d6018b6 Merge "Some of us are weird." 2019-01-30 20:58:46 +00:00
Oscar Shu
aaf9b88835 Merge "Revert "Wifi MAC Randomization: Developer option change global settings"" 2019-01-30 10:55:34 +00:00
TreeHugger Robot
4052ef8e89 Merge "Move ActionBarShadowController to settingslib." 2019-01-30 04:29:44 +00:00
Roshan Pius
bd8c27ee36 Merge "AccessPoint: App attribution for suggestion/specifier" 2019-01-30 03:03:20 +00:00
Quang Luong
f005c88c1e Simplified OSU status strings in wifi picker
OSU status and failure messages have been simplified to be more
user friendly rather than reflect every status/failure code.

Test tracker for adding robolectric tests: b/122849296

Bug: 118705403
Test: manual, build and visual check
Change-Id: I8762c60d959f2d8500fbd1434e0f289d075bdbdb
2019-01-29 16:56:14 -08:00
Sasha Smundak
0f019d083e Provide java_defaults as a counterpart to the settings.mk file
To be used during the Android.mk->Android.bp conversion.

Test: treehugger
Change-Id: I9e57744737430ff7e1ab57891dc81d1dd3bbcb83
2019-01-29 16:52:09 -08:00
Fan Zhang
391da986af Move ActionBarShadowController to settingslib.
And remove dependency to settingslib.core.Lifecycle. This class use
androidx.Lifecycle instead.

Bug: 123311100
Test: robotests
Change-Id: I80bbbf4bc2759e574d8dabf1799b3bded216f2f3
2019-01-29 15:51:31 -08:00
Amin Shaikh
f3a942751a Consolidate 3 phone icons into one.
ic_bt_cellphone, ic_volume_voice, ic_phone_24dp -> ic_phone

Bug: 122263617
Test: make
Change-Id: Id3a518209e78d1f51b3cc1945bcbeba1bdcb2e23
2019-01-29 18:23:55 -05:00
Dan Sandler
8c6ff42abc Some of us are weird.
Test: dsandler can give OWNERS approval
Change-Id: I9b4f7903513e7171dfa51aa39a32b6bcfbfbb0eb
2019-01-29 14:44:39 -05:00
Oscar Shu
ca823585e4 Revert "Wifi MAC Randomization: Developer option change global settings"
This reverts commit 0a20eda58d.

Reason for revert: Enabling feature by default. Global flag moved to OEM configurable overlay instead

Bug: 123408542
Test: unit tests
Test: Manually verify developer option is gone

Change-Id: I34bfedba786e53426a941ad12ea7c7b119987420
2019-01-29 10:27:51 -08:00
Roshan Pius
e9b8e50774 AccessPoint: App attribution for suggestion/specifier
Use the wifiInfo field to attribute the app that provided the network
suggestion or specified that provided the connection.

Bug: 115504887
Bug: 113878056
Test: atest AccessPointTest WifiTrackerTest
Test: Manual UI verification
Change-Id: Ibea13207622245efc198dc51957cac9f6e2dc526
2019-01-29 10:23:46 -08:00
Bill Yi
99f5bed4c9 Import translations. DO NOT MERGE
Change-Id: I565265ff23471b5d0be1e0d5b67e9dc1d5310205
Auto-generated-cl: translation import
2019-01-28 23:46:53 -08:00
Daniel Nishi
7a118345e3 Use the correct Smart Storage flag in SettingsLib.
Previously, the show_opt_in and enabled flags were conflated to
basically mean the same thing. Because we are now distinctly making
show_opt_in refer to showing a toggle to opt into the feature in SUW and
enabled to mean the default enabled status, we need to change the
utility method for querying the default enabled status.

Bug: 122461924
Test: RunSettingsLibRoboTests
Change-Id: I9802d307597d90514e7dc6631998daa1d2fab253
Merged-In: I9802d307597d90514e7dc6631998daa1d2fab253
2019-01-28 21:26:48 +00:00
Amin Shaikh
10f363bb18 Move SettingsLib icons to android.
Bug: 122263617
Test: make
Change-Id: I11ce02f3f65f429fd4375a5522c060c8080f4813
2019-01-25 15:26:41 -05:00
Doris Ling
1bbc8a56c4 Merge "Fix inconsistent data usage cycle start time." 2019-01-24 22:29:05 +00:00
Doris Ling
bf7c8989df Merge "Hide mainline module apps in settings." 2019-01-24 20:50:03 +00:00
yuemingw
f5ea386ddc Handle null for the return of getCrossProfileCalendarPackages.
The return value of this API could be null after our decision for
API change as in b/121179845.

Bug: 121179845
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I834ccf83ecca8959d95288ac4fa1473d12eabfca
2019-01-24 10:06:58 +00:00
Doris Ling
f3acebfb14 Fix inconsistent data usage cycle start time.
- change the detail adapter start time to be 4 weeks before end time,
even if it is earlier than history start time, to be consistent with
other places that the cycle period is shown.

Change-Id: I62846022a10597f9e8618907500613357a1f6551
Fixes: 121045978
Test: make RunSettingsLibRoboTests
2019-01-23 17:46:31 -08:00
TreeHugger Robot
bfda3a937a Merge "Add an empty text when there is no app view." 2019-01-23 03:42:40 +00:00
Quang Luong
c84e08203e Merge "Remove double quote from AP key from a WifiConfiguration" 2019-01-22 22:54:56 +00:00
TreeHugger Robot
9e10c87914 Merge "passpoint-r2: change the name for OSU_FAILURE_INVALID_SERVER_URL." 2019-01-22 18:07:23 +00:00
TreeHugger Robot
39adac52d0 Merge changes from topic "media_output_slice"
* changes:
  Add test case for media manager
  Add constants for launch MediaOutput slice
  Add onConnectedDeviceChanged() onServiceConnected() callback
2019-01-22 08:52:57 +00:00
Ajay Panicker
454e59d5a1 Merge "Add Filtering for snoop logs based on L2CAP and RFCOMM Channels (2/4)" 2019-01-22 00:00:12 +00:00
tmfang
7a91a0d03b Add an empty text when there is no app view.
This widget only shows title and empty text
when there is no any app view shown.

Test: visual, robotest
Bug: 120873123
Change-Id: I2079c1e47de5b7fb2d4ea4740dfba4809375c7c1
2019-01-21 18:05:18 +08:00
hughchen
61c1c9f059 Add test case for media manager
Bug: 121083246
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I60b11ddef57a303c154e5e04e6425cf632842d7a
2019-01-21 15:05:20 +08:00
hughchen
f4caa42830 Add constants for launch MediaOutput slice
Bug: 121083246
Test: Build pass
Change-Id: I5695fdca1d2fb0886cafe3d067c1ec65c6777106
2019-01-21 11:51:48 +08:00
hughchen
bd0dd4941c Add onConnectedDeviceChanged() onServiceConnected() callback
- Add onConnectedDeviceChanged() callback to notify MediaDevice
  to change their connect state.

- Add onServiceConnected() to handle profile not ready
  case. The profile may not ready when calling startScan().
  Device status are all disconnected since profiles are not ready to connected.
  In this case, we observe onServiceConnected() in LocalBluetoothProfileManager.
  When A2dpProfile or HearingAidProfile is connected will call buildBluetoothDeviceList()
  again to find the connected devices.

Bug: 121083246
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I6d8bacb9bbd2221eb8c97bbd0419b4e8c9d8dfea
2019-01-21 11:51:48 +08:00
TreeHugger Robot
5985ddbf13 Merge "Import translations. DO NOT MERGE" 2019-01-19 17:08:35 +00:00
Bill Yi
104bb9b64e Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2f3f1646e9214c754874bd2a4c3642682fd5b204
2019-01-19 06:04:11 -08:00
Bill Yi
31d1568da8 Import translations. DO NOT MERGE
Change-Id: Ia9c416df379a7db8d471cfb6620a3c296c695085
Auto-generated-cl: translation import
2019-01-19 05:44:54 -08:00