Allen Su
99fb1065fa
Fix Locale unit test failure
...
Bug: 301380610
Bug: 313604701
Test: atest LocalePickerActivityTest
Change-Id: Icab8eeea62c7c40c160d745afd08f71fcca5ec9c
2024-03-18 08:52:34 +00:00
Allen Su
d8695cbf9b
Remove the xml entry when the system language is removed
...
Bug: 301395074
Test: atest SettingsRoboTests:com.android.settings.localepicker
Change-Id: Ic771cd5146ab954c3da65748bf87cd14d30770b4
2024-01-03 07:27:52 +00:00
Allen Su
30e1bf61b7
Add locale recommendation metrics
...
Bug: 275306065
Test: atest SettingsRoboTests:com.android.settings.localepicker
Change-Id: I7263c292eee51475274585fe4c0864f82fabf7d2
2023-12-25 09:13:39 +00:00
Yanting Yang
70e94b5731
Ignore failing test of AppLocalePickerActivityTest
...
Bug: 313604701
Test: atest
Change-Id: I33ba99c668782a67c69b11a9f5542f3583c66978
2023-11-28 19:08:54 +08:00
Allen Su
5604177818
Add locale souce metrics
...
Bug: 284094665
Test: atest SettingsRoboTests:com.android.settings.localepicker
Change-Id: I174e31fb185e859dd70b6277e23fab759c495e80
2023-11-02 08:22:38 +00:00
Allen Su
ac54b70c85
Add feature flag for LocaleNotification
...
Bug: 248514263
Test: atest AppLocalePickerActivityTest LocaleListEditorTest
Change-Id: I0e2160d75bbac83a161c73c90624b0e7af5b0a8e
2023-09-01 03:24:58 +00:00
Allen Su
f22d5e98c0
Migrate LocaleNotification to main trunk
...
Bug: 248514263
Test: make RunSettingsRoboTests -j128 ROBOTEST_FILTER=AppLocalePickerActivityTest LocaleListEditorTest LocaleNotificationDataManagerTest NotificationCancelReceiverTest NotificationControllerTest
Change-Id: Iac7ffd493485be8ebb10ae63e5ca4ea7a57c8c78
2023-08-25 05:14:56 +00:00
Allen Su
8e7c93ec57
Rollback language source metrics
...
Punt to next release since AndroidMetricsCouncil has concern.
Bug: 284094665
Test: atest AppLocalePickerActivityTest
Change-Id: I9b1239a6e98f074456def43cdbb7deb0bcc1cc3c
2023-08-23 15:55:46 +00:00
Allen Su
e93f6cd9e6
[Panlingual]Log metrics for App's locale from the suggested
...
Bug: 258128535
Test: atest AppLocalePickerActivityTest
Change-Id: I007c0e76d8b88f08518ba2696d42bd1db194f5b7
2023-06-28 08:24:10 +00:00
Josh Hou
38df174bba
[Panlingual] Can't set per-app languages for apps on work profile page
...
Use startActivityAsUser instead of startActivity API to start the AppLocalePickerActivity of different users
Bug: 274378136
Test: 1. Perform AppLocalePickerActivityTest robolectric test
2. Perform the manual test by switching different users
3. Perform the manual test by switching different profiles
Change-Id: I4405b3b7e832b71b9ef66fa71d9e42ce12da167c
2023-03-21 10:57:42 +00:00
Josh Hou
ed9cbdea18
Fix the security vulnerability issue in AppLocalePickerActivity
...
Examine whether the packages is allowed to display app locales list when creating the AppLocalePickerActivity, and examine whether the target user is the same as the calling user.
Bug: 257954050
Test: Follows the test step listed in b/257954050#comment14
Change-Id: I2e25a308bcba6ea0edee89c7a78465f766bdbeac
2023-01-16 19:06:04 +08:00
danielwbhuang
a5ef37752b
[Panlingual] Unit test for onLocaleSelected
...
Add unit test.
Bug: 224724840
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AppLocalePickerActivityTest
Change-Id: Iabbf84d58d5c325b15d960d63aeda0f7ca7af00b
2022-05-04 17:51:01 +08:00
Calvin Pan
049aa73cb1
Add unit test for AppLocalePickerActivity
...
Bug: 223503670
Test: atest
Change-Id: I0e92be43d661dd3bff19c3274d1572ef1f4e9c46
2022-04-28 08:15:34 +00:00