Searched refs:NfcPreferenceController (Results 1 – 9 of 9) sorted by relevance
37 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 …]
25 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()
25 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()
30 import com.android.settings.nfc.NfcPreferenceController;52 private NfcPreferenceController mNfcController;62 mNfcController = new NfcPreferenceController(mContext, in setUp()63 NfcPreferenceController.KEY_TOGGLE_NFC); in setUp()
62 if (NfcPreferenceController.isToggleableInAirplaneMode(mContext) in isToggleable()63 || !NfcPreferenceController.shouldTurnOffNFCInAirplaneMode(mContext)) { in isToggleable()
38 public class NfcPreferenceController extends TogglePreferenceController class47 public NfcPreferenceController(Context context, String key) { in NfcPreferenceController() method in NfcPreferenceController
77 mPreference.setEnabled(NfcPreferenceController.isToggleableInAirplaneMode(mContext)); in updateNfcPreference()
38 public class NfcPreferenceController extends TogglePreferenceController class45 public NfcPreferenceController(Context context, String key) { in NfcPreferenceController() method in NfcPreferenceController