Home
last modified time | relevance | path

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

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
H A DNfcPaymentPreferenceControllerTest.java52 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceControllerTest
83 mController.setPaymentBackend(mPaymentBackend); in getAvailabilityStatus_noPaymentApps_DISABLED()
98 mController.setPaymentBackend(mPaymentBackend); in getAvailabilityStatus_hasPaymentApps_AVAILABLE()
109 mController.setPaymentBackend(mPaymentBackend); in onStart_shouldRegisterCallback()
113 verify(mPaymentBackend).registerCallback(mController); in onStart_shouldRegisterCallback()
118 mController.setPaymentBackend(mPaymentBackend); in onStop_shouldUnregisterCallback()
123 verify(mPaymentBackend).unregisterCallback(mController); in onStop_shouldUnregisterCallback()
128 mController.setPaymentBackend(mPaymentBackend); in displayPreference_shouldInitialize()
137 mController.setPaymentBackend(mPaymentBackend); in onPaymentAppsChanged_shouldRefreshSummary()
139 when(mPaymentBackend.getDefaultApp()).thenReturn(null); in onPaymentAppsChanged_shouldRefreshSummary()
[all …]
H A DNfcForegroundPreferenceControllerTest.java52 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceControllerTest
93 mController.setPaymentBackend(mPaymentBackend); in getAvailabilityStatus_noPaymentApps_DISABLED()
107 mController.setPaymentBackend(mPaymentBackend); 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()
154 verify(mPaymentBackend).setForegroundMode(true); in changeOptions_shouldUpdateEntryAndSummary()
160 verify(mPaymentBackend).setForegroundMode(false); in changeOptions_shouldUpdateEntryAndSummary()
173 verify(mPaymentBackend).setForegroundMode(true); in changeOptions_checkMetrics()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/nfc/
H A 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()
H A 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()
128 final PaymentAppInfo defaultApp = mPaymentBackend.getDefaultApp(); in getSummary()
149 final PaymentAppInfo defaultAppInfo = mPaymentBackend.getDefaultApp(); in onClick()
[all …]
H A 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()