Loading res/values/bools.xml +9 −0 Original line number Diff line number Diff line Loading @@ -158,4 +158,13 @@ <!-- Whether system_update_settings should be shown or not. --> <bool name="config_show_system_update_settings">true</bool> <!-- Whether device_model should be shown or not. --> <bool name="config_show_device_model">true</bool> <!-- Whether wifi_ip_address should be shown or not. --> <bool name="config_show_wifi_ip_address">true</bool> <!-- Whether wifi_mac_address should be shown or not. --> <bool name="config_show_wifi_mac_address">true</bool> </resources> src/com/android/settings/deviceinfo/DeviceModelPreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ public class DeviceModelPreferenceController extends AbstractPreferenceControlle @Override public boolean isAvailable() { return true; return mContext.getResources().getBoolean(R.bool.config_show_device_model); } @Override Loading src/com/android/settings/deviceinfo/IpAddressPreferenceController.java +7 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ package com.android.settings.deviceinfo; import android.content.Context; import com.android.settings.core.PreferenceControllerMixin; import com.android.settings.R; import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.deviceinfo.AbstractIpAddressPreferenceController; Loading @@ -31,5 +33,10 @@ public class IpAddressPreferenceController extends AbstractIpAddressPreferenceCo super(context, lifecycle); } @Override public boolean isAvailable() { return mContext.getResources().getBoolean(R.bool.config_show_wifi_ip_address); } // This space intentionally left blank } src/com/android/settings/deviceinfo/WifiMacAddressPreferenceController.java +6 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.settings.deviceinfo; import android.content.Context; import com.android.settings.core.PreferenceControllerMixin; import com.android.settings.R; import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.deviceinfo.AbstractWifiMacAddressPreferenceController; Loading @@ -31,5 +32,10 @@ public class WifiMacAddressPreferenceController extends AbstractWifiMacAddressPr super(context, lifecycle); } @Override public boolean isAvailable() { return mContext.getResources().getBoolean(R.bool.config_show_wifi_mac_address); } // This space intentionally left blank } tests/robotests/res/values-mcc999/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -57,4 +57,7 @@ <bool name="config_show_color_inversion_preference">false</bool> <bool name="config_show_system_update_settings">false</bool> <bool name="config_wifi_support_connected_mac_randomization">false</bool> <bool name="config_show_device_model">false</bool> <bool name="config_show_wifi_ip_address">false</bool> <bool name="config_show_wifi_mac_address">false</bool> </resources> Loading
res/values/bools.xml +9 −0 Original line number Diff line number Diff line Loading @@ -158,4 +158,13 @@ <!-- Whether system_update_settings should be shown or not. --> <bool name="config_show_system_update_settings">true</bool> <!-- Whether device_model should be shown or not. --> <bool name="config_show_device_model">true</bool> <!-- Whether wifi_ip_address should be shown or not. --> <bool name="config_show_wifi_ip_address">true</bool> <!-- Whether wifi_mac_address should be shown or not. --> <bool name="config_show_wifi_mac_address">true</bool> </resources>
src/com/android/settings/deviceinfo/DeviceModelPreferenceController.java +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ public class DeviceModelPreferenceController extends AbstractPreferenceControlle @Override public boolean isAvailable() { return true; return mContext.getResources().getBoolean(R.bool.config_show_device_model); } @Override Loading
src/com/android/settings/deviceinfo/IpAddressPreferenceController.java +7 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ package com.android.settings.deviceinfo; import android.content.Context; import com.android.settings.core.PreferenceControllerMixin; import com.android.settings.R; import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.deviceinfo.AbstractIpAddressPreferenceController; Loading @@ -31,5 +33,10 @@ public class IpAddressPreferenceController extends AbstractIpAddressPreferenceCo super(context, lifecycle); } @Override public boolean isAvailable() { return mContext.getResources().getBoolean(R.bool.config_show_wifi_ip_address); } // This space intentionally left blank }
src/com/android/settings/deviceinfo/WifiMacAddressPreferenceController.java +6 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.settings.deviceinfo; import android.content.Context; import com.android.settings.core.PreferenceControllerMixin; import com.android.settings.R; import com.android.settingslib.core.lifecycle.Lifecycle; import com.android.settingslib.deviceinfo.AbstractWifiMacAddressPreferenceController; Loading @@ -31,5 +32,10 @@ public class WifiMacAddressPreferenceController extends AbstractWifiMacAddressPr super(context, lifecycle); } @Override public boolean isAvailable() { return mContext.getResources().getBoolean(R.bool.config_show_wifi_mac_address); } // This space intentionally left blank }
tests/robotests/res/values-mcc999/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -57,4 +57,7 @@ <bool name="config_show_color_inversion_preference">false</bool> <bool name="config_show_system_update_settings">false</bool> <bool name="config_wifi_support_connected_mac_randomization">false</bool> <bool name="config_show_device_model">false</bool> <bool name="config_show_wifi_ip_address">false</bool> <bool name="config_show_wifi_mac_address">false</bool> </resources>