Home
last modified time | relevance | path

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

12345

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java64 public static void setConfigSsid(WifiConfiguration config, String ssid) { in setConfigSsid() argument
67 config.SSID = enquoteSsid(ssid); in setConfigSsid()
69 config.SSID = ssid; in setConfigSsid()
73 public static void setConfigSsid(WifiConfiguration config, ScanResult scanResult) { in setConfigSsid() argument
76 config.SSID = enquoteSsid(scanResult.SSID); in setConfigSsid()
80 WifiConfiguration config, WifiSecurity security) { in setConfigKeyManagementBySecurity() argument
81 config.allowedKeyManagement.clear(); in setConfigKeyManagementBySecurity()
82 config.allowedAuthAlgorithms.clear(); in setConfigKeyManagementBySecurity()
85 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
88 config.allowedKeyManagement.set(KeyMgmt.NONE); in setConfigKeyManagementBySecurity()
[all …]
DWifiSecurity.java46 public static WifiSecurity getSecurity(WifiConfiguration config) { in getSecurity() argument
47 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getSecurity()
50 if (config.allowedKeyManagement.get(KeyMgmt.WPA_EAP) in getSecurity()
51 || config.allowedKeyManagement.get(KeyMgmt.IEEE8021X)) { in getSecurity()
54 return (config.wepKeys[0] != null) ? WEP : NONE; in getSecurity()
73 public static boolean isOpen(WifiConfiguration config) { in isOpen() argument
74 return WifiSecurity.NONE == getSecurity(config); in isOpen()
/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/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java300 …blic BluetoothHealthDeathRecipient(HealthService service, BluetoothHealthAppConfiguration config) { in BluetoothHealthDeathRecipient() argument
302 mConfig = config; in BluetoothHealthDeathRecipient()
343 public boolean registerAppConfiguration(BluetoothHealthAppConfiguration config, in registerAppConfiguration() argument
347 return service.registerAppConfiguration(config, callback); in registerAppConfiguration()
350 public boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config) { in unregisterAppConfiguration() argument
353 return service.unregisterAppConfiguration(config); in unregisterAppConfiguration()
357 BluetoothHealthAppConfiguration config) { in connectChannelToSource() argument
360 return service.connectChannelToSource(device, config); in connectChannelToSource()
364 BluetoothHealthAppConfiguration config, int channelType) { in connectChannelToSink() argument
367 return service.connectChannelToSink(device, config, channelType); in connectChannelToSink()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java219 WifiConfiguration config = mAccessPoint.getConfig(); in WifiConfigController() local
220 if (config.getIpAssignment() == IpAssignment.STATIC) { in WifiConfigController()
224 StaticIpConfiguration staticConfig = config.getStaticIpConfiguration(); in WifiConfigController()
234 if (config.getProxySettings() == ProxySettings.STATIC) { in WifiConfigController()
237 } else if (config.getProxySettings() == ProxySettings.PAC) { in WifiConfigController()
376 WifiConfiguration config = new WifiConfiguration(); in getConfig() local
379 config.SSID = AccessPoint.convertToQuotedString( in getConfig()
382 config.hiddenSSID = true; in getConfig()
384 config.SSID = AccessPoint.convertToQuotedString( in getConfig()
387 config.networkId = mAccessPoint.networkId; in getConfig()
[all …]
DAccessPoint.java125 static int getSecurity(WifiConfiguration config) { in getSecurity() argument
126 if (config.allowedKeyManagement.get(KeyMgmt.WPA_PSK)) { in getSecurity()
129 if (config.allowedKeyManagement.get(KeyMgmt.WPA_EAP) || in getSecurity()
130 config.allowedKeyManagement.get(KeyMgmt.IEEE8021X)) { in getSecurity()
133 return (config.wepKeys[0] != null) ? SECURITY_WEP : SECURITY_NONE; in getSecurity()
193 AccessPoint(Context context, WifiConfiguration config) { in AccessPoint() argument
195 loadConfig(config); in AccessPoint()
232 private void loadConfig(WifiConfiguration config) { in loadConfig() argument
233 ssid = (config.SSID == null ? "" : removeDoubleQuotes(config.SSID)); in loadConfig()
234 bssid = config.BSSID; in loadConfig()
[all …]
DWifiApDialog.java78 WifiConfiguration config = new WifiConfiguration(); in getConfig() local
86 config.SSID = mSsid.getText().toString(); in getConfig()
90 config.allowedKeyManagement.set(KeyMgmt.NONE); in getConfig()
91 return config; in getConfig()
94 config.allowedKeyManagement.set(KeyMgmt.WPA2_PSK); in getConfig()
95 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in getConfig()
98 config.preSharedKey = password; in getConfig()
100 return config; in getConfig()
DWifiSettings.java734 for (WifiConfiguration config : configs) { in constructAccessPoints()
735 if (config.selfAdded && config.numAssociation == 0) { in constructAccessPoints()
738 AccessPoint accessPoint = new AccessPoint(context, config); in constructAccessPoints()
877 final WifiConfiguration config = configController.getConfig(); in submit() local
879 if (config == null) { in submit()
884 } else if (config.networkId != INVALID_NETWORK_ID) { in submit()
886 mWifiManager.save(config, mSaveListener); in submit()
890 mWifiManager.save(config, mSaveListener); in submit()
892 connect(config); in submit()
927 protected void connect(final WifiConfiguration config) { in connect() argument
[all …]
DWifiSettingsForSetupWizardXL.java591 for (WifiConfiguration config : configs) { in onBackButtonPressed()
594 config.SSID, config.networkId)); in onBackButtonPressed()
596 mWifiManager.forget(config.networkId, new WifiManager.ActionListener() { in onBackButtonPressed()
759 /* package */ void onSaveNetwork(WifiConfiguration config) { in onSaveNetwork() argument
761 mWifiManager.connect(config, new WifiManager.ActionListener() { in onSaveNetwork()
/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 …]
DGLES11Canvas.java768 ConfigState config = obtainRestoreConfig(); in save() local
771 config.mAlpha = mAlpha; in save()
773 config.mAlpha = -1; in save()
777 System.arraycopy(mMatrixValues, 0, config.mMatrix, 0, 16); in save()
779 config.mMatrix[0] = Float.NEGATIVE_INFINITY; in save()
782 mRestoreStack.add(config); in save()
788 ConfigState config = mRestoreStack.remove(mRestoreStack.size() - 1); in restore() local
789 config.restore(this); in restore()
790 freeRestoreConfig(config); in restore()
/packages/apps/Launcher3/WallpaperPicker/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/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewCoordinates.java244 private ConversationItemViewCoordinates(final Context context, final Config config, in ConversationItemViewCoordinates() argument
259 folders.setVisibility(config.areFoldersVisible() ? View.VISIBLE : View.GONE); in ConversationItemViewCoordinates()
263 switch (config.getGadgetMode()) { in ConversationItemViewCoordinates()
278 replyState.setVisibility(config.isReplyStateVisible() ? View.VISIBLE : View.GONE); in ConversationItemViewCoordinates()
282 config.isPersonalIndicatorVisible() ? View.VISIBLE : View.GONE); in ConversationItemViewCoordinates()
284 setFramePadding(context, view, config.useFullPadding()); in ConversationItemViewCoordinates()
287 ViewCompat.setLayoutDirection(view, config.getLayoutDirection()); in ConversationItemViewCoordinates()
288 final int widthSpec = MeasureSpec.makeMeasureSpec(config.getWidth(), MeasureSpec.EXACTLY); in ConversationItemViewCoordinates()
347 if (config.areFoldersVisible()) { in ConversationItemViewCoordinates()
362 if (config.isColorBlockVisible() && colorBlock != null) { in ConversationItemViewCoordinates()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DMosaicRendererSurfaceView.java177 for (EGLConfig config : configs) { in chooseConfig()
178 int d = findConfigAttrib(egl, display, config, in chooseConfig()
180 int s = findConfigAttrib(egl, display, config, in chooseConfig()
188 int r = findConfigAttrib(egl, display, config, in chooseConfig()
190 int g = findConfigAttrib(egl, display, config, in chooseConfig()
192 int b = findConfigAttrib(egl, display, config, in chooseConfig()
194 int a = findConfigAttrib(egl, display, config, in chooseConfig()
198 return config; in chooseConfig()
204 EGLConfig config, int attribute, int defaultValue) { in findConfigAttrib() argument
206 if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) { in findConfigAttrib()
[all …]
/packages/apps/Settings/src/com/android/settings/net/
DDataUsageMeteredSettings.java91 for (WifiConfiguration config : mWifiManager.getConfiguredNetworks()) { in updateNetworks()
92 if (config.SSID != null) { in updateNetworks()
93 mWifiCategory.addPreference(buildWifiPref(context, config)); in updateNetworks()
110 private Preference buildWifiPref(Context context, WifiConfiguration config) { in buildWifiPref() argument
111 final String networkId = config.SSID; in buildWifiPref()
198 for (WifiConfiguration config : wifiManager.getConfiguredNetworks()) {
199 if (config.SSID != null) {
200 final String networkId = config.SSID;
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityUtils.java67 final Configuration config = res.getConfiguration(); in getTextForLocale() local
68 final Locale prevLocale = config.locale; in getTextForLocale()
70 config.locale = locale; in getTextForLocale()
71 res.updateConfiguration(config, null); in getTextForLocale()
74 config.locale = prevLocale; in getTextForLocale()
75 res.updateConfiguration(config, null); in getTextForLocale()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java139 private String getConfigSignature(Configuration config) { in getConfigSignature() argument
140 return "mmc=" + Integer.toString(config.mcc) in getConfigSignature()
141 + "-mnc=" + Integer.toString(config.mnc) in getConfigSignature()
142 + "-loc=" + config.locale.toString(); in getConfigSignature()
145 public synchronized void prepareForConfiguration(Configuration config) { in prepareForConfiguration() argument
147 String newSignature = getConfigSignature(config); in prepareForConfiguration()
159 private void setActiveConfiguration(Configuration config) { in setActiveConfiguration() argument
161 editor.putString(ACTIVE_CONFIGURATION_PREFNAME, getConfigSignature(config)); in setActiveConfiguration()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionPreviewFragment.java159 final Configuration config = res.getConfiguration(); in getTextForLocale() local
160 final Locale prevLocale = config.locale; in getTextForLocale()
162 config.locale = locale; in getTextForLocale()
163 res.updateConfiguration(config, null); in getTextForLocale()
166 config.locale = prevLocale; in getTextForLocale()
167 res.updateConfiguration(config, null); in getTextForLocale()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java219 public void onConfigurationChanged(Configuration config) { in onConfigurationChanged() argument
291 Config.ManageCachePage config = Config.ManageCachePage.get(activity); in initializeViews() local
292 mSlotView = new SlotView(mActivity, config.slotViewSpec); in initializeViews()
294 config.labelSpec, config.cachePinSize, config.cachePinMargin); in initializeViews()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pSettings.java378 WifiP2pConfig config = new WifiP2pConfig(); in onPreferenceTreeClick() local
379 config.deviceAddress = mSelectedWifiPeer.device.deviceAddress; in onPreferenceTreeClick()
384 config.wps.setup = forceWps; in onPreferenceTreeClick()
387 config.wps.setup = WpsInfo.PBC; in onPreferenceTreeClick()
389 config.wps.setup = WpsInfo.KEYPAD; in onPreferenceTreeClick()
391 config.wps.setup = WpsInfo.DISPLAY; in onPreferenceTreeClick()
395 mWifiP2pManager.connect(mChannel, config, in onPreferenceTreeClick()
/packages/apps/Launcher2/src/com/android/launcher2/
DDeleteDropTarget.java267 DragObject d, PointF vel, ViewConfiguration config) { in createFlingToTrashAnimatorListener() argument
276 float vp = Math.min(1f, velocity / (config.getScaledMaximumFlingVelocity() / 2f)); in createFlingToTrashAnimatorListener()
371 ViewConfiguration config) {
396 final ViewConfiguration config = ViewConfiguration.get(mLauncher);
424 updateCb = createFlingToTrashAnimatorListener(dragLayer, d, vel, config);
427 duration, config);
/packages/apps/InCallUI/src/com/android/incallui/
DInCallActivity.java445 public void onConfigurationChanged(Configuration config) { in onConfigurationChanged() argument
446 InCallPresenter.getInstance().getProximitySensor().onConfigurationChanged(config); in onConfigurationChanged()
447 Log.d(this, "onConfigurationChanged "+config.orientation); in onConfigurationChanged()
451 if (config.orientation != mCurrentOrientation) { in onConfigurationChanged()
452 mCurrentOrientation = config.orientation; in onConfigurationChanged()
457 super.onConfigurationChanged(config); in onConfigurationChanged()
/packages/apps/Camera2/src/com/android/camera/widget/
DLocationDialogLayout.java52 public void onConfigurationChanged(Configuration config) { in onConfigurationChanged() argument
53 super.onConfigurationChanged(config); in onConfigurationChanged()
56 if (config.orientation == mLastOrientation) { in onConfigurationChanged()
59 mLastOrientation = config.orientation; in onConfigurationChanged()
DAspectRatioDialogLayout.java66 public void onConfigurationChanged(Configuration config) { in onConfigurationChanged() argument
67 super.onConfigurationChanged(config); in onConfigurationChanged()
68 if (config.orientation == mLastOrientation) { in onConfigurationChanged()
71 mLastOrientation = config.orientation; in onConfigurationChanged()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeleteDropTarget.java372 DragObject d, PointF vel, ViewConfiguration config) { in createFlingToTrashAnimatorListener() argument
384 float vp = Math.min(1f, velocity / (config.getScaledMaximumFlingVelocity() / 2f)); in createFlingToTrashAnimatorListener()
479 ViewConfiguration config) {
504 final ViewConfiguration config = ViewConfiguration.get(mLauncher);
532 updateCb = createFlingToTrashAnimatorListener(dragLayer, d, vel, config);
535 duration, config);

12345