Home
last modified time | relevance | path

Searched refs:mConfig (Results 1 – 25 of 48) sorted by relevance

12

/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java51 private ProvisioningConfiguration mConfig; field in ProvisioningConfigurationTest
67 mConfig = new ProvisioningConfiguration(); in setUp()
68 mConfig.mEnableIPv4 = true; in setUp()
69 mConfig.mEnableIPv6 = true; in setUp()
70 mConfig.mUsingMultinetworkPolicyTracker = true; in setUp()
71 mConfig.mUsingIpReachabilityMonitor = true; in setUp()
72 mConfig.mRequestedPreDhcpActionMs = 42; in setUp()
73 mConfig.mInitialConfig = new InitialConfiguration(); in setUp()
74 mConfig.mInitialConfig.ipAddresses.add( in setUp()
76 mConfig.mStaticIpConfig = new StaticIpConfiguration(); in setUp()
[all …]
DInitialConfigurationTest.java45 private InitialConfiguration mConfig; field in InitialConfigurationTest
49 mConfig = new InitialConfiguration(); in setUp()
50 mConfig.ipAddresses.addAll(Arrays.asList( in setUp()
53 mConfig.directlyConnectedRoutes.addAll(Arrays.asList( in setUp()
56 mConfig.dnsServers.addAll(Arrays.asList( in setUp()
66 InitialConfiguration.fromStableParcelable(mConfig.toStableParcelable()); in testParcelUnparcelInitialConfiguration()
67 assertEquals(mConfig, unparceled); in testParcelUnparcelInitialConfiguration()
72 assertEquals(mConfig, InitialConfiguration.copy(mConfig)); in testEquals()
83 final InitialConfiguration newConfig = InitialConfiguration.copy(mConfig); in assertNotEqualsAfterChange()
85 assertNotEquals(mConfig, newConfig); in assertNotEqualsAfterChange()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherStateManager.java107 private final AnimationConfig mConfig = new AnimationConfig(); field in LauncherStateManager
142 writer.println(prefix + "\tisInTransition:" + (mConfig.mCurrentAnimation != null)); in dump()
211 boolean wasInAnimation = mConfig.mCurrentAnimation != null; in reapplyState()
216 if (mConfig.mCurrentAnimation == null) { in reapplyState()
230 if (mConfig.mCurrentAnimation == null) { in goToState()
236 } else if (!mConfig.userControlled && animated && mConfig.mTargetState == state) { in goToState()
239 mConfig.mCurrentAnimation.addListener(new AnimationSuccessListener() { in goToState()
252 mConfig.reset(); in goToState()
273 int startChangeId = mConfig.mChangeId; in goToState()
275 if (mConfig.mChangeId == startChangeId) { in goToState()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/
DWifiConfigHelperTest.java37 private WifiConfiguration mConfig; field in WifiConfigHelperTest
46 WifiConfigHelper.setConfigSsid(mConfig, "0000aaaaFFFF"); in testSetConfigSsid()
47 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
48 WifiConfigHelper.setConfigSsid(mConfig, "atvtest"); in testSetConfigSsid()
49 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
50 WifiConfigHelper.setConfigSsid(mConfig, "0000aaaaFFFF1"); in testSetConfigSsid()
51 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
52 WifiConfigHelper.setConfigSsid(mConfig, "1234abcdEFFF"); in testSetConfigSsid()
53 assertThat(isDoubleQuoted(mConfig.SSID)).isTrue(); in testSetConfigSsid()
54 WifiConfigHelper.setConfigSsid(mConfig, "1234abcdEFFG"); in testSetConfigSsid()
[all …]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DVehiclePropConfigBuilder.java32 private final VehiclePropConfig mConfig; field in VehiclePropConfigBuilder
40 mConfig = new VehiclePropConfig(); in VehiclePropConfigBuilder()
41 mConfig.prop = propId; in VehiclePropConfigBuilder()
42 mConfig.access = VehiclePropertyAccess.READ_WRITE; in VehiclePropConfigBuilder()
43 mConfig.changeMode = VehiclePropertyChangeMode.ON_CHANGE; in VehiclePropConfigBuilder()
73 mConfig.access = access; in setAccess()
79 mConfig.changeMode = changeMode; in setChangeMode()
85 mConfig.configString = configString; in setConfigString()
92 mConfig.configArray.clear(); in setConfigArray()
93 mConfig.configArray.addAll(configArray); in setConfigArray()
[all …]
DMockedVehicleHal.java266 private final VehiclePropConfig mConfig; field in MockedVehicleHal.DefaultPropertyHandler
271 mConfig = config; in DefaultPropertyHandler()
277 assertEquals(mConfig.prop, value.prop); in onPropertySet()
278 assertEquals(VehiclePropertyAccess.WRITE, mConfig.access & VehiclePropertyAccess.WRITE); in onPropertySet()
284 assertEquals(mConfig.prop, value.prop); in onPropertyGet()
285 assertEquals(VehiclePropertyAccess.READ, mConfig.access & VehiclePropertyAccess.READ); in onPropertyGet()
291 assertEquals(mConfig.prop, property); in onPropertySubscribe()
297 assertEquals(mConfig.prop, property); in onPropertyUnsubscribe()
/packages/services/Car/evs/app/
DRenderTopView.cpp96 const ConfigManager& mConfig) : in RenderTopView() argument
98 mConfig(mConfig) { in RenderTopView()
185 const float top = mConfig.getDisplayTopLocation(); in drawFrame()
186 const float bottom = mConfig.getDisplayBottomLocation(); in drawFrame()
187 const float right = mConfig.getDisplayRightLocation(sAspectRatio); in drawFrame()
188 const float left = mConfig.getDisplayLeftLocation(sAspectRatio); in drawFrame()
233 const float carLengthInTexels = mConfig.carGraphicRearPixel() - mConfig.carGraphicFrontPixel(); in renderCarTopView()
234 const float carSpaceUnitsPerTexel = mConfig.getCarLength() / carLengthInTexels; in renderCarTopView()
239 mConfig.carGraphicRearPixel(); in renderCarTopView()
242 const float btCS = mConfig.getRearLocation() - textureExtentBehindCarInCarSpace; in renderCarTopView()
[all …]
/packages/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DProvisioningConfiguration.java82 protected ProvisioningConfiguration mConfig = new ProvisioningConfiguration(); field in ProvisioningConfiguration.Builder
88 mConfig.mEnableIPv4 = false; in withoutIPv4()
96 mConfig.mEnableIPv6 = false; in withoutIPv6()
105 mConfig.mUsingMultinetworkPolicyTracker = false; in withoutMultinetworkPolicyTracker()
114 mConfig.mUsingIpReachabilityMonitor = false; in withoutIpReachabilityMonitor()
123 mConfig.mRequestedPreDhcpActionMs = DEFAULT_TIMEOUT_MS; in withPreDhcpAction()
134 mConfig.mRequestedPreDhcpActionMs = dhcpActionTimeoutMs; in withPreDhcpAction()
142 mConfig.mEnablePreconnection = true; in withPreconnection()
150 mConfig.mInitialConfig = initialConfig; in withInitialConfiguration()
158 mConfig.mStaticIpConfig = staticConfig; in withStaticConfiguration()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSecurityPreferenceControllerTest.java41 private WifiConfiguration mConfig; field in WifiTetherSecurityPreferenceControllerTest
46 mConfig = new WifiConfiguration(); in setUp()
47 mConfig.SSID = "test_1234"; in setUp()
48 mConfig.preSharedKey = "test_password"; in setUp()
49 mConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in setUp()
53 when(mWifiManager.getWifiApConfiguration()).thenReturn(mConfig); in setUp()
84 when(mWifiManager.getWifiApConfiguration()).thenReturn(mConfig); in updateDisplay_preferenceUpdated()
85 mConfig.allowedKeyManagement.clear(); in updateDisplay_preferenceUpdated()
86 mConfig.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in updateDisplay_preferenceUpdated()
92 mConfig.allowedKeyManagement.clear(); in updateDisplay_preferenceUpdated()
[all …]
DWifiTetherPasswordPreferenceControllerTest.java62 private WifiConfiguration mConfig; field in WifiTetherPasswordPreferenceControllerTest
68 mConfig = new WifiConfiguration(); in setUp()
69 mConfig.SSID = "test_1234"; in setUp()
70 mConfig.preSharedKey = "test_password"; in setUp()
73 when(mWifiManager.getWifiApConfiguration()).thenReturn(mConfig); in setUp()
87 assertThat(mPreference.getText()).isEqualTo(mConfig.preSharedKey); in displayPreference_shouldStylePreference()
88 assertThat(mPreference.getSummary()).isEqualTo(mConfig.preSharedKey); in displayPreference_shouldStylePreference()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorConfig.java47 private final Bundle mConfig; field in CarSensorConfig
53 mConfig = in.readBundle(); in CarSensorConfig()
66 dest.writeBundle(mConfig); in writeToParcel()
84 mConfig = b.deepCopy(); in CarSensorConfig()
97 return mConfig; in getBundle()
102 if (mConfig.containsKey(key)) { in getInt()
103 return mConfig.getInt(key); in getInt()
121 sb.append("mConfig: " + mConfig.toString()); in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAmbientDisplayNotificationsPreferenceControllerTest.java56 private AmbientDisplayConfiguration mConfig; field in AmbientDisplayNotificationsPreferenceControllerTest
75 mController.setConfig(mConfig); in setUp()
81 when(mConfig.pulseOnNotificationEnabled(anyInt())).thenReturn(true); in updateState_enabled()
90 when(mConfig.pulseOnNotificationEnabled(anyInt())).thenReturn(false); in updateState_disabled()
115 when(mConfig.pulseOnNotificationAvailable()).thenReturn(true); in isAvailable_available()
122 when(mConfig.pulseOnNotificationAvailable()).thenReturn(false); in isAvailable_unavailable()
129 when(mConfig.pulseOnNotificationEnabled(UserHandle.myUserId())).thenReturn(true); in isChecked_checked_shouldReturnTrue()
136 when(mConfig.pulseOnNotificationEnabled(UserHandle.myUserId())).thenReturn(false); in isChecked_checked_shouldReturnFalse()
DAmbientDisplayAlwaysOnPreferenceControllerTest.java45 private AmbientDisplayConfiguration mConfig; field in AmbientDisplayAlwaysOnPreferenceControllerTest
60 mController.setConfig(mConfig); in setUp()
66 when(mConfig.alwaysOnAvailableForUser(anyInt())).thenReturn(true); in getAvailabilityStatus_available()
74 when(mConfig.alwaysOnAvailableForUser(anyInt())).thenReturn(false); in getAvailabilityStatus_disabled_unsupported()
82 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(true); in isChecked_enabled()
89 when(mConfig.alwaysOnEnabled(anyInt())).thenReturn(false); in isChecked_disabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DManagedServiceSettings.java52 private final Config mConfig; field in ManagedServiceSettings
63 mConfig = getConfig(); in ManagedServiceSettings()
75 .setPermission(mConfig.permission) in onCreate()
76 .setIntentAction(mConfig.intentAction) in onCreate()
77 .setNoun(mConfig.noun) in onCreate()
78 .setSetting(mConfig.setting) in onCreate()
79 .setTag(mConfig.tag) in onCreate()
88 setEmptyText(mConfig.emptyText); in onViewCreated()
217 final String title = getResources().getString(parent.mConfig.warningDialogTitle, label); in onCreateDialog()
218 final String summary = getResources().getString(parent.mConfig.warningDialogSummary, in onCreateDialog()
DZenServiceListing.java38 private final ManagedServiceSettings.Config mConfig; field in ZenServiceListing
45 mConfig = config; in ZenServiceListing()
75 getServices(mConfig, components, mContext.getPackageManager()); in reloadApprovedServices()
76 getActivities(mConfig, components, mContext.getPackageManager()); in reloadApprovedServices()
/packages/apps/Settings/src/com/android/settings/utils/
DManagedServiceSettings.java52 private final Config mConfig; field in ManagedServiceSettings
63 mConfig = getConfig(); in ManagedServiceSettings()
75 .setPermission(mConfig.permission) in onCreate()
76 .setIntentAction(mConfig.intentAction) in onCreate()
77 .setNoun(mConfig.noun) in onCreate()
78 .setSetting(mConfig.setting) in onCreate()
79 .setTag(mConfig.tag) in onCreate()
88 setEmptyText(mConfig.emptyText); in onViewCreated()
217 final String title = getResources().getString(parent.mConfig.warningDialogTitle, label); in onCreateDialog()
218 final String summary = getResources().getString(parent.mConfig.warningDialogSummary, in onCreateDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DAmbientDisplayAlwaysOnPreferenceController.java33 private AmbientDisplayConfiguration mConfig; field in AmbientDisplayAlwaysOnPreferenceController
72 mConfig = config; in setConfig()
87 if (mConfig == null) { in getConfig()
88 mConfig = new AmbientDisplayConfiguration(mContext); in getConfig()
90 return mConfig; in getConfig()
DAmbientDisplayNotificationsPreferenceController.java43 private AmbientDisplayConfiguration mConfig; field in AmbientDisplayNotificationsPreferenceController
57 mConfig = config; in setConfig()
92 if (mConfig == null) { in getAmbientConfig()
93 mConfig = new AmbientDisplayConfiguration(mContext); in getAmbientConfig()
96 return mConfig; in getAmbientConfig()
/packages/apps/Settings/src/com/android/settings/display/
DAmbientDisplayAlwaysOnPreferenceController.java35 private AmbientDisplayConfiguration mConfig; field in AmbientDisplayAlwaysOnPreferenceController
76 mConfig = config; in setConfig()
91 if (mConfig == null) { in getConfig()
92 mConfig = new AmbientDisplayConfiguration(mContext); in getConfig()
94 return mConfig; in getConfig()
DAmbientDisplayNotificationsPreferenceController.java43 private AmbientDisplayConfiguration mConfig; field in AmbientDisplayNotificationsPreferenceController
57 mConfig = config; in setConfig()
92 if (mConfig == null) { in getAmbientConfig()
93 mConfig = new AmbientDisplayConfiguration(mContext); in getAmbientConfig()
96 return mConfig; in getAmbientConfig()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQsbApplication.java51 private Config mConfig; field in QsbApplication
111 if (mConfig != null) { in close()
112 mConfig.close(); in close()
113 mConfig = null; in close()
156 if (mConfig == null) { in getConfig()
157 mConfig = createConfig(); in getConfig()
159 return mConfig; in getConfig()
DSuggestionsProviderImpl.java38 private final Config mConfig; field in SuggestionsProviderImpl
50 mConfig = config; in SuggestionsProviderImpl()
74 int maxResults = mConfig.getMaxResultsPerSource(); in getSuggestions()
82 if (query.length() == 0 && !mConfig.showSuggestionsForZeroQuery()) { in shouldDisplayResults()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportActivity.java121 private Config mConfig; field in BugReportActivity
245 mConfig = new Config(); in prepareUi()
246 mConfig.start(); in prepareUi()
269 mSubmitButton.setText(mConfig.getAutoUpload() in prepareUi()
457 new AddAudioToBugReportAsyncTask(this, mConfig, mMetaBugReport, mAudioFile).execute(); in buttonSubmitClick()
673 private final Config mConfig; field in BugReportActivity.AddAudioToBugReportAsyncTask
680 mConfig = config; in AddAudioToBugReportAsyncTask()
701 if (mConfig.getAutoUpload()) { in doInBackground()
/packages/apps/Settings/src/com/android/settings/security/
DLockscreenDashboardFragment.java67 private AmbientDisplayConfiguration mConfig; field in LockscreenDashboardFragment
127 if (mConfig == null) { in getConfig()
128 mConfig = new AmbientDisplayConfiguration(context); in getConfig()
130 return mConfig; in getConfig()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DLockscreenDashboardFragment.java67 private AmbientDisplayConfiguration mConfig; field in LockscreenDashboardFragment
127 if (mConfig == null) { in getConfig()
128 mConfig = new AmbientDisplayConfiguration(context); in getConfig()
130 return mConfig; in getConfig()

12