Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DWifiTetherPasswordPreferenceControllerTest.java82 WifiConfiguration config = new WifiConfiguration(); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue() local
83 config.preSharedKey = null; in onStart_securityTypeIsNotNone_visibilityIsSetToTrue()
84 config.allowedKeyManagement.clear(); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue()
85 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue()
86 mCarWifiManager.setWifiApConfig(config); in onStart_securityTypeIsNotNone_visibilityIsSetToTrue()
94 WifiConfiguration config = new WifiConfiguration(); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary() local
95 config.preSharedKey = TEST_PASSWORD; in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary()
96 config.allowedKeyManagement.clear(); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary()
97 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary()
98 mCarWifiManager.setWifiApConfig(config); in onStart_securityTypeIsNotNone_wifiConfigHasPassword_setsPasswordAsSummary()
[all …]
DWifiTetherSecurityPreferenceControllerTest.java78 WifiConfiguration config = new WifiConfiguration(); in onStart_securityTypeSetToNone_setsValueToNone() local
79 config.preSharedKey = null; in onStart_securityTypeSetToNone_setsValueToNone()
80 config.allowedKeyManagement.clear(); in onStart_securityTypeSetToNone_setsValueToNone()
81 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in onStart_securityTypeSetToNone_setsValueToNone()
82 mCarWifiManager.setWifiApConfig(config); in onStart_securityTypeSetToNone_setsValueToNone()
92 WifiConfiguration config = new WifiConfiguration(); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK() local
93 config.preSharedKey = testPassword; in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK()
94 config.allowedKeyManagement.clear(); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK()
95 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA2_PSK); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK()
96 mCarWifiManager.setWifiApConfig(config); in onStart_securityTypeSetToWPA2PSK_setsValueToWPA2PSK()
[all …]
DWifiTetherApBandPreferenceControllerTest.java94 WifiConfiguration config = new WifiConfiguration(); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz() local
95 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz()
96 mCarWifiManager.setWifiApConfig(config); in onStart_wifiConfigApBandSetTo2Ghz_valueIsSetTo2Ghz()
106 WifiConfiguration config = new WifiConfiguration(); in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz() local
107 config.apBand = WifiConfiguration.AP_BAND_5GHZ; in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz()
108 mCarWifiManager.setWifiApConfig(config); in onStart_wifiConfigApBandSetTo5Ghz_valueIsSetTo5Ghz()
119 WifiConfiguration config = new WifiConfiguration(); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz() local
120 config.apBand = WifiConfiguration.AP_BAND_2GHZ; in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz()
121 mCarWifiManager.setWifiApConfig(config); in onPreferenceChangedTo5Ghz_updatesApBandConfigTo5Ghz()
134 WifiConfiguration config = new WifiConfiguration(); in onPreferenceChangedTo2Ghz_updatesApBandConfigTo2Ghz() local
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiUtils.java72 public static boolean isNetworkLockedDown(Context context, WifiConfiguration config) { in isNetworkLockedDown() argument
73 if (config == null) { in isNetworkLockedDown()
95 isConfigEligibleForLockdown = deviceOwnerUid == config.creatorUid; in isNetworkLockedDown()
141 final WifiConfiguration config = new WifiConfiguration(); in getWifiConfig() local
145 config.SSID = AccessPoint.convertToQuotedString(scanResult.SSID); in getWifiConfig()
149 config.SSID = AccessPoint.convertToQuotedString( in getWifiConfig()
152 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
153 config.hiddenSSID = accessPoint.getConfig().hiddenSSID; in getWifiConfig()
160 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in getWifiConfig()
164 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in getWifiConfig()
[all …]
DWifiConfigController.java295 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController() local
296 mMeteredSettingsSpinner.setSelection(config.meteredOverride); in initWifiConfigController()
297 mHiddenSettingsSpinner.setSelection(config.hiddenSSID in initWifiConfigController()
303 config.macRandomizationSetting); in initWifiConfigController()
306 if (config.getIpAssignment() == IpAssignment.STATIC) { in initWifiConfigController()
310 StaticIpConfiguration staticConfig = config.getStaticIpConfiguration(); in initWifiConfigController()
319 mSharedCheckBox.setEnabled(config.shared); in initWifiConfigController()
320 if (!config.shared) { in initWifiConfigController()
324 if (config.getProxySettings() == ProxySettings.STATIC) { in initWifiConfigController()
327 } else if (config.getProxySettings() == ProxySettings.PAC) { in initWifiConfigController()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiUtils.java72 public static boolean isNetworkLockedDown(Context context, WifiConfiguration config) { in isNetworkLockedDown() argument
73 if (config == null) { in isNetworkLockedDown()
95 isConfigEligibleForLockdown = deviceOwnerUid == config.creatorUid; in isNetworkLockedDown()
141 final WifiConfiguration config = new WifiConfiguration(); in getWifiConfig() local
145 config.SSID = AccessPoint.convertToQuotedString(scanResult.SSID); in getWifiConfig()
149 config.SSID = AccessPoint.convertToQuotedString( in getWifiConfig()
152 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
153 config.hiddenSSID = accessPoint.getConfig().hiddenSSID; in getWifiConfig()
160 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in getWifiConfig()
164 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); in getWifiConfig()
[all …]
DWifiConfigController.java280 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController() local
281 mMeteredSettingsSpinner.setSelection(config.meteredOverride); in initWifiConfigController()
282 mHiddenSettingsSpinner.setSelection(config.hiddenSSID in initWifiConfigController()
288 config.macRandomizationSetting); in initWifiConfigController()
291 if (config.getIpAssignment() == IpAssignment.STATIC) { in initWifiConfigController()
295 StaticIpConfiguration staticConfig = config.getStaticIpConfiguration(); in initWifiConfigController()
304 mSharedCheckBox.setEnabled(config.shared); in initWifiConfigController()
305 if (!config.shared) { in initWifiConfigController()
309 if (config.getProxySettings() == ProxySettings.STATIC) { in initWifiConfigController()
312 } else if (config.getProxySettings() == ProxySettings.PAC) { in initWifiConfigController()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/dpp/
DWifiQrCodeTest.java103 WifiNetworkConfig config = wifiQrCode.getWifiNetworkConfig(); in parseValidZxingWifiQrCode() local
106 assertNotNull(config); in parseValidZxingWifiQrCode()
107 assertEquals(SECURITY_OF_VALID_ZXING_WIFI_QR_CODE_WPA, config.getSecurity()); in parseValidZxingWifiQrCode()
108 assertEquals(SSID_OF_VALID_ZXING_WIFI_QR_CODE, config.getSsid()); in parseValidZxingWifiQrCode()
109 assertEquals(PASSWORD_OF_VALID_ZXING_WIFI_QR_CODE, config.getPreSharedKey()); in parseValidZxingWifiQrCode()
110 assertEquals(true, config.getHiddenSsid()); in parseValidZxingWifiQrCode()
116 WifiNetworkConfig config = wifiQrCode.getWifiNetworkConfig(); in parseValidZxingWifiQrCodeSae() local
119 assertNotNull(config); in parseValidZxingWifiQrCodeSae()
120 assertEquals(SECURITY_OF_VALID_ZXING_WIFI_QR_CODE_SAE, config.getSecurity()); in parseValidZxingWifiQrCodeSae()
121 assertEquals(SSID_OF_VALID_ZXING_WIFI_QR_CODE, config.getSsid()); in parseValidZxingWifiQrCodeSae()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DDndConditionalCardControllerTest.java94 final ZenModeConfig config = new ZenModeConfig(); in getCustomConfig() local
96 config.allowAlarms = true; in getCustomConfig()
97 config.allowMedia = false; in getCustomConfig()
98 config.allowSystem = false; in getCustomConfig()
99 config.allowCalls = true; in getCustomConfig()
100 config.allowRepeatCallers = true; in getCustomConfig()
101 config.allowMessages = false; in getCustomConfig()
102 config.allowReminders = false; in getCustomConfig()
103 config.allowEvents = false; in getCustomConfig()
104 config.areChannelsBypassingDnd = false; in getCustomConfig()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiUtils.java69 final WifiConfiguration config = new WifiConfiguration(); in getWifiConfig() local
73 config.SSID = AccessPoint.convertToQuotedString(scanResult.SSID); in getWifiConfig()
77 config.SSID = AccessPoint.convertToQuotedString( in getWifiConfig()
80 config.networkId = accessPoint.getConfig().networkId; in getWifiConfig()
81 config.hiddenSSID = accessPoint.getConfig().hiddenSSID; in getWifiConfig()
88 config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_OPEN); in getWifiConfig()
92 config.setSecurityParams(WifiConfiguration.SECURITY_TYPE_WEP); in getWifiConfig()
98 config.wepKeys[0] = password; in getWifiConfig()
100 config.wepKeys[0] = '"' + password + '"'; in getWifiConfig()
106 config.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK); in getWifiConfig()
[all …]
DWifiConfigHelper.java70 public static void setConfigSsid(WifiConfiguration config, String ssid) { in setConfigSsid() argument
71 config.SSID = AccessPoint.convertToQuotedString(ssid); in setConfigSsid()
78 WifiConfiguration config, int security) { in setConfigKeyManagementBySecurity() argument
79 config.allowedKeyManagement.clear(); in setConfigKeyManagementBySecurity()
80 config.allowedAuthAlgorithms.clear(); in setConfigKeyManagementBySecurity()
83 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
86 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
87 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in setConfigKeyManagementBySecurity()
88 config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in setConfigKeyManagementBySecurity()
91 config.allowedKeyManagement.set(KeyMgmt.WPA_PSK); in setConfigKeyManagementBySecurity()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java250 PositionConfiguration config = new PositionConfiguration(); in getPositionConfiguration() local
252 config.mPreviewRect.set(0, 0, width, height); in getPositionConfiguration()
253 config.mBottomBarOverlay = true; in getPositionConfiguration()
255 config.mBottomBarRect.set(width - mBottomBarOptimalHeight, 0, width, height); in getPositionConfiguration()
257 config.mBottomBarRect.set(0, height - mBottomBarOptimalHeight, width, height); in getPositionConfiguration()
279 config.mBottomBarOverlay = true; in getPositionConfiguration()
282config.mPreviewRect.set(0, height / 2 - previewShorterEdge / 2, previewLongerEdge, in getPositionConfiguration()
284 config.mBottomBarRect.set(width - barSize, height / 2 - previewShorterEdge / 2, in getPositionConfiguration()
287 config.mPreviewRect.set(width / 2 - previewShorterEdge / 2, 0, in getPositionConfiguration()
289 config.mBottomBarRect.set(width / 2 - previewShorterEdge / 2, height - barSize, in getPositionConfiguration()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java95 CarUxRestrictionsConfiguration config = new Builder().build(); in testUnspecifiedDrivingStateUsesDefaultRestriction() local
97 CarUxRestrictions parkedRestrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
101 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
107 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault() local
110 assertTrue(config.getUxRestrictions(DRIVING_STATE_PARKED, 0f) in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
112 assertTrue(config.getUxRestrictions(DRIVING_STATE_IDLING, 0f) in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
149 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange() local
157 assertTrue(config.getUxRestrictions(DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
353 CarUxRestrictionsConfiguration config = in testJsonSerialization_DefaultConstructor() local
356 verifyConfigThroughJsonSerialization(config, /* schemaVersion= */ 2); in testJsonSerialization_DefaultConstructor()
[all …]
DCarPropertyConfigTest.java33 CarPropertyConfig<Float> config = CarPropertyConfig in createFloatPropertyConfig() local
39 assertEquals(FLOAT_PROPERTY_ID, config.getPropertyId()); in createFloatPropertyConfig()
40 assertEquals(CAR_AREA_TYPE, config.getAreaType()); in createFloatPropertyConfig()
41 assertEquals(Float.class, config.getPropertyType()); in createFloatPropertyConfig()
42 assertEquals(2, config.getAreaCount()); in createFloatPropertyConfig()
45 assertNull(config.getMinValue(WINDOW_DRIVER)); in createFloatPropertyConfig()
46 assertNull(config.getMaxValue(WINDOW_DRIVER)); in createFloatPropertyConfig()
48 assertEquals(10f, config.getMinValue(WINDOW_PASSENGER)); in createFloatPropertyConfig()
49 assertEquals(20f, config.getMaxValue(WINDOW_PASSENGER)); in createFloatPropertyConfig()
51 return config; in createFloatPropertyConfig()
[all …]
/packages/modules/DnsResolver/
Dresolv_unit_test.cpp200 for (const auto& config : testConfigs) { in TEST_F() local
201 SCOPED_TRACE(config.asParameters()); in TEST_F()
207 .ai_flags = config.ai_flags, in TEST_F()
211 .ai_addrlen = config.ai_addrlen, in TEST_F()
212 .ai_canonname = config.ai_canonname, in TEST_F()
213 .ai_addr = config.ai_addr, in TEST_F()
214 .ai_next = config.ai_next, in TEST_F()
220 EXPECT_EQ(config.expected_eai_error, rv); in TEST_F()
377 for (const auto& config : testConfigs) { in TEST_F() local
378 const std::string testParameters = config.asParameters(); in TEST_F()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java61 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingParameters() local
64 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingParameters()
72 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingNonMovingState() local
75 CarUxRestrictions parked = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingNonMovingState()
78 CarUxRestrictions idling = config.getUxRestrictions(DRIVING_STATE_IDLING, 0f); in testParsingNonMovingState()
85 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_NoSpeedRange() local
88 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange()
96 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_SingleSpeedRange() local
99 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange()
107 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_MultiSpeedRange() local
[all …]
/packages/apps/Traceur/src/com/android/traceur/
DPerfettoUtils.java90 StringBuilder config = new StringBuilder() in traceStart() local
98 config.append("notify_traceur: true\n"); in traceStart()
101 config.append("max_file_size_bytes: " in traceStart()
106 config.append("duration_ms: " in traceStart()
112 config.append("file_write_period_ms: 1000\n"); in traceStart()
116 config.append("file_write_period_ms: 604800000\n"); in traceStart()
119 config.append("incremental_state_config {\n") in traceStart()
144 config.append(" atrace_categories: \"" + cleanTag + "\"\n"); in traceStart()
148 config.append(" atrace_apps: \"*\"\n"); in traceStart()
153 config.append(" compact_sched {\n"); in traceStart()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3Protocol.java92 OmtpVvmCarrierConfigHelper config, @Nullable PendingIntent sentIntent) { in startActivation() argument
97 config.requestStatus(sentIntent); in startActivation()
101 public void startDeactivation(OmtpVvmCarrierConfigHelper config) { in startDeactivation() argument
115 OmtpVvmCarrierConfigHelper config, in startProvisioning() argument
130 config.getContext(), DialerImpression.Type.VVM_PROVISIONING_STARTED); in startProvisioning()
135 new Vvm3Subscriber(task, phoneAccountHandle, config, status, data).subscribe(); in startProvisioning()
137 config.handleEvent(status, OmtpEvents.VVM3_SUBSCRIBER_UNKNOWN); in startProvisioning()
143 new VisualVoicemailPreferences(config.getContext(), phoneAccountHandle); in startProvisioning()
146 startProvisionNewUser(task, phoneAccountHandle, config, status, message); in startProvisioning()
149 VisualVoicemailSettingsUtil.setEnabled(config.getContext(), phoneAccountHandle, false); in startProvisioning()
[all …]
DVisualVoicemailProtocol.java36 public void startActivation(OmtpVvmCarrierConfigHelper config, PendingIntent sentIntent) { in startActivation() argument
37 OmtpMessageSender messageSender = ProtocolHelper.getMessageSender(this, config); in startActivation()
43 public void startDeactivation(OmtpVvmCarrierConfigHelper config) { in startDeactivation() argument
44 OmtpMessageSender messageSender = ProtocolHelper.getMessageSender(this, config); in startDeactivation()
57 OmtpVvmCarrierConfigHelper config, in startProvisioning() argument
65 public void requestStatus(OmtpVvmCarrierConfigHelper config, @Nullable PendingIntent sentIntent) { in requestStatus() argument
66 OmtpMessageSender messageSender = ProtocolHelper.getMessageSender(this, config); in requestStatus()
92 OmtpVvmCarrierConfigHelper config, in handleEvent() argument
95 DefaultOmtpEventHandler.handleEvent(context, config, status, event); in handleEvent()
104 OmtpVvmCarrierConfigHelper config, String event, Bundle data) { in translateStatusSmsBundle() argument
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java252 VehiclePropConfig config; in subscribeProperty() local
254 config = mAllProperties.get(property); in subscribeProperty()
257 if (config == null) { in subscribeProperty()
260 } else if (isPropertySubscribable(config)) { in subscribeProperty()
284 VehiclePropConfig config; in unsubscribeProperty() local
286 config = mAllProperties.get(property); in unsubscribeProperty()
289 if (config == null) { in unsubscribeProperty()
291 } else if (isPropertySubscribable(config)) { in unsubscribeProperty()
405 static boolean isPropertySubscribable(VehiclePropConfig config) { in isPropertySubscribable() argument
406 if ((config.access & VehiclePropertyAccess.READ) == 0 || in isPropertySubscribable()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSSIDPreferenceControllerTest.java88 final WifiConfiguration config = new WifiConfiguration(); in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID() local
89 config.SSID = "test_1234"; in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID()
90 when(mWifiManager.getWifiApConfiguration()).thenReturn(config); in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID()
93 assertThat(mController.getSSID()).isEqualTo(config.SSID); in displayPreference_hasCustomWifiConfig_shouldDisplayCustomSSID()
116 final WifiConfiguration config = new WifiConfiguration(); in updateDisplay_shouldUpdateValue() local
117 config.SSID = "test_1234"; in updateDisplay_shouldUpdateValue()
118 when(mWifiManager.getWifiApConfiguration()).thenReturn(config); in updateDisplay_shouldUpdateValue()
122 assertThat(mController.getSSID()).isEqualTo(config.SSID); in updateDisplay_shouldUpdateValue()
123 assertThat(mPreference.getSummary()).isEqualTo(config.SSID); in updateDisplay_shouldUpdateValue()
129 final WifiConfiguration config = new WifiConfiguration(); in displayPreference_wifiApDisabled_shouldHideQrCodeIcon() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DUploadedTexture.java87 public Config config; field in UploadedTexture.BorderKey
92 int x = config.hashCode() ^ length; in hashCode()
101 && config == o.config && length == o.length; in equals()
119 boolean vertical, Config config, int length) { in getBorderLine() argument
122 key.config = config; in getBorderLine()
127 ? Bitmap.createBitmap(1, length, config) in getBorderLine()
128 : Bitmap.createBitmap(length, 1, config); in getBorderLine()
233 Config config = bitmap.getConfig(); in uploadToCanvas() local
240 Bitmap line = getBorderLine(true, config, texHeight); in uploadToCanvas()
244 line = getBorderLine(false, config, texWidth); in uploadToCanvas()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java149 ApfFilter.ApfConfiguration config = new ApfConfiguration(); in getDefaultConfig() local
150 config.apfCapabilities = MOCK_APF_CAPABILITIES; in getDefaultConfig()
151 config.multicastFilter = ALLOW_MULTICAST; in getDefaultConfig()
152 config.ieee802_3Filter = ALLOW_802_3_FRAMES; in getDefaultConfig()
153 config.ethTypeBlackList = new int[0]; in getDefaultConfig()
154 config.minRdnssLifetimeSec = MIN_RDNSS_LIFETIME_SEC; in getDefaultConfig()
155 config.minRdnssLifetimeSec = 67; in getDefaultConfig()
156 return config; in getDefaultConfig()
917 ApfConfiguration config = getDefaultConfig(); in testApfFilterPcapFile() local
919 config.apfCapabilities = MOCK_APF_PCAP_CAPABILITIES; in testApfFilterPcapFile()
[all …]
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java235 PersistableBundle config = restoreConfigFromXml( in handleMessage() local
237 if (config != null) { in handleMessage()
241 mPersistentOverrideConfigs[phoneId] = config; in handleMessage()
244 config = restoreConfigFromXml(mPlatformCarrierConfigPackage, "", phoneId); in handleMessage()
245 if (config != null) { in handleMessage()
251 mConfigFromDefaultApp[phoneId] = config; in handleMessage()
303 PersistableBundle config = in handleMessage()
306 carrierId, config); in handleMessage()
307 mConfigFromDefaultApp[phoneId] = config; in handleMessage()
369 final PersistableBundle config = in handleMessage() local
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionConfigurationTest.java66 private void verifyBuildCommon(IkeSessionConfiguration config) { in verifyBuildCommon() argument
68 List<byte[]> remoteVendorIds = config.getRemoteVendorIds(); in verifyBuildCommon()
76 config.isIkeExtensionEnabled(IkeSessionConfiguration.EXTENSION_TYPE_FRAGMENTATION)); in verifyBuildCommon()
77 assertFalse(config.isIkeExtensionEnabled(IkeSessionConfiguration.EXTENSION_TYPE_MOBIKE)); in verifyBuildCommon()
80 assertEquals(IKE_CONNECT_INFO, config.getIkeSessionConnectionInfo()); in verifyBuildCommon()
85 IkeSessionConfiguration config = in testBuildWithoutConfigPayload() local
91 verifyBuildCommon(config); in testBuildWithoutConfigPayload()
103 IkeSessionConfiguration config = in testBuildWithConfigPayload() local
107 verifyBuildCommon(config); in testBuildWithConfigPayload()
109 Arrays.asList(PCSCF_IPV4_ADDRESS, PCSCF_IPV6_ADDRESS), config.getPcscfServers()); in testBuildWithConfigPayload()
[all …]

12345678910>>...20