Home
last modified time | relevance | path

Searched refs:NfcInjector (Results 1 – 25 of 25) sorted by relevance

/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/
DNfcAidConflictOccurredTest.java42 import com.android.nfc.NfcInjector;
77 .mockStatic(NfcInjector.class) in setUp()
83 NfcInjector mockNfcInjector = Mockito.mock(NfcInjector.class); in setUp()
88 when(NfcInjector.getInstance()).thenReturn(Mockito.mock(NfcInjector.class)); in setUp()
DNfcCardEmulationOccurredTest.java54 import com.android.nfc.NfcInjector;
78 private NfcInjector mockNfcInjector;
96 .mockStatic(NfcInjector.class) in setUp()
102 mockNfcInjector = Mockito.mock(NfcInjector.class); in setUp()
121 when(NfcInjector.getInstance()).thenReturn(mockNfcInjector); in setUp()
DWalletRoleObserverTest.java43 import com.android.nfc.NfcInjector;
82 NfcInjector mNfcInjector;
DRegisteredServicesCacheTest.java58 import com.android.nfc.NfcInjector;
141 private NfcInjector mNfcInjector;
172 .mockStatic(NfcInjector.class) in setUp()
185 when(NfcInjector.getInstance()).thenReturn(mNfcInjector); in setUp()
DCardEmulationManagerTest.java77 import com.android.nfc.NfcInjector;
193 private NfcInjector mNfcInjector;
219 .mockStatic(NfcInjector.NfcProperties.class) in setUp()
2620 when(NfcInjector.NfcProperties.isEuiccSupported()).thenReturn(true); in testIsEuiccSupported()
2923 when(NfcInjector.NfcProperties.isEuiccSupported()).thenReturn(true); in testUpdateForDefaultSwpToEuicc()
2951 when(NfcInjector.NfcProperties.isEuiccSupported()).thenReturn(true); in testUpdateForDefaultSwpToEuiccWithCmdFail()
2980 when(NfcInjector.NfcProperties.isEuiccSupported()).thenReturn(true); in testUpdateForDefaultSwpToEuiccWithWrongLength()
3015 when(NfcInjector.NfcProperties.isEuiccSupported()).thenReturn(false); in testUpdateForDefaultSwpToEuiccWithEmulationNotSupport()
DHostEmulationManagerTest.java62 import com.android.nfc.NfcInjector;
116 @Mock private NfcInjector mNfcInjector;
139 .mockStatic(NfcInjector.class) in setUp()
149 when(NfcInjector.getInstance()).thenReturn(mNfcInjector); in setUp()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/
DScreenStateHelper.java57 if (NfcInjector.getInstance().isDeviceLocked()) { in checkScreenState()
62 } else if (NfcInjector.getInstance().isDeviceLocked()) { in checkScreenState()
71 if (NfcInjector.getInstance().isDeviceLocked()) { in checkScreenStateProvisionMode()
76 } else if (NfcInjector.getInstance().isDeviceLocked()) { in checkScreenStateProvisionMode()
DNfcInjector.java63 public class NfcInjector { class
90 private static NfcInjector sInstance;
93 public static NfcInjector getInstance() { in getInstance()
98 static void setNfcInjector(NfcInjector nfcInjector) { in setNfcInjector()
103 public NfcInjector(@NonNull Context context, @NonNull Looper mainLooper) { in NfcInjector() method in NfcInjector
DNfcEventLog.java46 private final NfcInjector mNfcInjector;
52 public NfcEventLog(Context context, NfcInjector nfcInjector, Looper looper, in NfcEventLog()
DNfcBackupAgent.java41 DeviceConfigFacade deviceConfigFacade = NfcInjector.getInstance().getDeviceConfigFacade(); in onRestoreFinished()
DNfcApplication.java65 mNfcService = new NfcService(this, new NfcInjector(this, Looper.myLooper())); in onCreate()
DNfcDispatcher.java114 private final NfcInjector mNfcInjector;
134 NfcInjector nfcInjector, in NfcDispatcher()
DNfcService.java444 NfcInjector mNfcInjector;
1118 public NfcService(Application nfcApplication, NfcInjector nfcInjector) { in NfcService()
2375 if (!NfcInjector.isPrivileged(callingUid)) { in setObserveMode()
2690 boolean privilegedCaller = NfcInjector.isPrivileged(callingUid) in updateDiscoveryTechnology()
2823 boolean privilegedCaller = NfcInjector.isPrivileged(callingUid) in setReaderMode()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/handover/
DConfirmConnectActivity.java35 import com.android.nfc.NfcInjector;
66 allowIntent.setPackage(NfcInjector.getInstance().getNfcPackageName()); in onCreate()
77 denyIntent.setPackage(NfcInjector.getInstance().getNfcPackageName()); in onCreate()
99 denyIntent.setPackage(NfcInjector.getInstance().getNfcPackageName()); in onDestroy()
123 denyIntent.setPackage(NfcInjector.getInstance().getNfcPackageName());
DBluetoothPeripheralHandover.java47 import com.android.nfc.NfcInjector;
183 mDeviceConfigFacade = NfcInjector.getInstance().getDeviceConfigFacade(); in BluetoothPeripheralHandover()
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/
DScreenStateHelperTest.java52 private NfcInjector mMockNfcInjector;
59 .mockStatic(NfcInjector.class) in setUp()
63 when(NfcInjector.getInstance()).thenReturn(mMockNfcInjector); in setUp()
DNfcReaderConflictOccurredTest.java72 private NfcInjector mNfcInjector;
129 mNfcInjector = mock(NfcInjector.class); in setUp()
130 NfcInjector.setNfcInjector(mNfcInjector); in setUp()
DNfcEventLogTest.java51 @Mock NfcInjector mNfcInjector;
DNfcDispatcherTest.java92 @Mock private NfcInjector mNfcInjector;
DNfcServiceTest.java164 @Mock NfcInjector mNfcInjector;
225 .mockStatic(NfcInjector.class) in setUp()
2004 when(NfcInjector.isPrivileged(anyInt())).thenReturn(false); in testGetWalletRoleHolder()
/packages/modules/Nfc/NfcNci/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java58 import com.android.nfc.NfcInjector;
344 if (NfcInjector.getInstance().isBootCompleted()) { in initialize()
680 …if (NfcInjector.getInstance().getDeviceConfigFacade().getCeDisableOtherServicesOnManagedProfiles()… in invalidateOther()
1116 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in setOffHostSecureElement()
1160 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in resetOffHostSecureElement()
1202 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in setShouldDefaultToObserveModeForService()
1235 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in registerPollingLoopFilterForService()
1269 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in removePollingLoopFilterForService()
1300 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in registerPollingLoopPatternFilterForService()
1334 if (!NfcInjector.isPrivileged(uid) && serviceInfo.getUid() != uid) { in removePollingLoopPatternFilterForService()
[all …]
DHostEmulationManager.java66 import com.android.nfc.NfcInjector;
316 NfcInjector nfcInjector) { in HostEmulationManager()
324 StatsdUtils statsdUtils, NfcInjector nfcInjector) { in HostEmulationManager()
800 intent.setPackage(NfcInjector.getInstance().getNfcPackageName()); in onHostEmulationActivated()
878 NfcInjector.getInstance().getNfcEventLog().logEvent( in onHostEmulationData()
904 && NfcInjector.getInstance().isDeviceLocked()) { in onHostEmulationData()
976 NfcInjector.getInstance().getNfcEventLog().logEvent( in onHostEmulationData()
1110 intent.setPackage(NfcInjector.getInstance().getNfcPackageName()); in onOffHostAidSelected()
1541 NfcInjector.getInstance().getNfcEventLog().logEvent(
1581 NfcInjector.getInstance().getNfcEventLog().logEvent(
[all …]
DWalletRoleObserver.java35 import com.android.nfc.NfcInjector;
57 Callback callback, NfcInjector nfcInjector) { in WalletRoleObserver()
DCardEmulationManager.java67 import com.android.nfc.NfcInjector;
162 private final NfcInjector mNfcInjector;
165 public CardEmulationManager(Context context, NfcInjector nfcInjector, in CardEmulationManager()
223 NfcInjector nfcInjector) { in CardEmulationManager()
1319 && NfcInjector.NfcProperties.isEuiccSupported(); in isEuiccSupported()
1616 || !NfcInjector.NfcProperties.isEuiccSupported()) { in updateForDefaultSwpToEuicc()
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/handover/
DBluetoothPeripheralHandoverTest.java73 import com.android.nfc.NfcInjector;
129 .mockStatic(NfcInjector.class) in setUp()
135 NfcInjector nfcInjector = mock(NfcInjector.class); in setUp()
136 when(NfcInjector.getInstance()).thenReturn(nfcInjector); in setUp()