Home
last modified time | relevance | path

Searched refs:NfcPreferenceController (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPreferenceControllerTest.java37 import com.android.settings.nfc.NfcPreferenceController.NfcSliceWorker;
38 import com.android.settings.nfc.NfcPreferenceController.NfcSliceWorker.NfcUpdateReceiver;
67 private NfcPreferenceController mNfcController;
79 mNfcController = new NfcPreferenceController(mContext, in setUp()
80 NfcPreferenceController.KEY_TOGGLE_NFC); in setUp()
90 .isEqualTo(NfcPreferenceController.AVAILABLE); in getAvailabilityStatus_hasNfc_shouldReturnAvailable()
97 .isEqualTo(NfcPreferenceController.UNSUPPORTED_ON_DEVICE); in getAvailabilityStatus_noNfcAdapter_shouldReturnDisabledUnsupported()
195 assertThat(NfcPreferenceController.isToggleableInAirplaneMode(mContext)).isTrue(); in isToggleableInAirplaneMode_containNfc_shouldReturnTrue()
206 assertThat(NfcPreferenceController.isToggleableInAirplaneMode(mContext)).isFalse(); in isToggleableInAirplaneMode_withoutNfc_shouldReturnFalse()
214 assertThat(NfcPreferenceController.shouldTurnOffNFCInAirplaneMode(mContext)).isTrue(); in shouldTurnOffNFCInAirplaneMode_airplaneModeRadiosContainsNfc_shouldReturnTrue()
[all …]
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DAdvancedConnectedDeviceController.java25 import com.android.settings.nfc.NfcPreferenceController;
54 final NfcPreferenceController nfcPreferenceController = in getConnectedDevicesSummaryResourceId()
55 new NfcPreferenceController(context, NfcPreferenceController.KEY_TOGGLE_NFC); in getConnectedDevicesSummaryResourceId()
68 static int getConnectedDevicesSummaryResourceId(NfcPreferenceController in getConnectedDevicesSummaryResourceId()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/connecteddevice/
DAdvancedConnectedDeviceController.java25 import com.android.car.developeroptions.nfc.NfcPreferenceController;
54 final NfcPreferenceController nfcPreferenceController = in getConnectedDevicesSummaryResourceId()
55 new NfcPreferenceController(context, NfcPreferenceController.KEY_TOGGLE_NFC); in getConnectedDevicesSummaryResourceId()
68 static int getConnectedDevicesSummaryResourceId(NfcPreferenceController in getConnectedDevicesSummaryResourceId()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAdvancedConnectedDeviceControllerTest.java30 import com.android.settings.nfc.NfcPreferenceController;
52 private NfcPreferenceController mNfcController;
62 mNfcController = new NfcPreferenceController(mContext, in setUp()
63 NfcPreferenceController.KEY_TOGGLE_NFC); in setUp()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DNfcEnabler.java62 if (NfcPreferenceController.isToggleableInAirplaneMode(mContext) in isToggleable()
63 || !NfcPreferenceController.shouldTurnOffNFCInAirplaneMode(mContext)) { in isToggleable()
DNfcPreferenceController.java38 public class NfcPreferenceController extends TogglePreferenceController class
47 public NfcPreferenceController(Context context, String key) { in NfcPreferenceController() method in NfcPreferenceController
DNfcAirplaneModeObserver.java77 mPreference.setEnabled(NfcPreferenceController.isToggleableInAirplaneMode(mContext)); in updateNfcPreference()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java62 if (NfcPreferenceController.isToggleableInAirplaneMode(mContext) in isToggleable()
63 || !NfcPreferenceController.shouldTurnOffNFCInAirplaneMode(mContext)) { in isToggleable()
DNfcPreferenceController.java38 public class NfcPreferenceController extends TogglePreferenceController class
45 public NfcPreferenceController(Context context, String key) { in NfcPreferenceController() method in NfcPreferenceController