Home
last modified time | relevance | path

Searched refs:currentConfig (Results 1 – 25 of 28) sorted by relevance

12

/aosp12/frameworks/base/core/java/android/window/
H A DConfigurationHelper.java57 public static int diffPublicWithSizeBuckets(@Nullable Configuration currentConfig, in diffPublicWithSizeBuckets() argument
60 if (currentConfig == null) { in diffPublicWithSizeBuckets()
63 int publicDiff = currentConfig.diffPublicOnly(newConfig); in diffPublicWithSizeBuckets()
64 return SizeConfigurationBuckets.filterDiff(publicDiff, currentConfig, newConfig, buckets); in diffPublicWithSizeBuckets()
122 private static boolean shouldUpdateWindowMetricsBounds(@NonNull Configuration currentConfig, in shouldUpdateWindowMetricsBounds() argument
124 final Rect currentBounds = currentConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds()
127 final Rect currentMaxBounds = currentConfig.windowConfiguration.getMaxBounds(); in shouldUpdateWindowMetricsBounds()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DConfigurationControllerImpl.kt42 val currentConfig = context.resources.configuration regex
44 fontScale = currentConfig.fontScale
45 density = currentConfig.densityDpi
46 smallestScreenWidth = currentConfig.smallestScreenWidthDp
47 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK ==
49 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK
50 localeList = currentConfig.locales
51 layoutDirection = currentConfig.layoutDirection
/aosp12/packages/apps/Settings/src/com/android/settings/development/bluetooth/
H A DBluetoothBitPerSampleDialogPreferenceController.java62 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in writeConfigurationValues() local
63 if (currentConfig != null) { in writeConfigurationValues()
65 currentConfig.getCodecType())); in writeConfigurationValues()
95 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in getSelectableIndex() local
96 if (currentConfig != null) { in getSelectableIndex()
98 getSelectableByCodecType(currentConfig.getCodecType()).getBitsPerSample(); in getSelectableIndex()
H A DBluetoothChannelModeDialogPreferenceController.java62 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in writeConfigurationValues() local
63 if (currentConfig != null) { in writeConfigurationValues()
65 currentConfig.getCodecType())); in writeConfigurationValues()
92 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in getSelectableIndex() local
93 if (currentConfig != null) { in getSelectableIndex()
95 getSelectableByCodecType(currentConfig.getCodecType()).getChannelMode(); in getSelectableIndex()
H A DBluetoothSampleRateDialogPreferenceController.java62 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in writeConfigurationValues() local
63 if (currentConfig != null) { in writeConfigurationValues()
65 currentConfig.getCodecType())); in writeConfigurationValues()
98 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in getSelectableIndex() local
99 if (currentConfig != null) { in getSelectableIndex()
101 getSelectableByCodecType(currentConfig.getCodecType()).getSampleRate(); in getSelectableIndex()
H A DBluetoothQualityDialogPreferenceController.java96 final BluetoothCodecConfig currentConfig = getCurrentCodecConfig(); in updateState() local
97 if (currentConfig != null in updateState()
98 && currentConfig.getCodecType() == BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC) { in updateState()
/aosp12/packages/apps/Car/libs/car-ui-lib/paintbooth/src/main/java/com/android/car/ui/paintbooth/
H A DMainActivity.java227 Object currentConfig = getConfig.invoke(canary); in initLeakCanary() local
230 .getMethod("getDumpHeap").invoke(currentConfig); in initLeakCanary()
232 .getMethod("getDumpHeapWhenDebugging").invoke(currentConfig); in initLeakCanary()
234 .getMethod("getReferenceMatchers").invoke(currentConfig); in initLeakCanary()
236 .getMethod("getObjectInspectors").invoke(currentConfig); in initLeakCanary()
238 .getMethod("getOnHeapAnalyzedListener").invoke(currentConfig); in initLeakCanary()
241 .getMethod("getMetatadaExtractor").invoke(currentConfig); in initLeakCanary()
243 .getMethod("getComputeRetainedHeapSize").invoke(currentConfig); in initLeakCanary()
245 .getMethod("getMaxStoredHeapDumps").invoke(currentConfig); in initLeakCanary()
247 .getMethod("getUseExperimentalLeakFinders").invoke(currentConfig); in initLeakCanary()
[all …]
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
H A DSystemBarConfigs.java148 SystemBarConfig currentConfig = mSystemBarConfigMap.get(side); in updateInsetPaddings() local
150 if (currentConfig == null) return; in updateInsetPaddings()
153 if (mLeftNavBarEnabled && currentConfig.getZOrder() < mSystemBarConfigMap.get( in updateInsetPaddings()
155 currentConfig.setPaddingBySide(LEFT, in updateInsetPaddings()
158 if (mRightNavBarEnabled && currentConfig.getZOrder() < mSystemBarConfigMap.get( in updateInsetPaddings()
160 currentConfig.setPaddingBySide(RIGHT, in updateInsetPaddings()
165 if (mTopNavBarEnabled && currentConfig.getZOrder() < mSystemBarConfigMap.get( in updateInsetPaddings()
167 currentConfig.setPaddingBySide(TOP, in updateInsetPaddings()
170 if (mBottomNavBarEnabled && currentConfig.getZOrder() < mSystemBarConfigMap.get( in updateInsetPaddings()
172 currentConfig.setPaddingBySide(BOTTOM, in updateInsetPaddings()
/aosp12/frameworks/base/telephony/java/android/telephony/
H A DSmsMessage.java1094 for (NoEmsSupportConfig currentConfig : mNoEmsSupportConfigList) { in hasEmsSupport()
1095 if (simOperator.startsWith(currentConfig.mOperatorNumber) && in hasEmsSupport()
1096 (TextUtils.isEmpty(currentConfig.mGid1) || in hasEmsSupport()
1097 (!TextUtils.isEmpty(currentConfig.mGid1) && in hasEmsSupport()
1098 currentConfig.mGid1.equalsIgnoreCase(gid)))) { in hasEmsSupport()
1125 for (NoEmsSupportConfig currentConfig : mNoEmsSupportConfigList) { in shouldAppendPageNumberAsPrefix()
1126 if (simOperator.startsWith(currentConfig.mOperatorNumber) && in shouldAppendPageNumberAsPrefix()
1127 (TextUtils.isEmpty(currentConfig.mGid1) || in shouldAppendPageNumberAsPrefix()
1128 (!TextUtils.isEmpty(currentConfig.mGid1) in shouldAppendPageNumberAsPrefix()
1129 && currentConfig.mGid1.equalsIgnoreCase(gid)))) { in shouldAppendPageNumberAsPrefix()
[all …]
/aosp12/hardware/interfaces/audio/effect/all-versions/vts/functional/
H A DVtsHalAudioEffectTargetTest.cpp251 EffectConfig currentConfig; in getChannelCount() local
255 currentConfig = conf; in getChannelCount()
264 static_cast<audio_channel_mask_t>(currentConfig.outputCfg.channels)); in getChannelCount()
267 currentConfig.outputCfg.base.channelMask.getDiscriminator()); in getChannelCount()
269 currentConfig.outputCfg.base.channelMask.value()); in getChannelCount()
301 EffectConfig currentConfig; in TEST_P() local
305 currentConfig = conf; in TEST_P()
330 EffectConfig currentConfig; in TEST_P() local
334 currentConfig = conf; in TEST_P()
340 EffectConfig invalidConfig = currentConfig; in TEST_P()
[all …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DApConfigUtilTest.java630 SoftApConfiguration currentConfig = new SoftApConfiguration.Builder() in testCheckConfigurationChangeNeedToRestart() local
647 assertFalse(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
654 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
660 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
667 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
674 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
680 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
686 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
694 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
710 assertTrue(ApConfigUtil.checkConfigurationChangeNeedToRestart(currentConfig, in testCheckConfigurationChangeNeedToRestart()
[all …]
/aosp12/build/soong/ui/build/
H A Dcleanbuild.go160 currentConfig := prefix + config.TargetProduct() + "-" + config.TargetBuildVariant() + suffix
165 err := ioutil.WriteFile(configFile, []byte(currentConfig), 0666) // a+rw
183 if previousConfig == currentConfig {
197 currentProductAndVariant := strings.TrimPrefix(strings.TrimSuffix(currentConfig, suffix), prefix)
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DApConfigUtil.java828 SoftApConfiguration currentConfig, SoftApConfiguration newConfig) { in checkConfigurationChangeNeedToRestart() argument
829 return !Objects.equals(currentConfig.getSsid(), newConfig.getSsid()) in checkConfigurationChangeNeedToRestart()
830 || !Objects.equals(currentConfig.getBssid(), newConfig.getBssid()) in checkConfigurationChangeNeedToRestart()
831 || currentConfig.getSecurityType() != newConfig.getSecurityType() in checkConfigurationChangeNeedToRestart()
832 || !Objects.equals(currentConfig.getPassphrase(), newConfig.getPassphrase()) in checkConfigurationChangeNeedToRestart()
833 || currentConfig.isHiddenSsid() != newConfig.isHiddenSsid() in checkConfigurationChangeNeedToRestart()
834 || currentConfig.getBand() != newConfig.getBand() in checkConfigurationChangeNeedToRestart()
835 || currentConfig.getChannel() != newConfig.getChannel() in checkConfigurationChangeNeedToRestart()
836 || (SdkLevel.isAtLeastS() && !currentConfig.getChannels().toString() in checkConfigurationChangeNeedToRestart()
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
H A DNetworkPolicyTestUtils.java224 final WifiConfiguration currentConfig = getWifiConfiguration(ssid); in setWifiMeteredStatus() local
225 currentConfig.meteredOverride = metered in setWifiMeteredStatus()
228 getWifiManager().save(currentConfig, createActionListener( in setWifiMeteredStatus()
243 getWifiManager().connect(currentConfig, createActionListener( in setWifiMeteredStatus()
/aosp12/frameworks/base/services/core/java/com/android/server/display/
H A DPersistentDataStore.java697 BrightnessConfiguration currentConfig = mConfigurations.get(userSerial); in setBrightnessConfigurationForUser() local
698 if (currentConfig != c && (currentConfig == null || !currentConfig.equals(c))) { in setBrightnessConfigurationForUser()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/history/
H A DNotificationSbnAdapter.java86 Configuration currentConfig = mContext.getResources().getConfiguration(); in NotificationSbnAdapter() local
87 mInNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in NotificationSbnAdapter()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DClientModeImpl.java1008 if (currentConfig != null && currentConfig.isLinked(config)) { in onNetworkRemoved()
1010 updateLinkedNetworks(currentConfig); in onNetworkRemoved()
3655 WifiConfiguration currentConfig =
3657 if (currentConfig != null) {
3671 WifiConfiguration currentConfig =
3673 if (currentConfig != null) {
3687 WifiConfiguration currentConfig =
3691 if (currentConfig != null && currentConfig.isLinked(updatedConfig)) {
3693 updateLinkedNetworks(currentConfig);
5289 startIpClient(currentConfig, false);
[all …]
H A DSupplicantStaIfaceHal.java326 WifiConfiguration currentConfig = getCurrentNetworkLocalConfig(ifaceName); in getCurrentNetworkId() local
327 if (currentConfig == null) { in getCurrentNetworkId()
330 return currentConfig.networkId; in getCurrentNetworkId()
998 WifiConfiguration currentConfig = getCurrentNetworkLocalConfig(ifaceName); in connectToNetwork() local
999 if (WifiConfigurationUtil.isSameNetwork(config, currentConfig)) { in connectToNetwork()
1003 currentConfig.getNetworkSelectionStatus().getNetworkSelectionBSSID(); in connectToNetwork()
3766 WifiConfiguration currentConfig = getCurrentNetworkLocalConfig(ifaceName); in updateLinkedNetworks() local
3769 if (currentConfig == null || currentHandle == null) { in updateLinkedNetworks()
3774 if (networkId != currentConfig.networkId) { in updateLinkedNetworks()
3793 linkedNetworkHandles.add(new Pair(currentHandle, currentConfig)); in updateLinkedNetworks()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/
H A DNotificationTest.java642 Configuration currentConfig = mContext.getResources().getConfiguration(); in runInNightMode() local
643 boolean isNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in runInNightMode()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayContentTests.java441 final Configuration currentConfig = defaultDisplay.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate() local
444 final Configuration newOverrideConfig = new Configuration(currentConfig); in testDefaultDisplayOverrideConfigUpdate()
456 mWm.setNewDisplayOverrideConfiguration(currentConfig, defaultDisplay); in testDefaultDisplayOverrideConfigUpdate()
458 assertEquals(currentConfig.densityDpi, globalConfig.densityDpi); in testDefaultDisplayOverrideConfigUpdate()
459 assertEquals(currentConfig.fontScale, globalConfig.fontScale, 0.1 /* delta */); in testDefaultDisplayOverrideConfigUpdate()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DClientModeImplTest.java2762 WifiConfiguration currentConfig = new WifiConfiguration(); in makeLastSelectedWifiConfiguration() local
2763 currentConfig.networkId = lastSelectedNetworkId; in makeLastSelectedWifiConfiguration()
2764 return currentConfig; in makeLastSelectedWifiConfiguration()
2775 WifiConfiguration currentConfig = makeLastSelectedWifiConfiguration(5, in testIsRecentlySelectedByTheUser_SameNetworkNotExpired() local
2777 assertTrue(mCmi.isRecentlySelectedByTheUser(currentConfig)); in testIsRecentlySelectedByTheUser_SameNetworkNotExpired()
2788 WifiConfiguration currentConfig = makeLastSelectedWifiConfiguration(5, in testIsRecentlySelectedByTheUser_SameNetworkExpired() local
2790 assertFalse(mCmi.isRecentlySelectedByTheUser(currentConfig)); in testIsRecentlySelectedByTheUser_SameNetworkExpired()
2800 WifiConfiguration currentConfig = makeLastSelectedWifiConfiguration(5, in testIsRecentlySelectedByTheUser_DifferentNetwork() local
2802 currentConfig.networkId = 4; in testIsRecentlySelectedByTheUser_DifferentNetwork()
2803 assertFalse(mCmi.isRecentlySelectedByTheUser(currentConfig)); in testIsRecentlySelectedByTheUser_DifferentNetwork()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DGsmCdmaPhone.java4549 int currentConfig = TelephonyProperties.lte_on_cdma_device() in getLteOnCdmaMode() local
4551 int lteOnCdmaModeDynamicValue = currentConfig; in getLteOnCdmaMode()
4560 if (currentConfig == RILConstants.LTE_ON_CDMA_TRUE) { in getLteOnCdmaMode()
4564 return currentConfig; in getLteOnCdmaMode()
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayContent.java1537 Configuration updateOrientation(Configuration currentConfig, in updateOrientation() argument
1555 } else if (currentConfig != null in updateOrientation()
1565 mTmpConfiguration.updateFrom(currentConfig); in updateOrientation()
1567 if (currentConfig.diff(mTmpConfiguration) != 0) { in updateOrientation()
H A DRootWindowContainer.java651 final Configuration currentConfig = displayContent.getRequestedOverrideConfiguration(); in setDisplayOverrideConfigurationIfNeeded() local
652 final boolean configChanged = currentConfig.diff(newConfiguration) != 0; in setDisplayOverrideConfigurationIfNeeded()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DExpandableNotificationRow.java1309 Configuration currentConfig = getResources().getConfiguration();
1310 boolean nightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK)

12