Searched refs:mPaymentBackend (Results 1 – 8 of 8) sorted by relevance
49 private PaymentBackend mPaymentBackend; field in NfcPaymentPreferenceControllerTest80 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 …]
52 private PaymentBackend mPaymentBackend; field in NfcForegroundPreferenceControllerTest93 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 …]
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()92 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in getAvailabilityStatus()117 final List<PaymentAppInfo> appInfos = mPaymentBackend.getPaymentAppInfos(); in updateState()[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()
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()