Commit Graph

47091 Commits

Author SHA1 Message Date
Fan Zhang
58543721f8 Treat icon color metadata as raw value instead of reference
Bug: 79841665
Test: robotests
Change-Id: I1216718e45e80a428e8a0edb7b9accf5325be769
2018-08-07 09:15:23 -07:00
timhypeng
3cd093efe8 remove unnecessary mock in ConnectedBluetoothDeviceUpdaterTest
Bug: 111848213
Test: make -j50 RunSettingsRoboTests
Change-Id: I6a2a25ff80d7d3cd9bcf2b4223afb6a80de7eb7c
2018-08-06 06:44:27 +00:00
TreeHugger Robot
1e23931f3e Merge "Remove obsolete parameter from addDevice" 2018-08-06 06:40:46 +00:00
TreeHugger Robot
67e7ee3c1b Merge "Icon color of spinner updated" 2018-08-06 04:07:19 +00:00
Bill Yi
6b4c667ebd [automerger skipped] Import translations. DO NOT MERGE am: 000f97dcf9 -s ours am: 16191b3408 -s ours
am: 4dd2c1fa3d  -s ours

Change-Id: Ia93756b2c4e84be0828826ee390d0365d804fbe4
2018-08-04 18:30:05 -07:00
Bill Yi
4dd2c1fa3d [automerger skipped] Import translations. DO NOT MERGE am: 000f97dcf9 -s ours
am: 16191b3408  -s ours

Change-Id: I25c2d0e11f48a0cfa54bd1790ab858bbec109bc3
2018-08-04 18:25:30 -07:00
Bill Yi
16191b3408 [automerger skipped] Import translations. DO NOT MERGE
am: 000f97dcf9  -s ours

Change-Id: Ia6cce5c5529998a45fa52d353f63a8edc8e2c0ef
2018-08-04 18:21:26 -07:00
Bill Yi
000f97dcf9 Import translations. DO NOT MERGE
Change-Id: I89c83219dfbf228054284db00548647b94fc398b
Auto-generated-cl: translation import
2018-08-04 07:43:29 -07:00
Fan Zhang
60243e6873 Remove custom tintable check.
Make a bunch keys private in tile and DashboardCategory
Bug: 77600770
Test: robotests
Change-Id: I4693e6bb71bd50cc664f578c7f8e25e67da20b67
2018-08-03 16:38:36 -07:00
TreeHugger Robot
eda8a01c23 Merge "Move profile selector dialog to Settings" 2018-08-03 02:05:32 +00:00
Fan Zhang
19d3597bf2 Fix robo tests
We are pointing to intermediate built files for resource. We should
instead just remove the ResourcePath list and let Robolectric extract
res files from built apk (supported in a newer version or robolectric)

Change-Id: Iaed2160518b90a8a678c8526295dcfa74c8e3c42
Fixes: 112160027
Test: robotests
2018-08-02 17:01:40 -07:00
Fan Zhang
9a1928ea36 Move profile selector dialog to Settings
Bug: 77600770
Test: robotest
Change-Id: I601dabfd925a1990b7bd9115ef579bff9039a7c0
2018-08-02 13:35:08 -07:00
Stanley Wang
6fe0330bf7 Icon color of spinner updated
Change-Id: Iea7f5d5ec43360cf6114caf368fa8c93ce4cf95c
Fixes: 109843982
Test: manual
2018-08-02 15:20:51 +08:00
TreeHugger Robot
e4aa129375 Merge "5/n: Add face settings" 2018-08-02 04:20:08 +00:00
TreeHugger Robot
ff0a2d8267 Merge "Replaced 'partition' by 'requests'" 2018-08-01 23:19:13 +00:00
Felipe Leme
2bd563b11d Replaced 'partition' by 'requests'
Fixes: 111987840
Test: echo "In TreeHugger we trust!"

Change-Id: I450d23677063b98d994559a64fff2a4832afe6ef
2018-08-01 15:13:00 -07:00
TreeHugger Robot
5ec759f970 Merge "Fixes Settings app crashing when NfcAdapter is null" 2018-08-01 21:52:40 +00:00
Ruchi Kandoi
37efa64d63 Fixes Settings app crashing when NfcAdapter is null
If a device doesn't support NFC then
android.settings.NFCSHARING_SETTINGS and
android.nfc.cardemulation.action.ACTION_CHANGE_DEFAULT intents shouldn't
do anything and gracefully exit.

