Loading res/layout/dialog_sim_status.xml 0 → 100644 +132 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2017 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="@dimen/sim_content_padding"> <TextView style="@style/device_info_dialog_label" android:id="@+id/operator_name_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_operator"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/operator_name_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/number_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_number_sim_status"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/number_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/data_state_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_data_state"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/data_state_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/latest_area_info_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_latest_area_info"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/latest_area_info_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/service_state_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_service_state"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/service_state_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/signal_strength_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_signal_strength"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/signal_strength_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/network_type_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_network_type"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/network_type_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/roaming_state_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_roaming"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/roaming_state_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> </LinearLayout> </ScrollView> res/values/strings.xml +8 −0 Original line number Diff line number Diff line Loading @@ -2675,6 +2675,10 @@ <string name="status_number" product="tablet">MDN</string> <!-- About phone, status item title. The phone number of the current device [CHAR LIMIT=30] --> <string name="status_number" product="default">Phone number</string> <!-- About tablet, status item title. The Mobile Directory Number [CHAR LIMIT=30] --> <string name="status_number_sim_status" product="tablet">MDN on SIM</string> <!-- About phone, status item title. The phone number of the current device [CHAR LIMIT=30] --> <string name="status_number_sim_status" product="default">Phone number on SIM</string> <!-- About phone, status item title. The phone MIN number of the current device.--> <string name="status_min_number">MIN</string> <!-- About phone, status item title. The phone MSID number of the current device.--> Loading Loading @@ -6438,6 +6442,10 @@ <string name="sim_no_inserted_msg">No SIM cards inserted</string> <!-- SIM status title [CHAR LIMIT=40] --> <string name="sim_status_title">SIM status</string> <!-- SIM status title [CHAR LIMIT=40] --> <string name="sim_status_title_sim_slot_1">SIM status (sim slot 1)</string> <!-- SIM status title [CHAR LIMIT=40] --> <string name="sim_status_title_sim_slot_2">SIM status (sim slot 2)</string> <!-- Title for call back. [CHAR LIMIT=60] --> <string name="sim_call_back_title">Call back from default SIM</string> <!-- Title for outgoing back. [CHAR LIMIT=60] --> res/xml/device_info_settings_v2.xml +9 −2 Original line number Diff line number Diff line Loading @@ -28,12 +28,19 @@ android:title="@string/status_number" android:summary="@string/summary_placeholder"/> <!-- SIM status --> <!-- SIM status Sim Slot 1 --> <Preference android:key="sim_status" android:key="sim_status_sim_1" android:title="@string/sim_status_title" android:summary="@string/summary_placeholder"/> <!-- SIM status Sim Slot 2--> <Preference android:key="sim_status_sim_2" android:title="@string/sim_status_title_sim_slot_2" android:summary="@string/summary_placeholder"/> <!-- Model & hardware --> <Preference android:key="device_model" Loading src/com/android/settings/DeviceInfoSettings.java +5 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ import com.android.settings.deviceinfo.ManualPreferenceController; import com.android.settings.deviceinfo.RegulatoryInfoPreferenceController; import com.android.settings.deviceinfo.SafetyInfoPreferenceController; import com.android.settings.deviceinfo.SecurityPatchPreferenceController; import com.android.settings.deviceinfo.simstatus.SimStatusDualSimPreferenceController; import com.android.settings.deviceinfo.simstatus.SimStatusPreferenceControllerV2; import com.android.settings.search.BaseSearchIndexProvider; import com.android.settings.search.Indexable; import com.android.settingslib.core.AbstractPreferenceController; Loading Loading @@ -126,7 +128,9 @@ public class DeviceInfoSettings extends DashboardFragment implements Indexable { // Phone number // SIM status controllers.add(new SimStatusPreferenceControllerV2(context, fragment)); controllers.add(new SimStatusDualSimPreferenceController(context, fragment)); controllers.add(new DeviceModelPreferenceController(context, fragment)); Loading src/com/android/settings/deviceinfo/SimStatus.java +2 −0 Original line number Diff line number Diff line Loading @@ -73,7 +73,9 @@ import java.util.List; * # Operator info (area update info cell broadcast) * # Signal Strength * * deprecated in favor of {@link com.android.settings.deviceinfo.simstatus.SimStatusDialogFragment} */ @Deprecated public class SimStatus extends SettingsPreferenceFragment { private static final String TAG = "SimStatus"; Loading Loading
res/layout/dialog_sim_status.xml 0 → 100644 +132 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2017 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="@dimen/sim_content_padding"> <TextView style="@style/device_info_dialog_label" android:id="@+id/operator_name_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_operator"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/operator_name_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/number_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_number_sim_status"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/number_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/data_state_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_data_state"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/data_state_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/latest_area_info_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_latest_area_info"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/latest_area_info_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/service_state_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_service_state"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/service_state_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/signal_strength_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_signal_strength"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/signal_strength_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/network_type_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_network_type"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/network_type_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> <TextView style="@style/device_info_dialog_label" android:id="@+id/roaming_state_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/status_roaming"/> <TextView style="@style/device_info_dialog_value" android:id="@+id/roaming_state_value" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/device_info_not_available"/> </LinearLayout> </ScrollView>
res/values/strings.xml +8 −0 Original line number Diff line number Diff line Loading @@ -2675,6 +2675,10 @@ <string name="status_number" product="tablet">MDN</string> <!-- About phone, status item title. The phone number of the current device [CHAR LIMIT=30] --> <string name="status_number" product="default">Phone number</string> <!-- About tablet, status item title. The Mobile Directory Number [CHAR LIMIT=30] --> <string name="status_number_sim_status" product="tablet">MDN on SIM</string> <!-- About phone, status item title. The phone number of the current device [CHAR LIMIT=30] --> <string name="status_number_sim_status" product="default">Phone number on SIM</string> <!-- About phone, status item title. The phone MIN number of the current device.--> <string name="status_min_number">MIN</string> <!-- About phone, status item title. The phone MSID number of the current device.--> Loading Loading @@ -6438,6 +6442,10 @@ <string name="sim_no_inserted_msg">No SIM cards inserted</string> <!-- SIM status title [CHAR LIMIT=40] --> <string name="sim_status_title">SIM status</string> <!-- SIM status title [CHAR LIMIT=40] --> <string name="sim_status_title_sim_slot_1">SIM status (sim slot 1)</string> <!-- SIM status title [CHAR LIMIT=40] --> <string name="sim_status_title_sim_slot_2">SIM status (sim slot 2)</string> <!-- Title for call back. [CHAR LIMIT=60] --> <string name="sim_call_back_title">Call back from default SIM</string> <!-- Title for outgoing back. [CHAR LIMIT=60] -->
res/xml/device_info_settings_v2.xml +9 −2 Original line number Diff line number Diff line Loading @@ -28,12 +28,19 @@ android:title="@string/status_number" android:summary="@string/summary_placeholder"/> <!-- SIM status --> <!-- SIM status Sim Slot 1 --> <Preference android:key="sim_status" android:key="sim_status_sim_1" android:title="@string/sim_status_title" android:summary="@string/summary_placeholder"/> <!-- SIM status Sim Slot 2--> <Preference android:key="sim_status_sim_2" android:title="@string/sim_status_title_sim_slot_2" android:summary="@string/summary_placeholder"/> <!-- Model & hardware --> <Preference android:key="device_model" Loading
src/com/android/settings/DeviceInfoSettings.java +5 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,8 @@ import com.android.settings.deviceinfo.ManualPreferenceController; import com.android.settings.deviceinfo.RegulatoryInfoPreferenceController; import com.android.settings.deviceinfo.SafetyInfoPreferenceController; import com.android.settings.deviceinfo.SecurityPatchPreferenceController; import com.android.settings.deviceinfo.simstatus.SimStatusDualSimPreferenceController; import com.android.settings.deviceinfo.simstatus.SimStatusPreferenceControllerV2; import com.android.settings.search.BaseSearchIndexProvider; import com.android.settings.search.Indexable; import com.android.settingslib.core.AbstractPreferenceController; Loading Loading @@ -126,7 +128,9 @@ public class DeviceInfoSettings extends DashboardFragment implements Indexable { // Phone number // SIM status controllers.add(new SimStatusPreferenceControllerV2(context, fragment)); controllers.add(new SimStatusDualSimPreferenceController(context, fragment)); controllers.add(new DeviceModelPreferenceController(context, fragment)); Loading
src/com/android/settings/deviceinfo/SimStatus.java +2 −0 Original line number Diff line number Diff line Loading @@ -73,7 +73,9 @@ import java.util.List; * # Operator info (area update info cell broadcast) * # Signal Strength * * deprecated in favor of {@link com.android.settings.deviceinfo.simstatus.SimStatusDialogFragment} */ @Deprecated public class SimStatus extends SettingsPreferenceFragment { private static final String TAG = "SimStatus"; Loading