Home
last modified time | relevance | path

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

12345678910>>...17

/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/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.java281 WifiConfiguration config = mAccessPoint.getConfig(); in initWifiConfigController() local
282 mMeteredSettingsSpinner.setSelection(config.meteredOverride); in initWifiConfigController()
283 mHiddenSettingsSpinner.setSelection(config.hiddenSSID in initWifiConfigController()
289 config.macRandomizationSetting); in initWifiConfigController()
292 if (config.getIpAssignment() == IpAssignment.STATIC) { in initWifiConfigController()
296 StaticIpConfiguration staticConfig = config.getStaticIpConfiguration(); in initWifiConfigController()
305 mSharedCheckBox.setEnabled(config.shared); in initWifiConfigController()
306 if (!config.shared) { in initWifiConfigController()
310 if (config.getProxySettings() == ProxySettings.STATIC) { in initWifiConfigController()
313 } else if (config.getProxySettings() == ProxySettings.PAC) { in initWifiConfigController()
[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.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/
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.java89 CarUxRestrictionsConfiguration config = new Builder().build(); in testUnspecifiedDrivingStateUsesDefaultRestriction() local
91 CarUxRestrictions parkedRestrictions = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
95 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
101 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault() local
104 assertTrue(config.getUxRestrictions(DRIVING_STATE_PARKED, 0f) in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
106 assertTrue(config.getUxRestrictions(DRIVING_STATE_IDLING, 0f) in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
143 CarUxRestrictionsConfiguration config = new Builder() in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange() local
151 assertTrue(config.getUxRestrictions(DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_PASSENGER) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
347 CarUxRestrictionsConfiguration config = in testJsonSerialization_DefaultConstructor() local
350 verifyConfigThroughJsonSerialization(config); 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/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java59 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingParameters() local
62 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingParameters()
70 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingNonMovingState() local
73 CarUxRestrictions parked = config.getUxRestrictions(DRIVING_STATE_PARKED, 0f); in testParsingNonMovingState()
76 CarUxRestrictions idling = config.getUxRestrictions(DRIVING_STATE_IDLING, 0f); in testParsingNonMovingState()
83 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_NoSpeedRange() local
86 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange()
94 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_SingleSpeedRange() local
97 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange()
105 CarUxRestrictionsConfiguration config = CarUxRestrictionsConfigurationXmlParser.parse( in testParsingMovingState_MultiSpeedRange() local
[all …]
DCarUxRestrictionsManagerServiceTest.java109 CarUxRestrictionsConfiguration config = createEmptyConfig(); in testSaveConfig_WriteStagedFile() local
111 assertTrue(mService.saveUxRestrictionsConfigurationForNextBoot(Arrays.asList(config))); in testSaveConfig_WriteStagedFile()
112 assertTrue(readFile(staged).equals(config)); in testSaveConfig_WriteStagedFile()
132 for (CarUxRestrictionsConfiguration config : mService.loadConfig()) { in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
133 assertTrue(config.equals(mService.createDefaultConfig(config.getPhysicalPort()))); in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
190 CarUxRestrictionsConfiguration config = createEmptyConfig(); in testValidateConfigs_SingleConfigNotSetPort() local
191 mService.validateConfigs(Arrays.asList(config)); in testValidateConfigs_SingleConfigNotSetPort()
196 CarUxRestrictionsConfiguration config = createEmptyConfig((byte) 0); in testValidateConfigs_SingleConfigWithPort() local
197 mService.validateConfigs(Arrays.asList(config)); in testValidateConfigs_SingleConfigWithPort()
255 private File setupMockFile(String filename, CarUxRestrictionsConfiguration config) in setupMockFile() argument
[all …]
/packages/apps/Traceur/src/com/google/android/traceur/
DPerfettoUtils.java89 StringBuilder config = new StringBuilder() in traceStart() local
97 config.append("notify_traceur: true\n"); in traceStart()
100 config.append("max_file_size_bytes: " in traceStart()
105 config.append("duration_ms: " in traceStart()
111 config.append("file_write_period_ms: 1000\n"); in traceStart()
115 config.append("file_write_period_ms: 604800000\n"); in traceStart()
118 config.append("incremental_state_config {\n") in traceStart()
143 config.append(" atrace_categories: \"" + cleanTag + "\"\n"); in traceStart()
147 config.append(" atrace_apps: \"*\"\n"); in traceStart()
152 config.append(" buffer_size_kb: 8192\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.java251 VehiclePropConfig config; in subscribeProperty() local
253 config = mAllProperties.get(property); in subscribeProperty()
256 if (config == null) { in subscribeProperty()
259 } else if (isPropertySubscribable(config)) { in subscribeProperty()
283 VehiclePropConfig config; in unsubscribeProperty() local
285 config = mAllProperties.get(property); in unsubscribeProperty()
288 if (config == null) { in unsubscribeProperty()
290 } else if (isPropertySubscribable(config)) { in unsubscribeProperty()
404 static boolean isPropertySubscribable(VehiclePropConfig config) { in isPropertySubscribable() argument
405 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.java141 ApfFilter.ApfConfiguration config = new ApfConfiguration(); in getDefaultConfig() local
142 config.apfCapabilities = MOCK_APF_CAPABILITIES; in getDefaultConfig()
143 config.multicastFilter = ALLOW_MULTICAST; in getDefaultConfig()
144 config.ieee802_3Filter = ALLOW_802_3_FRAMES; in getDefaultConfig()
145 config.ethTypeBlackList = new int[0]; in getDefaultConfig()
146 return config; in getDefaultConfig()
907 ApfConfiguration config = getDefaultConfig(); in testApfFilterPcapFile() local
909 config.apfCapabilities = MOCK_APF_PCAP_CAPABILITIES; in testApfFilterPcapFile()
910 config.multicastFilter = DROP_MULTICAST; in testApfFilterPcapFile()
911 config.ieee802_3Filter = DROP_802_3_FRAMES; in testApfFilterPcapFile()
[all …]
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java77 PersistableBundle config = new PersistableBundle(); in onLoadConfig() local
108 config = configBySpecificCarrierId; in onLoadConfig()
110 config = configByCarrierId; in onLoadConfig()
112 config = configByMccMncFallBackCarrierId; in onLoadConfig()
115 if (config.isEmpty()) { in onLoadConfig()
119 config = readConfigFromXml(parser, id); in onLoadConfig()
126 config = new PersistableBundle(); in onLoadConfig()
133 config.putAll(vendorConfig); in onLoadConfig()
139 return config; in onLoadConfig()
185 PersistableBundle config = new PersistableBundle(); in readConfigFromXml() local
[all …]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java63 for (VehiclePropConfig config : configs) { in addProperties()
64 addProperty(config, new DefaultPropertyHandler(config, null)); in addProperties()
68 public synchronized void addProperty(VehiclePropConfig config, in addProperty() argument
70 mPropertyHandlerMap.put(config.prop, handler); in addProperty()
71 mConfigs.put(config.prop, config); in addProperty()
74 public synchronized void addStaticProperty(VehiclePropConfig config, in addStaticProperty() argument
76 addProperty(config, new StaticPropertyHandler(value)); in addStaticProperty()
146 VehiclePropConfig config = mConfigs.get(prop); in getPropConfigs() local
147 if (config == null) { in getPropConfigs()
151 res.add(config); in getPropConfigs()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeSettingsFooterPreferenceController.java88 ZenModeConfig config = getZenModeConfig(); in getFooterText() local
91 NotificationManager.Policy defaultPolicy = config.toNotificationPolicy(); in getFooterText()
95 final List<ZenModeConfig.ZenRule> activeRules = getActiveRules(config); in getFooterText()
120 return getDefaultPolicyFooter(config); in getFooterText()
123 private String getDefaultPolicyFooter(ZenModeConfig config) { in getDefaultPolicyFooter() argument
128 if (config.manualRule != null) { in getDefaultPolicyFooter()
129 final Uri id = config.manualRule.conditionId; in getDefaultPolicyFooter()
130 if (config.manualRule.enabler != null) { in getDefaultPolicyFooter()
132 String appOwner = mZenModeConfigWrapper.getOwnerCaption(config.manualRule.enabler); in getDefaultPolicyFooter()
155 for (ZenModeConfig.ZenRule automaticRule : config.automaticRules.values()) { in getDefaultPolicyFooter()
[all …]

12345678910>>...17