Test: Manual; Emulate a non-NFC device and test with apks sending intents
Bug: 80094104
Bug: 80092438
Change-Id: I5b3c3fdd582679e2cb16f474ef3331bc246b0d42
2018-08-01 13:35:18 -07:00
TreeHugger Robot
8c8049e2f8 Merge "Remove unused SuggestionFeatureProvider APIs." 2018-08-01 19:32:41 +00:00
TreeHugger Robot
52ec53bb2c Merge "Disable changing lock when device is not provisioned." 2018-08-01 19:29:44 +00:00
Doris Ling
882bef3962 Disable changing lock when device is not provisioned.
When the device is not yet provisioned and settings is launched:
- disable the entry point for changing device lock
- remove the search panel from settings home page
- remove the search menu

Bug: 110034419
Test: make RunSettingsRoboTests
Change-Id: Ieb7eb0e8699229ec0824ccc19d7b958ac44965a2
2018-08-01 10:18:01 -07:00
Fan Zhang
b4c610b93c Remove unused SuggestionFeatureProvider APIs.
Bug: 111941143
Test: robotests
Change-Id: Ic4e607b3601fd43ad57dad13474e2d0ee78bf29c
2018-08-01 09:53:54 -07:00
TreeHugger Robot
bf506bf01a Merge "Check the device is connected when receive onProfileConnectionStateChanged()" 2018-08-01 07:39:01 +00:00
TreeHugger Robot
467a6559c1 Merge "Use Settings.Secure values, not Global values" 2018-07-31 17:13:27 +00:00
TreeHugger Robot
919334c04f Merge "Fix windows leaked in ZenModeScheduleRuleSettings" 2018-07-31 16:35:10 +00:00
hughchen
70758584dc Check the device is connected when receive onProfileConnectionStateChanged()
Use isFilterMatched() to decide the prefernce should be added
or removed when receive onProfileConnectionStateChanged()

Bug: 80161203
Test: make -j42 RunSettingsRoboTests
Change-Id: Icccdb9007b587d3f481a23856edd7b2f7c9b04e0
2018-07-31 16:49:12 +08:00
tmfang
4b5cbca5c8 Fix windows leaked in ZenModeScheduleRuleSettings
ZenModeScheduleRuleSettings creates an DaysDialog when user clicked
Days option.

If Activity was destroyed suddenly, WindowsManager throws a windows leaked exception.
And then DaysDialog try to do something(dismiss), settings app will crash.

So, we need to dismiss dialog when activity was destroyed.

Test: robo test, change code to recover symptom, manual test
Change-Id: I8d5370fe9673573581d613da91c7ab9be55d8199
Fixes: 111841375
2018-07-31 16:45:07 +08:00
TreeHugger Robot
d0898cd6a3 Merge "Unable to send files over Bluetooth OPP" 2018-07-31 07:37:13 +00:00
TreeHugger Robot
3cb78ef2fc Merge "Remove UsbModeChooserActivity in AndroidManifest" 2018-07-31 07:26:48 +00:00
tmfang
6f980feeba Unable to send files over Bluetooth OPP
DevicPickerActivity switches to an androidx fragment in layout of bluetooth_device_picker.
But android.app.Activity doesn't support androidx fragment.
So, let DevicePiackerActivity extend androidx FragmentActivity.

Change-Id: I5da98a5e2242b75d2205a786bf373b81dfe6f613
Fixes: 112010509
Test: manual test, robo test
2018-07-31 14:27:55 +08:00
TreeHugger Robot
1b47c056b2 Merge "Use BluetoothAdapter instead of LocalBluetoothAdapter" 2018-07-31 04:54:43 +00:00
hughchen
e94b02206e Use BluetoothAdapter instead of LocalBluetoothAdapter
LocalBluetoothAdapter only has a few APIs that is not supported
by BluetoothAdapter, and lots of LocalBluetoothAdapter function
pass parameter to BluetoothAdapter directly.
Do the refactor in Settings, use BluetoothAdapter instead of
LocalBluetoothAdapter.

Bug: 111769754
Test: make -j42 RunSettingsRoboTests
Change-Id: I88e5a8377b5d1106c7679e6a8c3fd1ca1a80ea6f
2018-07-31 11:35:36 +08:00
tmfang
0f828239d4 Remove UsbModeChooserActivity in AndroidManifest
UsbModeChooserActivity was removed since b/70848054,
So, we also removed it in AndroidManifest.xml.

