Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPaymentPreferenceControllerTest.java49 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceControllerTest
80 mController.setPaymentBackend(mPaymentBackend); in getAvailabilityStatus_noPaymentApps_DISABLED()
81 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(null); in getAvailabilityStatus_noPaymentApps_DISABLED()
86 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(new ArrayList<>()); in getAvailabilityStatus_noPaymentApps_DISABLED()
95 mController.setPaymentBackend(mPaymentBackend); in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
98 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(appInfos); in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
106 mController.setPaymentBackend(mPaymentBackend); in onStart_shouldRegisterCallback()
110 verify(mPaymentBackend).registerCallback(mController); in onStart_shouldRegisterCallback()
115 mController.setPaymentBackend(mPaymentBackend); in onStop_shouldUnregisterCallback()
120 verify(mPaymentBackend).unregisterCallback(mController); in onStop_shouldUnregisterCallback()
[all …]
DNfcForegroundPreferenceControllerTest.java52 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceControllerTest
93 mController.setPaymentBackend(mPaymentBackend); in getAvailabilityStatus_noPaymentApps_DISABLED()
94 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(null); in getAvailabilityStatus_noPaymentApps_DISABLED()
99 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(new ArrayList<>()); in getAvailabilityStatus_noPaymentApps_DISABLED()
107 mController.setPaymentBackend(mPaymentBackend); in initPaymentApps()
110 when(mPaymentBackend.getPaymentAppInfos()).thenReturn(appInfos); in initPaymentApps()
123 mController.setPaymentBackend(mPaymentBackend); in onStart_shouldRegisterCallback()
127 verify(mPaymentBackend).registerCallback(mController); in onStart_shouldRegisterCallback()
132 mController.setPaymentBackend(mPaymentBackend); in onStop_shouldUnregisterCallback()
137 verify(mPaymentBackend).unregisterCallback(mController); in onStop_shouldUnregisterCallback()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/nfc/
DNfcPaymentPreferenceController.java53 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceController
63 mPaymentBackend = backend; in setPaymentBackend()
68 if (mPaymentBackend != null) { in onStart()
69 mPaymentBackend.registerCallback(this); in onStart()
75 if (mPaymentBackend != null) { in onStop()
76 mPaymentBackend.unregisterCallback(this); in onStop()
89 if (mPaymentBackend == null) { in getAvailabilityStatus()
90 mPaymentBackend = new PaymentBackend(mContext); in getAvailabilityStatus()
92 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus()
117 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in updateState()
[all …]
DNfcForegroundPreferenceController.java40 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceController
49 mPaymentBackend = backend; in setPaymentBackend()
54 if (mPaymentBackend != null) { in onStart()
55 mPaymentBackend.registerCallback(this); in onStart()
61 if (mPaymentBackend != null) { in onStop()
62 mPaymentBackend.unregisterCallback(this); in onStop()
72 if (mPaymentBackend == null) { in getAvailabilityStatus()
75 final List<PaymentBackend.PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus()
105 mPaymentBackend.isForegroundMode() ? "1" : "0"); in updateState()
124 mPaymentBackend.setForegroundMode(foregroundMode); in onPreferenceChange()
DPaymentSettings.java47 private PaymentBackend mPaymentBackend; field in PaymentSettings
67 mPaymentBackend = new PaymentBackend(getActivity()); in onAttach()
70 use(NfcPaymentPreferenceController.class).setPaymentBackend(mPaymentBackend); in onAttach()
71 use(NfcForegroundPreferenceController.class).setPaymentBackend(mPaymentBackend); in onAttach()
87 mPaymentBackend.onResume(); in onResume()
93 mPaymentBackend.onPause(); in onPause()
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcPaymentPreferenceController.java53 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceController
63 mPaymentBackend = backend; in setPaymentBackend()
68 if (mPaymentBackend != null) { in onStart()
69 mPaymentBackend.registerCallback(this); in onStart()
75 if (mPaymentBackend != null) { in onStop()
76 mPaymentBackend.unregisterCallback(this); in onStop()
89 if (mPaymentBackend == null) { in getAvailabilityStatus()
90 mPaymentBackend = new PaymentBackend(mContext); in getAvailabilityStatus()
92 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus()
117 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in updateState()
[all …]
DNfcForegroundPreferenceController.java40 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceController
49 mPaymentBackend = backend; in setPaymentBackend()
54 if (mPaymentBackend != null) { in onStart()
55 mPaymentBackend.registerCallback(this); in onStart()
61 if (mPaymentBackend != null) { in onStop()
62 mPaymentBackend.unregisterCallback(this); in onStop()
72 if (mPaymentBackend == null) { in getAvailabilityStatus()
75 final List<PaymentBackend.PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus()
105 mPaymentBackend.isForegroundMode() ? "1" : "0"); in updateState()
124 mPaymentBackend.setForegroundMode(foregroundMode); in onPreferenceChange()
DPaymentSettings.java47 private PaymentBackend mPaymentBackend; field in PaymentSettings
67 mPaymentBackend = new PaymentBackend(getActivity()); in onAttach()
70 use(NfcPaymentPreferenceController.class).setPaymentBackend(mPaymentBackend); in onAttach()
71 use(NfcForegroundPreferenceController.class).setPaymentBackend(mPaymentBackend); in onAttach()
87 mPaymentBackend.onResume(); in onResume()
93 mPaymentBackend.onPause(); in onPause()