Commit Graph

3637 Commits

Author SHA1 Message Date
tom hsu
edcb16bde3 Improve potential NPE problem
- Move CarrierConfigCache initialization to make sure the instance
   created.

Flag: EXEMPT bug fix
Fix: b/409841639
Test: atest pass
(cherry picked from commit 00ab92f97f2c04ca9f604f282542ffd9680f27fc)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9c2c6745859027b54628bea81a153856e2d8c753)
Merged-In: I07bf9eca1d271d0f38c4d12cd8e04d8a6d4623ed
Change-Id: I07bf9eca1d271d0f38c4d12cd8e04d8a6d4623ed
2025-04-21 19:27:43 -07:00
tom hsu
c8b730509d [Satellite] Restrict requestIsSupported only in Manual type
- SatelliteManager#requestIsSupported only can be used in Manual
   conneciton type. Hence add a type check with this API for the
   condition check

Flag: EXEMPT bug fix
Fix: b/395811260
Test: atest pass
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d033f603b819c5b1264d116648c9f6f00b061320)
Merged-In: Ia9fed86a63dd8fa87cc20a83888b3cabbf28ddd8
Change-Id: Ia9fed86a63dd8fa87cc20a83888b3cabbf28ddd8
2025-03-31 20:54:29 -07:00
tom hsu
e9e45b4a01 [Satellite] Refactor API usage to Util class.
Flag: EXEMPT refactor
Fix: b/403149290
Test: atest pass
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8916db934fb3d7dc1f94f67c7b409beeff2c6ac6)
Merged-In: I8f6375c59cbb2010ad9232b8abe71af60c6133f9
Change-Id: I8f6375c59cbb2010ad9232b8abe71af60c6133f9
2025-03-31 20:54:17 -07:00
tom hsu
8be6d98b1f [Satelllite] Avoid using "add ESIM page"
- When user clicks preference UI, show a dialog to nofity user
   satellite session.

Flag: EXEMPT bug fix
Fix: b/402544816
Test: atest pass
Test: Manual test

Change-Id: Ifeff9368fed906bc56abcc8eb23748a71f79ee4d
2025-03-21 13:48:21 +00:00
Mir Noshin Jahan
9d9dd7e3f5 Merge "Use separate metric actions and tag id for wifi scorer and auto mobile network switch" into main 2025-03-21 00:38:41 -07:00
Treehugger Robot
5540cd1606 Merge "[Satellite] Show category of Your data plan with Manual connection type." into main 2025-03-20 22:05:59 -07:00
tom hsu
0569647a24 [Satellite] Show category of Your data plan with Manual connection type.
- When satellite entitlement is unsupported, it shall show the category of Your data plan with Manual connection type.

Flag: EXEMPT bug fix
Fix: b/405250203
Test: atest pass
Change-Id: I91c5be123d59753d93db37226d0ae17ebb5ea1f5
2025-03-20 20:42:00 -07:00
SongFerng Wang
6b98d239d5 Merge "Using current esim port of active esim slot" into main 2025-03-19 16:07:40 -07:00
songferngwang
62163de585 Using current esim port of active esim slot
If there is no active esim and the active esim slot, then enabling esim
uses the active esim slot's port.

Bug: 394758842
Test: manual test
Flag: EXEMPT bugfix

Change-Id: Icd478a92662584d433e16b129da98204e9e2f5f3
2025-03-19 10:42:42 +00:00
tom hsu
dc788ed9d1 [Satellite] Use satellite data mode for UX visibility
- Use SatelliteManager#getSatelliteDataSupportMode() to check data
   restricted or not.

Flag: EXEMPT bug fix
Bug: b/401043401
Test: atest pass
Test: Manual test
Change-Id: I6f3e25610717eca0f6e871a9e1158422659058ea
2025-03-19 09:45:52 +00:00
noshinmir
492e750c7c Use separate metric actions and tag id for wifi scorer and auto mobile network switch
Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: Build pass, presubmit

Change-Id: I65625603449b4a3b599ce6acf944c6467b0efcec
2025-03-18 23:28:10 -07:00
tom hsu
9896b590d3 [Satellite] Change footer format in satellite setting
- Use controller base design instead of current

Flag: EXEMPT bug fix
Bug: b/401648126
Fix: b/402037025
Test: Manual test
Test: atest pass
Change-Id: Icb3fd6a1c5340e554593fc57cb238bf98d3ed0e3
2025-03-18 22:59:38 -07:00
tom hsu
e845919cbf [Satellite] Add log for the bug analysis
Flag: EXEMPT bug fix
Bug: b/404265450
Test: Manual test
Change-Id: I05a01151615437603ba71e3d3021a9d4f0da069a
2025-03-17 19:36:47 +00:00
tom hsu
f0efc2e363 [Satellite] Refactor code to controller base.
- Your mobile plan

