Dmitri Plotnikov
c81b26587c
Merge "Fix missing time-in-foreground and time-in-background for some apps" into sc-dev am: 6c09370c43
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14911672
Change-Id: I66e7320edfddd234add418d8feb57ebdb567d29d
2021-06-10 16:22:10 +00:00
Dmitri Plotnikov
6c09370c43
Merge "Fix missing time-in-foreground and time-in-background for some apps" into sc-dev
2021-06-10 16:10:42 +00:00
Alex Johnston
6a1fd88860
Merge "RequestManageCredentials landscape mode" into sc-dev am: 17101d6ebe
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14874757
Change-Id: Ie8ab9ae28855e7b1c5498a2e02d28c4925325044
2021-06-10 09:50:25 +00:00
Alex Johnston
12a4f45c57
Merge "Credential management app UI tweaks" into sc-dev am: e2f5b87c14
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14817109
Change-Id: Ieda17041b5818f632c0586800d4cc98b3ff15974
2021-06-10 09:50:17 +00:00
Alex Johnston
17101d6ebe
Merge "RequestManageCredentials landscape mode" into sc-dev
2021-06-10 09:38:29 +00:00
Alex Johnston
e2f5b87c14
Merge "Credential management app UI tweaks" into sc-dev
2021-06-10 09:38:15 +00:00
TreeHugger Robot
8c4a1e129a
Merge "Remove FLAG_ACTIVITY_NEW_TASk when there is transition" into sc-dev am: 970e76fd59
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14880238
Change-Id: I82055f3fba3ba7101a3c51a1f5feba4db153bb1b
2021-06-10 08:00:59 +00:00
TreeHugger Robot
970e76fd59
Merge "Remove FLAG_ACTIVITY_NEW_TASk when there is transition" into sc-dev
2021-06-10 07:47:29 +00:00
Dmitri Plotnikov
1afe9c0ddc
Fix missing time-in-foreground and time-in-background for some apps
...
The gist of the issue is that many apps have two UIDs associated
with them: a regular, "real" UID, e.g. 10123, and a shared group GID,
e.g. 50123, which is used for multiuser support.
Prior to this fix, the code in BatteryAppListPreferenceController,
would go over the list of all UidBatteryConsumers and would randomly
encounter either the "real" UID or the shared GID for each app first.
The UidBatteryConsumer for a shared GID does not have all of the
properties of the real UID, so some information, such as
time-in-foreground and time-in-background would be lost with
a high probability.
After this fix, we process "real" UIDs before shared GIDs ensuring
that time-in-* and other properties such as package names are obtained
for the real UID. When we later encounter a shared GID for the same app,
we just add the consumed power and time-in-* durations to the real UID's
BatteryEntry.
Bug: 188656360
Test: make RunSettingsRoboTests
Test: make RunSettingsGoogleRoboTests
Change-Id: I4bfea813ac5eb8f866804b2c4a9153eb877fb325
2021-06-10 05:58:15 +00:00
TreeHugger Robot
555fb90e50
Merge "Fix shifting problem in location services page" into sc-dev am: c547c43977
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14912504
Change-Id: I14c94ab95a3f6148900c9858a759789efef117d5
2021-06-10 05:41:00 +00:00
TreeHugger Robot
c547c43977
Merge "Fix shifting problem in location services page" into sc-dev
2021-06-10 05:25:16 +00:00
Tom Hsu
96c1ff8d06
Merge "[Settings] Disable gear button if user is not admin." into sc-dev am: a2a570f60b
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14819346
Change-Id: Ib263e0b74e2b5708c7723f6bc8498e2c9dd712e5
2021-06-10 04:11:52 +00:00
Tom Hsu
b235d51559
Merge "[Settings] Resolves unsynced infomation between status bar and settings" into sc-dev am: 8974f99365
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14877595
Change-Id: I06726069d5e99e2b4870c32d17718df0819cfb47
2021-06-10 04:11:38 +00:00
Tom Hsu
a2a570f60b
Merge "[Settings] Disable gear button if user is not admin." into sc-dev
2021-06-10 04:00:12 +00:00
Tom Hsu
8974f99365
Merge "[Settings] Resolves unsynced infomation between status bar and settings" into sc-dev
2021-06-10 03:58:00 +00:00
Tsung-Mao Fang
cbf5ccab0e
Fix shifting problem in location services page
...
Controller generates the injection location settings
in updateState() which happens in onResume.
That's the primary reason why we observed the shifting issue.
In a good practice, we generate preference in displayPreference(),
and then update the setting state in updateState().
In this cl, we create a base controller class to encapsulate
most implementation, and developer need to inject location
services in child class.
Test: Add work profile, and see correct services list.
Bug: 183169265
Change-Id: I5735ba974da87ad83b56791abd8a8637c2317571
2021-06-10 11:26:23 +08:00
Joshua Mccloskey
115302057b
Merge "BiometricEnrollIntroduction button update" into sc-dev am: cc9a251082
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14909536
Change-Id: I59c751047daa2028b1c6baaf2a2f9260e3d58e3d
2021-06-09 20:31:58 +00:00
Joshua Mccloskey
cc9a251082
Merge "BiometricEnrollIntroduction button update" into sc-dev
2021-06-09 20:11:48 +00:00
Julia Reynolds
c0e361ba79
Merge "Update method name" into sc-dev am: a2c2889c78
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14919903
Change-Id: Iaedb06a7d862f708af1ba1139f17a648d74ace4e
2021-06-09 18:02:33 +00:00
Julia Reynolds
a2c2889c78
Merge "Update method name" into sc-dev
2021-06-09 17:33:23 +00:00
TreeHugger Robot
5ccaa61a2f
Merge changes from topic "free_up_space_card_preference" into sc-dev am: a23533cbdd
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14909652
Change-Id: I181cc7e6385a87f40d8632db84e98f4e9b279206
2021-06-09 17:04:12 +00:00
TreeHugger Robot
a23533cbdd
Merge changes from topic "free_up_space_card_preference" into sc-dev
...
* changes:
Tweak UI of CardPreference and ContextualCard
'Free up space' uses CardPreference
2021-06-09 16:45:54 +00:00
Julia Reynolds
b70d3d5c13
Update method name
...
Test: RoboTests
Bug: 184709662
Change-Id: I3a998a151f9647efae00909e2b4f88fa27d645eb
2021-06-09 09:53:09 -04:00
Yi-Ling Chuang
aba4103920
Merge "Suppress Shared Axis transiiton on the SIM dialog" into sc-dev am: 562ad29721
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14880642
Change-Id: I13353feb811de25053023358d955db1eff957bf5
2021-06-09 13:19:12 +00:00
Yi-Ling Chuang
562ad29721
Merge "Suppress Shared Axis transiiton on the SIM dialog" into sc-dev
2021-06-09 13:06:59 +00:00
Zoey Chen
5047a5d041
Merge "[Settings] Fix test failure of WFC group" into sc-dev am: 38b22563f8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14912500
Change-Id: I7f407bf133d33034cf936319e989043c9086490a
2021-06-09 11:56:43 +00:00
YUKAI HUNG
bf203b18e5
Merge "Resolve locale not update issues in the chart view" into sc-dev am: 4248531508
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14912493
Change-Id: I7ada919a6e9d6eeea477858e1d71a4323ede1966
2021-06-09 11:56:29 +00:00
Zoey Chen
38b22563f8
Merge "[Settings] Fix test failure of WFC group" into sc-dev
2021-06-09 11:43:47 +00:00
YUKAI HUNG
4248531508
Merge "Resolve locale not update issues in the chart view" into sc-dev
2021-06-09 11:43:41 +00:00
PETER LIANG
575ae9574e
Merge changes I99fb2ed2,Iba18bfab into sc-dev am: d2c4944cbb
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14823310
Change-Id: I76e0436b02f078a750562f434bb28e3f81644644
2021-06-09 11:01:22 +00:00
PETER LIANG
d2c4944cbb
Merge changes I99fb2ed2,Iba18bfab into sc-dev
...
* changes:
Support the lottie image file for the banner in Accessibility Settings.
Fixing the animation of drawable couldn't play automatically for the banner.
2021-06-09 10:44:10 +00:00
Weng Su
bd31f36a2e
Merge "[Provider Model] Fix the panel non responsive issue" into sc-dev am: 635e57bd4e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14891919
Change-Id: Icd43216660f67f288f8515e5ce29d13294074d9f
2021-06-09 10:26:22 +00:00
Peter_Liang
3ce3a93e71
Support the lottie image file for the banner in Accessibility Settings.
...
Action:
Currently, the ImageView component couldn’t handle the lottie image from raw resource folder, so temporarily using the LottieAnimationView from settingsLib to support lottie image for the banner of Accessibility settings.
Bug: 186065724
Bug: 179451422
Test: atest AnimatedImagePreferenceTest
Change-Id: I99fb2ed26085c73bc262c58001de8dec3078e1d0
2021-06-09 10:11:23 +00:00
Weng Su
635e57bd4e
Merge "[Provider Model] Fix the panel non responsive issue" into sc-dev
2021-06-09 10:05:51 +00:00
Arc Wang
bdb70b1078
Tweak UI of CardPreference and ContextualCard
...
- CardPreference uses settingslib_preference
layout to fix title/summary alignment issue.
- Remove stroke for CardPreference and ContextualCard.
- Set colorSurface as default card background color.
Bug: 188599776
Test: manual visual
Change-Id: Id0ee40be60de1f7605849490ee43eae4b9420abb
2021-06-09 17:43:43 +08:00
Arc Wang
7b85f2af24
'Free up space' uses CardPreference
...
For material next style.
Bug: 188599776
Test: make RunSettingsRoboTests ROBOTEST_FILTER=CardPreferenceTest
Change-Id: Ibaf4d11ab44017453498676db00cff1e49c83b9d
2021-06-09 17:35:33 +08:00
Alex Johnston
7db8142435
Credential management app UI tweaks
...
Credential management app Settings screen
* Add uninstall certificates button
* Reformat summary
* Remove dividing lines
Request manage credentials screen
* Make requesting app name bold
Manual testing
* Install TestDPC and select 'Request to
manage credentials'
* Verify app name is bold and select allow
* Install a certificate as the cred mng app
via TestDPC
* Go to Setting > Security > Encryption
& Credentials > Credential Management App
* Verify screen looks like mocks
* Select 'Remove certificates' and
verify all certificates installed by the
cred mng app are removed
Settings screen: https://screenshot.googleplex.com/C6n9bnwkw843jgf
Request screen: https://screenshot.googleplex.com/5qH44NXKKGRsdHs
Bug: 189416800
Test: manual testing
CredentialManagementAppControllerTest
CredentialManagementAppFragmentTest
CredentialManagementAppButtonsControllerTest
CredentialManagementAppHeaderControllerTest
RequestManageCredentialsTest
Change-Id: I71334b231ae7cefbc055e2575eda5418da2548b4
2021-06-09 10:13:53 +01:00
Zoey Chen
ff0c06f20a
[Settings] Fix test failure of WFC group
...
Bug: 190569916
Test: atest NetworkProviderWifiCallingGroupTest
Change-Id: Ie520f3709eb0751150fdbda1f14e878ba21e22c4
2021-06-09 09:07:50 +00:00
ykhung
2a75186e4b
Resolve locale not update issues in the chart view
...
- read locale from configuration rather than Locale.getDefault
- refine 12-24 format to align the current status bar short style
- resolve locale change not update chart percentage label
- extend timestamp label in the chart graph from 4 to 5 labels
Bug: 190150515
Bug: 190422902
Bug: 190226837
Test: make SettingsRoboTests
Change-Id: I5347964900123a6d112dbc37c2af87eb7d73f1d2
2021-06-09 16:11:15 +08:00
Alex Johnston
4ef1438512
RequestManageCredentials landscape mode
...
* Split screen into two halves, where the left
side includes the title and the right side
includes the recycler view, floating action
button and action buttons.
* https://screenshot.googleplex.com/6Co6kn2DyXZRGNZ
* https://screenshot.googleplex.com/6uwHAGuRHjNcStN
Bug: 189193577
Test: manual testing via TestDPC
RequestManageCredentialsTest
Change-Id: I9c82a7471c885658aacb40b22166ec801e2833ca
2021-06-09 09:06:49 +01:00
tom hsu
4f3ac2fcbd
[Settings] Resolves unsynced infomation between status bar and settings
...
When activity go to background, the UI message shall be saved, and When
activity is back to foreground, the UI shows previous state first.
The situation make unsynced info between status bar and settings's
page.
Bug: 187091965
Test: Maunal Test
Test: atest passed
Change-Id: I7db2876e91c00126ebfa9dfa5b87d04c1f717e72
2021-06-09 15:19:48 +08:00
Stanley Wang
d7875ab8a8
Merge "Fix the problem of the TalkBack function can not be turned on." into sc-dev am: bbab97c955
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14891917
Change-Id: I3804164b0b78e26baecca0ae62294f77b109c636
2021-06-09 06:49:39 +00:00
Stanley Wang
bbab97c955
Merge "Fix the problem of the TalkBack function can not be turned on." into sc-dev
2021-06-09 06:37:29 +00:00
Menghan Li
830a8c2aa1
Merge "Add AccessibilityShortcutPreferenceFragment to share non-accesibility tools to add shortcut" into sc-dev am: c4609d14f4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14860442
Change-Id: I30a1f10296ec42a900f2648a701dd52e60900a56
2021-06-09 05:47:45 +00:00
Menghan Li
154699afe1
Merge "Move DialogEumn into AccessibilityDialogUtils" into sc-dev am: 0a9d2385f0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14860441
Change-Id: Ib34df88b17d4322596b982b552e320c0aa5327a2
2021-06-09 05:47:37 +00:00
Tsung-Mao Fang
fd9cca8aed
Merge "Remove the large space when searching region list" into sc-dev am: 0a8ab3a543
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14880232
Change-Id: I88be0e9d792f6b593d878d8f5e360e062dfcedc1
2021-06-09 05:47:25 +00:00
Menghan Li
c4609d14f4
Merge "Add AccessibilityShortcutPreferenceFragment to share non-accesibility tools to add shortcut" into sc-dev
2021-06-09 05:42:08 +00:00
Menghan Li
0a9d2385f0
Merge "Move DialogEumn into AccessibilityDialogUtils" into sc-dev
2021-06-09 05:41:00 +00:00
Tsung-Mao Fang
0a8ab3a543
Merge "Remove the large space when searching region list" into sc-dev
2021-06-09 05:34:23 +00:00
Joshua Mccloskey
e80c5cddd2
BiometricEnrollIntroduction button update
...
No longer show the "No thanks" button until the user has
scrolled to the bottom of the introduction text.
This applies for both face and fingerprint enroll introduction screens.
Fixes: 189268868
Test: Manual
Change-Id: I0ccf6ae1d329df06f769f05288706ef22183bc21
2021-06-08 22:25:16 -07:00