/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/ |
D | NfcAidConflictOccurredTest.java | 42 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()
|
D | NfcCardEmulationOccurredTest.java | 54 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()
|
D | WalletRoleObserverTest.java | 43 import com.android.nfc.NfcInjector; 82 NfcInjector mNfcInjector;
|
D | RegisteredServicesCacheTest.java | 58 import com.android.nfc.NfcInjector; 141 private NfcInjector mNfcInjector; 172 .mockStatic(NfcInjector.class) in setUp() 185 when(NfcInjector.getInstance()).thenReturn(mNfcInjector); in setUp()
|
D | CardEmulationManagerTest.java | 77 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()
|
D | HostEmulationManagerTest.java | 62 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/ |
D | ScreenStateHelper.java | 57 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()
|
D | NfcInjector.java | 63 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
|
D | NfcEventLog.java | 46 private final NfcInjector mNfcInjector; 52 public NfcEventLog(Context context, NfcInjector nfcInjector, Looper looper, in NfcEventLog()
|
D | NfcBackupAgent.java | 41 DeviceConfigFacade deviceConfigFacade = NfcInjector.getInstance().getDeviceConfigFacade(); in onRestoreFinished()
|
D | NfcApplication.java | 65 mNfcService = new NfcService(this, new NfcInjector(this, Looper.myLooper())); in onCreate()
|
D | NfcDispatcher.java | 114 private final NfcInjector mNfcInjector; 134 NfcInjector nfcInjector, in NfcDispatcher()
|
D | NfcService.java | 444 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/ |
D | ConfirmConnectActivity.java | 35 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());
|
D | BluetoothPeripheralHandover.java | 47 import com.android.nfc.NfcInjector; 183 mDeviceConfigFacade = NfcInjector.getInstance().getDeviceConfigFacade(); in BluetoothPeripheralHandover()
|
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/ |
D | ScreenStateHelperTest.java | 52 private NfcInjector mMockNfcInjector; 59 .mockStatic(NfcInjector.class) in setUp() 63 when(NfcInjector.getInstance()).thenReturn(mMockNfcInjector); in setUp()
|
D | NfcReaderConflictOccurredTest.java | 72 private NfcInjector mNfcInjector; 129 mNfcInjector = mock(NfcInjector.class); in setUp() 130 NfcInjector.setNfcInjector(mNfcInjector); in setUp()
|
D | NfcEventLogTest.java | 51 @Mock NfcInjector mNfcInjector;
|
D | NfcDispatcherTest.java | 92 @Mock private NfcInjector mNfcInjector;
|
D | NfcServiceTest.java | 164 @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/ |
D | RegisteredServicesCache.java | 58 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 …]
|
D | HostEmulationManager.java | 66 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 …]
|
D | WalletRoleObserver.java | 35 import com.android.nfc.NfcInjector; 57 Callback callback, NfcInjector nfcInjector) { in WalletRoleObserver()
|
D | CardEmulationManager.java | 67 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/ |
D | BluetoothPeripheralHandoverTest.java | 73 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()
|