Change-Id: I42a3330eec46ac957beeb384ef7d0c130f2f82e3
Fixes: 111968651
Test: robo
2018-07-31 11:21:37 +08:00
TreeHugger Robot
89d35f949c Merge "Add Hearing Aid UI into Settings-Accessibility App" 2018-07-31 02:53:01 +00:00
Dieter Hsu
ab45297ec2 Merge "Adding icon to color correction mode" 2018-07-31 00:57:33 +00:00
TreeHugger Robot
d22671aed1 Merge "Remove BluetoothFeatureProvider and impl" 2018-07-30 20:53:02 +00:00
TreeHugger Robot
25c9375b6a Merge "Fixed AutofillPreferenceCategory so it's UI is properly refreshed." 2018-07-30 18:27:40 +00:00
Fan Zhang
37f805a192 Remove BluetoothFeatureProvider and impl
It's not used by anything

Change-Id: I03a73461a391657b8efbce13670a0c92fc4e3565
Fixes: 111940586
Test: rebuild
2018-07-30 11:00:04 -07:00
Felipe Leme
a305b779e8 Fixed AutofillPreferenceCategory so it's UI is properly refreshed.
Test: manual verification
Test: runtest --path packages/apps/Settings/tests/unit/src/com/android/settings/core/PreferenceControllerContractTest.java
Bug: 65700540
Bug: 111838239

Change-Id: If4e80a47d65aea34b94271e43ac38612373f4fa2
2018-07-30 09:58:59 -07:00
TreeHugger Robot
791b34b303 Merge "Settings crashes on opening Wi-Fi Add network" 2018-07-30 16:18:12 +00:00
TreeHugger Robot
fbfca0428b Merge "Fix leaked windows exception in WifiDialogActivity" 2018-07-30 16:16:20 +00:00
Chienyuan
20002d0309 Remove obsolete parameter from addDevice
Bug: 111966655
Test: build pass
Change-Id: I2f9475ad6b7588946421e852f0724ae616b107ba
2018-07-30 20:22:40 +08:00
tmfang
656e94cc06 Fix leaked windows exception in WifiDialogActivity
WifiDialog was created by WifiDialogActivity.
If activity was destroyed suddenly, WifiDialog can't dismiss itself.

So, we need to dismiss dialog, when activity was destroyed.

Test: robo and manual test
Bug: 111841375
Change-Id: I8aaf1c78e72144bf7c9cbc2392bce30e715d86e9
2018-07-30 18:52:02 +08:00
timhypeng
53a12ee7b8 Add Hearing Aid UI into Settings-Accessibility App
- dynamically show/hide preference by HearingAid profile is supported or not
- add AccessibilityHearingAidPreferenceController to handle hearingAid preference
- add HearingAidDialogFragment to handle dialog behavior

Bug: 109948484
Test: make -j50 RunSettingsRoboTests

Change-Id: Ic55dde475dc40311f7e652f4a86d342597f09f0e
2018-07-30 16:48:39 +08:00
tmfang
5ade2f1976 Fix some crash cases when we launch AlertDialog
AlertDialog needs to use App.Compat theme.

Change-Id: Icef2f5b5cf2d614f98fd1d793e88c6a7349b1380
Fixes: 111888332
Test: robo
2018-07-30 16:38:49 +08:00
TreeHugger Robot
64771b5382 Merge "Clean up task affinity." 2018-07-28 02:09:48 +00:00
Fan Zhang
f732c3a0e3 Clean up task affinity.
If activity is launched through external intent, back button should just
go back to previous screen.

Change-Id: I5b2e57d2751f5ed7c17140d3eb8d54736b78053c
Fixes: 111864355
Test: manual
2018-07-27 17:44:46 -07:00
Felipe Leme
0de040cef8 Merge "Added autofill options on Developer Options screen." 2018-07-27 16:02:34 +00:00
TreeHugger Robot
7fa8953b60 Merge "Fix Wifi off state UI" 2018-07-27 16:00:22 +00:00
Dieter Hsu
0c995a254e Adding icon to color correction mode
Adding icon image with red and green so users can see the
effects of changing the color correction.

Bug: 38103344
Test: Visually saw the icon appear in Settings->Accessibility->Color
Correction

Change-Id: I922b6ef2ee0f3a8e8d6ac80a14e46cd66da15195
2018-07-27 15:49:56 +08:00