Flag: EXEMPT refactor
Bug: b/403149290
Test: atest pass
Change-Id: Ia21f3d8b301401799263a1a2b43d82e9a46729a5
2025-03-17 13:52:58 +00:00
Treehugger Robot
51a7f2c109 Merge "[Satellilte] Remove dynamic string of messaging and connectivity" into main 2025-03-17 06:05:57 -07:00
tom hsu
006007446b [Satellilte] Remove dynamic string of messaging and connectivity
Flag: EXEMPT bug fix
Bug: b/401648126
Test: Manual test.
Change-Id: I3ec28cfa2a05b421f19918414af8e75c5c0b224e
2025-03-17 11:28:02 +00:00
Mir Noshin Jahan
b96eb497da Merge "Add Wi-Fi and adaptive mobile network (5G PM) toggle event in Adaptive Connectivity UX" into main 2025-03-16 23:18:27 -07:00
tom hsu
7ca28dd3d6 [Satellite] Move entitlment check to auto type only.
Flag: EXEMPT bug fix
Bug: b/401648126
Test: atest pass
Change-Id: Ide6f8520b5e1e60f700586ef00970a4f55f5babe
2025-03-17 03:52:02 +00:00
Treehugger Robot
078fcd0925 Merge "[Satellite] Refactor about content of Satellite setting" into main 2025-03-14 02:22:41 -07:00
tom hsu
c19341db32 [Satellite] Refactor about content of Satellite setting
Flag: EXEMPT refactor
Bug: b/403149290
Test: Manual test pass
Test: atest pass
Change-Id: I55868869a9442648995343c857758c23fe358bc2
2025-03-14 07:42:27 +00:00
Treehugger Robot
b4a1d57206 Merge "[Satellite] Move satellite setting related code to a folder" into main 2025-03-14 00:16:07 -07:00
tom hsu
93f714446a [Satellite] Move satellite setting related code to a folder
Flag: EXEMPT refactor
Fix: b/403149290
Test: build pass
Test: atest pass
Change-Id: I849adc99fb16d1278efd1d481a4fd99fadb45e98
2025-03-13 16:12:16 +00:00
noshinmir
5d7dfdea71 Add Wi-Fi and adaptive mobile network (5G PM) toggle event in Adaptive Connectivity UX
Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: Manual testing
atest AdaptiveConnectivityScreenTest
atest AdaptiveMobileNetworkTogglePreferenceTest
atest WifiScorerTogglePreferenceTest

Change-Id: Ic3b8e4aca5e2096b4e94aed10cd516c3f94e48c1
2025-03-13 08:01:01 +00:00
talreja
868299303e Updated the 2G enable setting title.
Bug:391709444
Test: atest Enable2gPreferenceControllerTest
Flag: EXEMPT bugfix

Change-Id: I66bd05441e29b4976343d145ebecaf11fa924b0c
2025-03-12 19:12:48 -07:00
Nikhil Nayunigari
a821ac9185 Edits ethernet interface details settings subpage with more info
Adds IPAddress, Mac address, RX/TX Speed and Metering options to the
settings sub page.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest SettingsRoboTests:
com.android.settings.network.NetworkProviderSettingsTest

Bug: 390709492

Change-Id: I9a310f94037e089f3d57ff36f77b88edbb0ee1f1
2025-03-11 21:06:55 +00:00
Jacky Wang
84f84ca8c0 [Catalyst] Use KeyValueStoreDelegate
NO_IFTTT=Catalyst only

Bug: 388167106
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I3d04e1bf2620fe7f910fe63f22c17da290e9172d
2025-03-11 09:39:28 +08:00
Jacky Wang
6f684c73e0 [MainSwitchPreference] Remove SettingsMainSwitchPreferenceController
NO_IFTTT=Update base class

Bug: 401406987
Flag: EXEMPT refactor
Test: manual
Change-Id: I68093366f63fa5b4184aa7b3dde8bc2609f17dfb
2025-03-11 00:35:01 +08:00
Jacky Wang
7867f29788 [Catalyst] Remove PreferenceScreenBinding
By removing PreferenceScreenBinding, PreferenceScreenMetadata with not
Preference entry point is greatly simplified.

NO_IFTTT=Catalyst only

Bug: 388167106
Flag: EXEMPT refactor
Test: manual
Change-Id: Ie62313c9c6737a4aad8e363f947a68eada4393f5
2025-03-10 18:25:15 +08:00
Treehugger Robot
2342373850 Merge "Use SatelliteManager API to check device support satellite or not." into main 2025-03-07 05:29:01 -08:00
tom hsu
76517509a0 Use SatelliteManager API to check device support satellite or not.
Flag: EXEMPT bug fix
Bug: b/401045618
Test: atest pass
Change-Id: Icbf9cf0f8da9c04d8b637f326e3bad7fb2a30916
2025-03-07 11:59:08 +00:00
Aleksander Morgado
e96d71fc41 Hide 'Reset mobile network settings' if not telephony capable
The entry is hidden either via the build-time
config_show_sim_info=false boolean flag, or when not
declaring the PackageManager.FEATURE_TELEPHONY_DATA feature flag.

Bug: 399208058
Test: mm && atest NetworkResetPreferenceControllerTest
Flag: EXEMPT bugfix

