Home
last modified time | relevance | path

Searched refs:cardEmulation (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Nfc/tests/cts/tests/src/android/nfc/cts/
DCardEmulationTest.java349 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testCustomFrameToCustomInTwoFullLoops()
355 assertTrue(cardEmulation.registerPollingLoopFilterForService( in testCustomFrameToCustomInTwoFullLoops()
375 assertTrue(cardEmulation.removePollingLoopFilterForService( in testCustomFrameToCustomInTwoFullLoops()
423 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in EventPollLoopReceiver() local
424 cardEmulation.registerNfcEventCallback(pool, this); in EventPollLoopReceiver()
461 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in cleanup() local
462 cardEmulation.unregisterNfcEventCallback(this); in cleanup()
620 final CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testEventListener() local
625 assertTrue(cardEmulation.setPreferredService( in testEventListener()
629 assertTrue(cardEmulation.setPreferredService( in testEventListener()
[all …]
DNfcAdapterTest.java388 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testDefaultObserveModePaymentDynamic() local
390 cardEmulation.setShouldDefaultToObserveModeForService(new ComponentName(mContext, in testDefaultObserveModePaymentDynamic()
399 cardEmulation.setShouldDefaultToObserveModeForService(new ComponentName(mContext, in testDefaultObserveModePaymentDynamic()
412 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testDefaultObserveModeForegroundDynamic() local
415 cardEmulation.setShouldDefaultToObserveModeForService(new ComponentName(mContext, in testDefaultObserveModeForegroundDynamic()
417 cardEmulation.setShouldDefaultToObserveModeForService(new ComponentName(mContext, in testDefaultObserveModeForegroundDynamic()
419 assertTrue(cardEmulation.setPreferredService(activity, in testDefaultObserveModeForegroundDynamic()
423 assertTrue(cardEmulation.setPreferredService(activity, in testDefaultObserveModeForegroundDynamic()
429 cardEmulation.setShouldDefaultToObserveModeForService(new ComponentName(mContext, in testDefaultObserveModeForegroundDynamic()
441 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testDefaultObserveModeOnlyWithServiceChange() local
[all …]
DDefaultPaymentProviderTestUtils.java65 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in setDefaultPaymentService() local
75 && !cardEmulation.isDefaultServiceForCategory(serviceName, in setDefaultPaymentService()
88 : serviceName.equals(cardEmulation.getPreferredPaymentService(context))); in setDefaultPaymentService()
98 final CardEmulation cardEmulation = CardEmulation.getInstance(adapter);
102 cardEmulation.getDescriptionForPreferredPaymentService()));
/packages/modules/Nfc/NfcNci/tests/testcases/src/android/nfc/test/
DObserveModeTests.java67 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testObserveModeStress() local
70 cardEmulation.setShouldDefaultToObserveModeForService( in testObserveModeStress()
73 cardEmulation.setPreferredService( in testObserveModeStress()
102 cardEmulation.setShouldDefaultToObserveModeForService( in testObserveModeStress()
111 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testInterleavePlfAndAid() local
114 cardEmulation.setShouldDefaultToObserveModeForService( in testInterleavePlfAndAid()
116 assertTrue(cardEmulation.setPreferredService( in testInterleavePlfAndAid()
158 cardEmulation.setShouldDefaultToObserveModeForService( in testInterleavePlfAndAid()
168 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in testInterleavePlfSecondServiceAndAid() local
171 cardEmulation.setShouldDefaultToObserveModeForService( in testInterleavePlfSecondServiceAndAid()
[all …]
DTestUtils.java73 final CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in ensurePreferredService() local
111 final CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in ensurePreferredService() local
116 () -> serviceDesc.equals(cardEmulation.getDescriptionForPreferredPaymentService())); in ensurePreferredService()
/packages/modules/Nfc/tests/cts/tests/WalletRoleHolderApp/src/com/android/test/walletroleholder/
DWalletRoleBroadcastReceiver.java34 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in onReceive() local
38 cardEmulation.registerNfcEventCallback(context.getMainExecutor(), this); in onReceive()
41 cardEmulation.unregisterNfcEventCallback(this); in onReceive()
44 cardEmulation.setShouldDefaultToObserveModeForService( in onReceive()
48 cardEmulation.setShouldDefaultToObserveModeForService( in onReceive()
/packages/modules/Nfc/NfcNci/testutils/src/com/android/nfc/emulator/
DBaseEmulatorActivity.java169 void ensurePreferredService(String serviceDesc, Context context, CardEmulation cardEmulation) { in ensurePreferredService() argument
176 cardEmulation.getDescriptionForPreferredPaymentService() != null in ensurePreferredService()
178 cardEmulation in ensurePreferredService()
DNfcEmulatorDeviceSnippet.java297 CardEmulation cardEmulation = CardEmulation.getInstance(adapter); in isAidPrefixRegistrationSupported() local
298 if (cardEmulation == null) { in isAidPrefixRegistrationSupported()
301 return cardEmulation.supportsAidPrefixRegistration(); in isAidPrefixRegistrationSupported()