Searched refs:mPaymentBackend (Results 1 – 5 of 5) sorted by relevance
52 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceControllerTest83 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 …]
52 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceControllerTest93 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 …]
40 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceController49 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()
53 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceController63 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 …]
47 private PaymentBackend mPaymentBackend; field in PaymentSettings67 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()