Change-Id: I178a0cae9d4ffd1ea4492a6b1feca697373d6e20
2025-03-05 00:43:11 -08:00
Yomna N
ec412eb802 Merge "Handle failing calls to TelephonyManager" into main 2025-03-03 14:35:40 -08:00
yomna
3d66e6b6fe Handle failing calls to TelephonyManager
If the phone process has died, Settings cannot make calls to
TelephonyManager. Update the handling of this case to new best
practices.

Bug: b/394077023
Test: m & atest CellularSecurityPreferenceController
Flag: EXEMPT bugfix
Change-Id: I64ecb143d0830873b590ce4a397c398d8b41943f
2025-03-03 17:34:14 +00:00
Treehugger Robot
c794912537 Merge "[Expressive design] Apply colors to homepage icons" into main 2025-03-03 02:21:05 -08:00
Jason Chiu
9c16e94552 [Expressive design] Apply colors to homepage icons
Bug: 396944193
Test: visual, robotest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I6ec24bdf8cb9a6f8454bd837daffe743b3b01526
2025-03-03 00:45:08 -08:00
Jacky Wang
e60bff2d81 [Catalyst] Fix UI flicker when toggle Airplane mode
The UI flicker is because preference change is notified twice after
onActivityResult calls setBoolean: 1) Catalyst framework registers a
common listener on each preference's storage to update UI when
preference value is changed. 2) The PhoneStateListener in
AirplaneModeStorage. Remove the second listener fixes the issue.

NO_IFTTT=Catalyst only

Fix: 395774878
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I9f93faf1da87d52a82d9019361b17b4b500d79fe
2025-03-03 07:54:42 +08:00
Treehugger Robot
d3b4656bec Merge "Modify string to match the design." into main 2025-02-26 05:39:02 -08:00
tom hsu
9b7f0bbf95 Modify string to match the design.
Flag: EXEMPT bug fix
Bug: b/397958254
Test: Manual test.
Change-Id: Ic424e30ce4c44ea63ee650bd6c1bcafcd60070a4
2025-02-26 03:08:01 -08:00
noshinmir
16e32fae3f Add nested toggle switches under Adaptive connectivity settings UI
Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: Manual testing
atest AdaptiveConnectivityScreenTest
hsv: https://hsv.googleplex.com/5165236934934528

Change-Id: I12403f5c80290ebccc04f11771ec3f06ee216610
2025-02-26 07:16:38 +00:00
Treehugger Robot
0a1540ed51 Merge "Add strings for NTN connection manual type" into main 2025-02-25 05:37:42 -08:00
tom hsu
b91d21ba76 Add strings for NTN connection manual type
Flag: EXEMPT bug fix
Fix: b/397958254
Test: Manual test. see b/397958254#comment10
Change-Id: Ibcd3511edee9b3203c6c0cad68e0988b4b621b39
2025-02-25 04:33:00 -08:00
SongFerng Wang
57da8021d0 Merge "Add null checker for telephonymanager" into main 2025-02-25 02:14:42 -08:00
songferngwang
e4c2cddfae Add null checker for telephonymanager
Bug: 399023211
Test: atest Enable2gPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I3872ecfff2296cbec9f0ef54ee7cee5a554f111f
2025-02-25 08:41:55 +00:00
Jack Yu
0b2effb371 Merge "Cleaned up the flag enforce_telephony_feature_mapping_for_public_apis" into main 2025-02-24 17:45:03 -08:00
Tom Hsu
3c1e8e19cb Merge "Make Satellite UI updatable during receiving callback" into main 2025-02-20 23:27:01 -08:00
Treehugger Robot
540361621a Merge "Fixed crash issues in Emergency Callback Mode" into main 2025-02-20 03:35:54 -08:00
Weng Su
af065146d5 Fixed crash issues in Emergency Callback Mode
- Avoid using controllers when Catalyst design is enabled

Bug: 394015881
Flag: EXEMPT bugfix
Test: Manual testing
  atest NetworkDashboardFragmentTest
Change-Id: I4393be5e76c0328f2a53f1d828814491991557f1
2025-02-20 18:24:16 +08:00
tom hsu
d5548d1463 Make Satellite UI updatable during receiving callback
- Refactor code
 - Make Satellite category be updatable by callback.

Flag: EXEMPT bug fix
Fix: b/396233604
Fix: b/382664790
Test: atest pass
Change-Id: I893030005ae5af1403557f7bd22e8cdaf038ffcf
2025-02-20 09:34:45 +00:00
Nikhil Nayunigari
487a4774d1 Add ethernet interface details settings subpage
Adds a click listener to the ethernet interface row and displays a
settings subpage with interface connection status.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest SettingsRoboTests:
com.android.settings.network.NetworkProviderSettingsTest

Change-Id: Id64ce3657b47dd4ca70d425dd3d13227c8468d2c
2025-02-19 04:55:22 +00:00
Nikhil Nayunigari
0afd3f64a5 Merge "Display one row item per Ethernet interface" into main 2025-02-18 15:39:43 -08:00