Home
last modified time | relevance | path

Searched refs:mWalletClient (Results 1 – 4 of 4) sorted by relevance

/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPluginServiceTest.java30 @Mock QuickAccessWalletClient mWalletClient; field in WalletPluginServiceTest
37 when(mWalletClient.isWalletServiceAvailable()).thenReturn(true); in setUp()
44 mPluginService.onCreate(mContext, mContext, mWalletClient); in onCreate_serviceAvailable_enablesFeatureInSettings()
55 when(mWalletClient.isWalletServiceAvailable()).thenReturn(false); in onCreate_serviceUnavailable_disablesFeatureInSettings()
57 mPluginService.onCreate(mContext, mContext, mWalletClient); in onCreate_serviceUnavailable_disablesFeatureInSettings()
71 mPluginService.onCreate(mContext, mContext, mWalletClient); in onCreate_doesNotOverridePanelEnabledSettingIfOff()
79 when(mWalletClient.isWalletServiceAvailable()).thenReturn(false); in onPanelShown_wasUnavailable_nowAvailable_updatesFeatureAvailabilityInSettings()
80 mPluginService.onCreate(mContext, mContext, mWalletClient); in onPanelShown_wasUnavailable_nowAvailable_updatesFeatureAvailabilityInSettings()
86 when(mWalletClient.isWalletServiceAvailable()).thenReturn(true); in onPanelShown_wasUnavailable_nowAvailable_updatesFeatureAvailabilityInSettings()
88 mPluginService.onPanelShown(mPluginCallbacks, false, mWalletClient); in onPanelShown_wasUnavailable_nowAvailable_updatesFeatureAvailabilityInSettings()
[all …]
DWalletPanelViewControllerTest.java91 QuickAccessWalletClient mWalletClient; field in WalletPanelViewControllerTest
108 mContext, mContext, mWalletClient, mPluginCallbacks, false); in setUp()
114 when(mWalletClient.getLogo()).thenReturn(mWalletLogo); in setUp()
115 when(mWalletClient.getShortcutLongLabel()).thenReturn(SHORTCUT_LONG_LABEL); in setUp()
116 when(mWalletClient.getShortcutShortLabel()).thenReturn(SHORTCUT_SHORT_LABEL); in setUp()
117 when(mWalletClient.getServiceLabel()).thenReturn(SERVICE_LABEL); in setUp()
118 when(mWalletClient.createWalletIntent()).thenReturn(mWalletIntent); in setUp()
132 verify(mWalletClient, never()).getWalletCards(any(), any(), any()); in getPanelContent_returnsSameView()
146 mContext, mContext, mWalletClient, mPluginCallbacks, false); in init_showsEmptyStateViewIfCardsNotReturnedLastTime()
164 mContext, mContext, mWalletClient, mPluginCallbacks, false); in init_doesNotShowEmptyStateViewIfCardsReturnedLastTime()
[all …]
DQuickAccessWalletClientTest.java66 private QuickAccessWalletClient mWalletClient; field in QuickAccessWalletClientTest
79 mWalletClient = QuickAccessWalletClient.create(mContext); in isWalletServiceAvailable_serviceAvailable_returnsTrue()
81 assertThat(mWalletClient.isWalletServiceAvailable()).isTrue(); in isWalletServiceAvailable_serviceAvailable_returnsTrue()
88 mWalletClient = QuickAccessWalletClient.create(mContext); in isWalletServiceAvailable_returnsFalseIfServiceUnavailable()
90 assertThat(mWalletClient.isWalletServiceAvailable()).isFalse(); in isWalletServiceAvailable_returnsFalseIfServiceUnavailable()
98 mWalletClient = QuickAccessWalletClient.create(mContext); in isWalletServiceAvailable_returnsFalseIfNfcPaymentAppIsAnotherApp()
100 assertThat(mWalletClient.isWalletServiceAvailable()).isFalse(); in isWalletServiceAvailable_returnsFalseIfNfcPaymentAppIsAnotherApp()
111 mWalletClient = QuickAccessWalletClient.create(mContext); in isWalletFeatureAvailable_happyCase()
113 assertThat(mWalletClient.isWalletFeatureAvailable()).isTrue(); in isWalletFeatureAvailable_happyCase()
125 mWalletClient = QuickAccessWalletClient.create(mContext); in isWalletFeatureAvailable_wrongUser()
[all …]
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPanelViewController.java65 private final QuickAccessWalletClient mWalletClient; field in WalletPanelViewController
86 mWalletClient = walletClient; in WalletPanelViewController()
128 mWalletClient.notifyWalletDismissed(); in onDismissed()
129 mWalletClient.removeWalletServiceEventListener(this); in onDismissed()
158 mWalletClient.addWalletServiceEventListener(this); in queryWalletCards()
161 if (mIsDeviceLocked && !mWalletClient.isWalletFeatureAvailableWhenDeviceLocked()) { in queryWalletCards()
172 mWalletClient.getWalletCards(mExecutor, request, this); in queryWalletCards()
261 mWalletClient.selectWalletCard(new SelectWalletCardRequest(selectedCardId)); in selectCard()
281 CharSequence walletLabel = mWalletClient.getShortcutShortLabel(); in getOverflowItems()
282 Intent walletIntent = mWalletClient.createWalletIntent(); in getOverflowItems()
[all …]