Home
last modified time | relevance | path

Searched refs:mFrameworkFacade (Results 1 – 25 of 64) sorted by relevance

123

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiSettingsStoreTest.java77 @Mock private FrameworkFacade mFrameworkFacade; field in WifiSettingsStoreTest
96 when(mFrameworkFacade.getIntegerSetting(mContentResolver, Settings.Global.AIRPLANE_MODE_ON, in setUp()
98 when(mFrameworkFacade.getIntegerSetting(mContentResolver, in setUp()
100 when(mFrameworkFacade.getStringSetting(mContext, in setUp()
102 when(mFrameworkFacade.getStringSetting(mContext, in setUp()
104 when(mFrameworkFacade.getUserContext(mContext)).thenReturn(mContext); in setUp()
105 when(mFrameworkFacade.getSettingsPackageName(mContext)).thenReturn("package"); in setUp()
106 when(mFrameworkFacade.makeNotificationBuilder(any(), anyString())) in setUp()
120 mWifiThreadRunner, mFrameworkFacade, mNotificationManager, mDeviceConfigFacade, in setUp()
127 when(mFrameworkFacade.getIntegerSetting(mContentResolver, Settings.Global.AIRPLANE_MODE_ON, in testApmEnhancementWifiToggled()
[all …]
DEapFailureNotifierTest.java71 @Mock FrameworkFacade mFrameworkFacade; field in EapFailureNotifierTest
119 when(mFrameworkFacade.getSettingsPackageName(any())).thenReturn(TEST_SETTINGS_PACKAGE); in setUp()
121 new EapFailureNotifier(mContext, mFrameworkFacade, mWifiCarrierInfoManager, in setUp()
143 when(mFrameworkFacade.makeNotificationBuilder(any(), in onEapFailureEapFailureConfigWithOverride()
156 verify(mFrameworkFacade, never()).makeNotificationBuilder(any(), any()); in onEapFailureEapFailureConfigWithOverride()
167 verify(mFrameworkFacade).makeNotificationBuilder(any(), any()); in onEapFailureEapFailureConfigWithOverride()
171 verify(mFrameworkFacade).makeNotificationBuilder(any(), any()); in onEapFailureEapFailureConfigWithOverride()
184 when(mFrameworkFacade.makeNotificationBuilder(any(), in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
195 verify(mFrameworkFacade).getActivity( in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
211 when(mFrameworkFacade.makeNotificationBuilder(any(), in onEapFailure_showNotificationFalse_notShown()
[all …]
DAdaptiveConnectivityEnabledSettingObserverTest.java55 @Mock private FrameworkFacade mFrameworkFacade; field in AdaptiveConnectivityEnabledSettingObserverTest
69 handler, mWifiMetrics, mFrameworkFacade, mContext); in setUp()
78 when(mFrameworkFacade.getSecureIntegerSetting( in initiallyTrue_adaptiveConnectivityToggled_getCorrectValue()
85 verify(mFrameworkFacade).registerContentObserver( in initiallyTrue_adaptiveConnectivityToggled_getCorrectValue()
90 when(mFrameworkFacade.getSecureIntegerSetting(eq(mContext), in initiallyTrue_adaptiveConnectivityToggled_getCorrectValue()
103 when(mFrameworkFacade.getSecureIntegerSetting(eq(mContext), in initiallyTrue_adaptiveConnectivityToggled_getCorrectValue()
119 when(mFrameworkFacade.getSecureIntegerSetting(eq(mContext), in initiallyFalse_adaptiveConnectivityToggled_getCorrectValue()
126 verify(mFrameworkFacade).registerContentObserver( in initiallyFalse_adaptiveConnectivityToggled_getCorrectValue()
131 when(mFrameworkFacade.getSecureIntegerSetting(eq(mContext), in initiallyFalse_adaptiveConnectivityToggled_getCorrectValue()
144 when(mFrameworkFacade.getSecureIntegerSetting(eq(mContext), in initiallyFalse_adaptiveConnectivityToggled_getCorrectValue()
DWifiScanAlwaysAvailableSettingsCompatibilityTest.java59 private FrameworkFacade mFrameworkFacade; field in WifiScanAlwaysAvailableSettingsCompatibilityTest
75 mWifiSettingsStore, mActiveModeWarden, mFrameworkFacade); in setUp()
96 when(mFrameworkFacade.getIntegerSetting( in reactToContentObserverChanges()
107 when(mFrameworkFacade.getIntegerSetting( in reactToContentObserverChanges()
124 verify(mFrameworkFacade).setIntegerSetting( in changeSetting()
130 verify(mFrameworkFacade).setIntegerSetting( in changeSetting()
DWrongPasswordNotifierTest.java59 @Mock FrameworkFacade mFrameworkFacade; field in WrongPasswordNotifierTest
73 when(mFrameworkFacade.getSettingsPackageName(any())).thenReturn(TEST_SETTINGS_PACKAGE); in setUp()
76 mWrongPassNotifier = new WrongPasswordNotifier(mContext, mFrameworkFacade, in setUp()
105 when(mFrameworkFacade.makeNotificationBuilder(any(), in onWrongPasswordError()
112 verify(mFrameworkFacade).getActivity( in onWrongPasswordError()
DSoftApNotifierTest.java52 @Mock FrameworkFacade mFrameworkFacade; field in SoftApNotifierTest
64 mSoftApNotifier = new SoftApNotifier(mContext, mFrameworkFacade, mWifiNotificationManager); in setUp()
74 when(mFrameworkFacade.makeNotificationBuilder(any(), in showSoftApShutdownTimeoutExpiredNotification()
80 verify(mFrameworkFacade).getActivity( in showSoftApShutdownTimeoutExpiredNotification()
DConnectionFailureNotifierTest.java62 @Mock private FrameworkFacade mFrameworkFacade; field in ConnectionFailureNotifierTest
88 mContext, mFrameworkFacade, mWifiConfigManager, mWifiConnectivityManager, in setUp()
193 verify(mFrameworkFacade, never()).makeAlertDialogBuilder(any()); in testWifiConfigurationMismatch()
195 verify(mFrameworkFacade).showToast(any(), any()); in testWifiConfigurationMismatch()
DWakeupOnboardingTest.java54 @Mock private FrameworkFacade mFrameworkFacade; field in WakeupOnboardingTest
76 new Handler(mLooper.getLooper()), mFrameworkFacade, mWakeupNotificationFactory, in setUp()
155 verify(mFrameworkFacade).setIntegerSetting(mContext, in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java151 private final FrameworkFacade mFrameworkFacade; field in WifiSettingsStore
165 mFrameworkFacade = frameworkFacade; in WifiSettingsStore()
177 Context userContext = mFrameworkFacade.getUserContext(mContext); in getUserSecureIntegerSetting()
178 return mFrameworkFacade.getSecureIntegerSetting(userContext, name, def); in getUserSecureIntegerSetting()
182 Context userContext = mFrameworkFacade.getUserContext(mContext); in setUserSecureIntegerSetting()
183 mFrameworkFacade.setSecureIntegerSetting(userContext, name, value); in setUserSecureIntegerSetting()
228 String settingsPackage = mFrameworkFacade.getSettingsPackageName(mContext); in showNotification()
234 PendingIntent tapPendingIntent = mFrameworkFacade.getActivity(mContext, 0, openLinkIntent, in showNotification()
239 Notification.Builder builder = mFrameworkFacade.makeNotificationBuilder(mContext, in showNotification()
383 return mFrameworkFacade.getIntegerSetting(mContext.getContentResolver(),
[all …]
DWifiInjector.java155 private final FrameworkFacade mFrameworkFacade = new FrameworkFacade(); field in WifiInjector
304 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, wifiLooper, in WifiInjector()
318 mContext, mFrameworkFacade); in WifiInjector()
328 mWifiDialogManager = new WifiDialogManager(mContext, mWifiThreadRunner, mFrameworkFacade, in WifiInjector()
338 mFrameworkFacade, mContext); in WifiInjector()
341 mInterfaceConflictManager = new InterfaceConflictManager(this, mContext, mFrameworkFacade, in WifiInjector()
347 mContext, mWifiMonitor, mFrameworkFacade, wifiHandler, mClock, mWifiMetrics, in WifiInjector()
380 mWifiKeyStore = new WifiKeyStore(mContext, mKeyStore, mFrameworkFacade); in WifiInjector()
383 WifiConfigStore.createSharedFiles(mFrameworkFacade.isNiapModeOn(mContext))); in WifiInjector()
392 subscriptionManager, this, mFrameworkFacade, mContext, in WifiInjector()
[all …]
DSoftApNotifier.java44 private final FrameworkFacade mFrameworkFacade; field in SoftApNotifier
50 mFrameworkFacade = framework; in SoftApNotifier()
76 return mFrameworkFacade.makeNotificationBuilder(mContext, in buildSoftApShutdownTimeoutExpiredNotification()
95 .setPackage(mFrameworkFacade.getSettingsPackageName(mContext)); in launchWifiTetherSettings()
96 return mFrameworkFacade.getActivity(mContext, 0, intent, in launchWifiTetherSettings()
DWrongPasswordNotifier.java50 private final FrameworkFacade mFrameworkFacade; field in WrongPasswordNotifier
55 mFrameworkFacade = frameworkFacade; in WrongPasswordNotifier()
95 String settingsPackage = mFrameworkFacade.getSettingsPackageName(mContext); in showNotification()
103 Notification.Builder builder = mFrameworkFacade.makeNotificationBuilder(mContext, in showNotification()
112 .setContentIntent(mFrameworkFacade.getActivity( in showNotification()
DSimRequiredNotifier.java38 private final FrameworkFacade mFrameworkFacade; field in SimRequiredNotifier
44 mFrameworkFacade = framework; in SimRequiredNotifier()
69 String settingsPackage = mFrameworkFacade.getSettingsPackageName(mContext); in showNotification()
81 Notification.Builder builder = mFrameworkFacade.makeNotificationBuilder(mContext, in showNotification()
94 .setContentIntent(mFrameworkFacade.getActivity( in showNotification()
DWifiScanAlwaysAvailableSettingsCompatibility.java50 private final FrameworkFacade mFrameworkFacade; field in WifiScanAlwaysAvailableSettingsCompatibility
59 mFrameworkFacade = frameworkFacade; in WifiScanAlwaysAvailableSettingsCompatibility()
76 mFrameworkFacade.getIntegerSetting( in initialize()
99 mFrameworkFacade.setIntegerSetting( in handleWifiScanAlwaysAvailableToggled()
DAdaptiveConnectivityEnabledSettingObserver.java49 private final FrameworkFacade mFrameworkFacade; field in AdaptiveConnectivityEnabledSettingObserver
60 mFrameworkFacade = frameworkFacade; in AdaptiveConnectivityEnabledSettingObserver()
86 mFrameworkFacade.registerContentObserver( in initialize()
94 return mFrameworkFacade.getSecureIntegerSetting( in readValueFromSettings()
DConnectionFailureNotificationBuilder.java43 private final FrameworkFacade mFrameworkFacade; field in ConnectionFailureNotificationBuilder
48 mFrameworkFacade = framework; in ConnectionFailureNotificationBuilder()
69 PendingIntent pendingShowDetailIntent = mFrameworkFacade.getBroadcast( in buildNoMacRandomizationSupportNotification()
73 return mFrameworkFacade.makeNotificationBuilder( in buildNoMacRandomizationSupportNotification()
DWakeupNotificationFactory.java45 private final FrameworkFacade mFrameworkFacade; field in WakeupNotificationFactory
49 mFrameworkFacade = frameworkFacade; in WakeupNotificationFactory()
66 return mFrameworkFacade.makeNotificationBuilder(mContext, in createOnboardingNotification()
85 return mFrameworkFacade.getBroadcast(mContext, 0, intent, in getPrivateBroadcast()
DConnectionFailureNotifier.java42 private final FrameworkFacade mFrameworkFacade; field in ConnectionFailureNotifier
60 mFrameworkFacade = framework; in ConnectionFailureNotifier()
121 mFrameworkFacade.showToast(mContext, message); in showRandomizationSettingsDialog()
143 mFrameworkFacade.showToast(mContext, message); in showRandomizationSettingsDialog()
152 mFrameworkFacade.showToast(mContext, message); in showRandomizationSettingsDialog()
DEapFailureNotifier.java59 private final FrameworkFacade mFrameworkFacade; field in EapFailureNotifier
72 mFrameworkFacade = frameworkFacade; in EapFailureNotifier()
143 String settingsPackage = mFrameworkFacade.getSettingsPackageName(mContext); in showNotification()
147 Notification.Builder builder = mFrameworkFacade.makeNotificationBuilder(mContext, in showNotification()
157 .setContentIntent(mFrameworkFacade.getActivity( in showNotification()
DMakeBeforeBreakManager.java46 private final FrameworkFacade mFrameworkFacade; field in MakeBeforeBreakManager
131 mFrameworkFacade = frameworkFacade; in MakeBeforeBreakManager()
282 manager.setRole(ROLE_CLIENT_PRIMARY, mFrameworkFacade.getSettingsWorkSource(mContext)); in recoverPrimary()
318 ROLE_CLIENT_PRIMARY, mFrameworkFacade.getSettingsWorkSource(mContext)); in onInternetValidated()
375 mFrameworkFacade.getSettingsWorkSource(mContext)); in onInternetValidationFailed()
377 mFrameworkFacade.getSettingsWorkSource(mContext)); in onInternetValidationFailed()
455 ROLE_CLIENT_PRIMARY, mFrameworkFacade.getSettingsWorkSource(mContext)); in maybeContinueMakeBeforeBreak()
DConnectToNetworkNotificationBuilder.java58 private final FrameworkFacade mFrameworkFacade; field in ConnectToNetworkNotificationBuilder
64 mFrameworkFacade = framework; in ConnectToNetworkNotificationBuilder()
171 return mFrameworkFacade.makeNotificationBuilder(mContext, in createNotificationBuilder()
193 return mFrameworkFacade.getBroadcast(mContext, requestCode, intent, in getPrivateBroadcast()
DWakeupController.java62 private final FrameworkFacade mFrameworkFacade; field in WakeupController
163 mFrameworkFacade = frameworkFacade; in WakeupController()
177 mFrameworkFacade.registerContentObserver(mContext, Settings.Global.getUriFor( in WakeupController()
204 mWifiWakeupEnabled = mFrameworkFacade.getIntegerSetting( in readWifiWakeupEnabledFromSettings()
223 mFrameworkFacade.setIntegerSetting( in setEnabled()
479 mFrameworkFacade.getSettingsWorkSource(mContext)); in enableWifi()
DWakeupOnboarding.java61 private final FrameworkFacade mFrameworkFacade; field in WakeupOnboarding
73 mFrameworkFacade.setIntegerSetting(mContext,
103 mFrameworkFacade = frameworkFacade; in WakeupOnboarding()
DWifiKeyStore.java59 private final FrameworkFacade mFrameworkFacade; field in WifiKeyStore
67 mFrameworkFacade = frameworkFacade; in WifiKeyStore()
288 final String grantString = mFrameworkFacade.getWifiKeyGrantAsUser( in updateNetworkKeys()
463 return mFrameworkFacade.hasWifiKeyGrantAsUser( in validateKeyChainAlias()
DAvailableNetworkNotifier.java128 private final FrameworkFacade mFrameworkFacade; field in AvailableNetworkNotifier
183 mFrameworkFacade = framework; in AvailableNetworkNotifier()
197 mNotificationRepeatDelay = mFrameworkFacade.getIntegerSetting(context, in AvailableNetworkNotifier()
583 mFrameworkFacade.registerContentObserver(mContext, in register()
597 mFrameworkFacade.getIntegerSetting(mContext, mToggleSettingsName, 1) == 1; in getValue()

123