/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | ScoringParams.java | 268 mVal.rssi2[EXIT] = context.getResources().getInteger( in loadResources() 270 mVal.rssi2[ENTRY] = context.getResources().getInteger( in loadResources() 272 mVal.rssi2[SUFFICIENT] = context.getResources().getInteger( in loadResources() 274 mVal.rssi2[GOOD] = context.getResources().getInteger( in loadResources() 276 mVal.rssi5[EXIT] = context.getResources().getInteger( in loadResources() 278 mVal.rssi5[ENTRY] = context.getResources().getInteger( in loadResources() 280 mVal.rssi5[SUFFICIENT] = context.getResources().getInteger( in loadResources() 282 mVal.rssi5[GOOD] = context.getResources().getInteger( in loadResources() 284 mVal.rssi6[EXIT] = context.getResources().getInteger( in loadResources() 286 mVal.rssi6[ENTRY] = context.getResources().getInteger( in loadResources() [all …]
|
D | WifiBlocklistMonitor.java | 284 failureStreak = Math.min(failureStreak, mContext.getResources().getInteger( in getBlocklistDurationWithExponentialBackoff() 443 mContext.getResources().getInteger( in getFailureThresholdForReason() 446 mContext.getResources().getInteger(R.integer in getFailureThresholdForReason() 449 mContext.getResources().getInteger( in getFailureThresholdForReason() 452 mContext.getResources().getInteger( in getFailureThresholdForReason() 455 mContext.getResources().getInteger( in getFailureThresholdForReason() 458 mContext.getResources().getInteger( in getFailureThresholdForReason() 461 mContext.getResources().getInteger( in getFailureThresholdForReason() 464 mContext.getResources().getInteger( in getFailureThresholdForReason() 467 mContext.getResources().getInteger( in getFailureThresholdForReason() [all …]
|
D | WifiGlobals.java | 121 .getInteger(R.integer.config_wifiP2pDeviceNamePostfixNumDigits); in WifiGlobals() 123 .getInteger(R.integer.config_wifiClientModeImplNumLogRecs); in WifiGlobals() 126 mWifiLowConnectedScoreThresholdToTriggerScanForMbb = mContext.getResources().getInteger( in WifiGlobals() 128 mWifiLowConnectedScoreScanPeriodSeconds = mContext.getResources().getInteger( in WifiGlobals() 134 mPollRssiIntervalMillis.set(mContext.getResources().getInteger( in WifiGlobals() 136 mPollRssiShortIntervalMillis = mContext.getResources().getInteger( in WifiGlobals() 138 mPollRssiLongIntervalMillis = mContext.getResources().getInteger( in WifiGlobals() 140 mClientRssiMonitorThresholdDbm = mContext.getResources().getInteger( in WifiGlobals() 142 mClientRssiMonitorHysteresisDb = mContext.getResources().getInteger( in WifiGlobals() 151 .getInteger(R.integer.config_wifiDisableReasonRepeatedNudFailuresThreshold); in WifiGlobals() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/ |
D | WifiResourceCacheTest.java | 62 when(mResources.getInteger(TEST_ID)).thenReturn(VALUE_1); in testGetIntegerResource() 63 assertEquals(VALUE_1, mWifiResourceCache.getInteger(TEST_ID, TEST_NAME)); in testGetIntegerResource() 64 assertEquals(VALUE_1, mWifiResourceCache.getInteger(TEST_ID, TEST_NAME)); in testGetIntegerResource() 65 verify(mResources).getInteger(TEST_ID); in testGetIntegerResource() 81 when(mResources.getInteger(TEST_ID)).thenReturn(VALUE_1); in testOverrideIntegerResource() 82 assertEquals(VALUE_1, mWifiResourceCache.getInteger(TEST_ID, TEST_NAME)); in testOverrideIntegerResource() 84 assertEquals(VALUE_2, mWifiResourceCache.getInteger(TEST_ID, TEST_NAME)); in testOverrideIntegerResource() 86 assertEquals(VALUE_1, mWifiResourceCache.getInteger(TEST_ID, TEST_NAME)); in testOverrideIntegerResource() 87 verify(mResources, times(2)).getInteger(TEST_ID); in testOverrideIntegerResource() 93 when(mResources.getInteger(TEST_ID)).thenReturn(VALUE_1); in testReset() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/ |
D | DeviceConfigFacade.java | 138 mContext.getResources().getInteger(R.integer.filter_distance_inliers_percent) in updateDeviceConfigFlags() 143 mContext.getResources().getInteger(R.integer.filter_distance_window) in updateDeviceConfigFlags() 148 mContext.getResources().getInteger(R.integer.filter_angle_inliers_percent) in updateDeviceConfigFlags() 153 mContext.getResources().getInteger(R.integer.filter_angle_window) in updateDeviceConfigFlags() 173 mContext.getResources().getInteger(R.integer.primer_fov_degrees) in updateDeviceConfigFlags() 178 mContext.getResources().getInteger(R.integer.prediction_timeout_seconds) in updateDeviceConfigFlags() 193 mContext.getResources().getInteger(R.integer.mirror_detection_window) in updateDeviceConfigFlags() 198 mContext.getResources().getInteger(R.integer.front_mirror_dps) in updateDeviceConfigFlags() 203 mContext.getResources().getInteger(R.integer.back_mirror_dps) in updateDeviceConfigFlags() 208 mContext.getResources().getInteger(R.integer.mirror_score_std_degrees) in updateDeviceConfigFlags() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | SystemBarConfigsTest.java | 84 when(mResources.getInteger(R.integer.config_topSystemBarType)).thenReturn(0); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException() 85 when(mResources.getInteger(R.integer.config_bottomSystemBarType)).thenReturn(0); in onInit_allSystemBarsEnabled_twoBarsHaveDuplicateType_throwsRuntimeException() 105 when(mResources.getInteger(R.integer.config_topSystemBarZOrder)).thenReturn(33); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException() 106 when(mResources.getInteger(R.integer.config_leftSystemBarZOrder)).thenReturn(33); in onInit_intersectingBarsHaveSameZOrder_throwsRuntimeException() 199 when(mResources.getInteger(R.integer.config_topSystemBarZOrder)).thenReturn( in topSystemBarHasHigherZOrderThanHuns_topSystemBarIsSystemBarPanelType() 210 when(mResources.getInteger(R.integer.config_topSystemBarZOrder)).thenReturn( in topSystemBarHasLowerZOrderThanHuns_topSystemBarIsStatusBarAdditionalType() 292 when(mResources.getInteger(R.integer.config_showDisplayCompatToolbarOnSystemBar)) in updateInsetPaddings_overlappingBars_addsPaddingsByOrders() 295 when(mResources.getInteger(R.integer.config_topSystemBarZOrder)).thenReturn(7); in updateInsetPaddings_overlappingBars_addsPaddingsByOrders() 296 when(mResources.getInteger(R.integer.config_bottomSystemBarZOrder)).thenReturn(10); in updateInsetPaddings_overlappingBars_addsPaddingsByOrders() 297 when(mResources.getInteger(R.integer.config_leftSystemBarZOrder)).thenReturn(8); in updateInsetPaddings_overlappingBars_addsPaddingsByOrders() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/ |
D | DeviceConfigFacadeTest.java | 102 when(mResources.getInteger(R.integer.filter_distance_inliers_percent)) in setUp() 104 when(mResources.getInteger(R.integer.filter_distance_window)) in setUp() 106 when(mResources.getInteger(R.integer.filter_angle_inliers_percent)) in setUp() 108 when(mResources.getInteger(R.integer.filter_angle_window)) in setUp() 110 when(mResources.getInteger(R.integer.primer_fov_degrees)) in setUp() 114 when(mResources.getInteger(R.integer.prediction_timeout_seconds)) in setUp() 118 when(mResources.getInteger(R.integer.mirror_detection_window)) in setUp() 120 when(mResources.getInteger(R.integer.front_mirror_dps)) in setUp() 122 when(mResources.getInteger(R.integer.back_mirror_dps)) in setUp() 124 when(mResources.getInteger(R.integer.mirror_score_std_degrees)) in setUp() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | RenameMobileNetworkDialogFragment.java | 110 .put(res.getInteger(R.color.SIM_color_cyan), in onAttach() 111 res.getInteger(R.color.SIM_dark_mode_color_cyan)) in onAttach() 112 .put(res.getInteger(R.color.SIM_color_blue800), in onAttach() 113 res.getInteger(R.color.SIM_dark_mode_color_blue)) in onAttach() 114 .put(res.getInteger(R.color.SIM_color_green800), in onAttach() 115 res.getInteger(R.color.SIM_dark_mode_color_green)) in onAttach() 116 .put(res.getInteger(R.color.SIM_color_purple800), in onAttach() 117 res.getInteger(R.color.SIM_dark_mode_color_purple)) in onAttach() 118 .put(res.getInteger(R.color.SIM_color_pink800), in onAttach() 119 res.getInteger(R.color.SIM_dark_mode_color_pink)) in onAttach() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
D | PowerMenuSettingsUtilsTest.java | 70 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerForAssistantEnabled_valueNotSet_defaultToAssistant_returnsTrue() 78 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerForAssistantEnabled_valueNotSet_defaultToPowerMenu_returnsFalse() 86 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_defaultToAssistant_returnsTrue() 93 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_defaultToPowerMenu_returnsTrue() 101 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_defaultToPowerOff_returnsFalse() 113 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in isLongPressPowerSettingAvailable_settingDisabled_returnsFalse() 155 when(mResources.getInteger(com.android.internal.R.integer.config_keyChordPowerVolumeUp)) in setLongPressPowerForPowerMenu_updatesKeyChordValueToDefault()
|
D | PowerMenuPreferenceControllerTest.java | 56 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in setUp() 66 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in getAvailabilityStatus_settingsAvailable_returnsAvailable() 79 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in getAvailabilityStatus_settingsNotAvailable_returnsNotAvailable() 92 when(mResources.getInteger(com.android.internal.R.integer.config_longPressOnPowerBehavior)) in getAvailabilityStatus_longPressPowerSettingNotAvailable_returnsNotAvailable()
|
/packages/apps/Camera2/src/com/android/camera/module/ |
D | ModulesInfo.java | 50 int photoModuleId = context.getResources().getInteger(R.integer.camera_mode_photo); in setupModules() 54 registerVideoModule(moduleManager, res.getInteger(R.integer.camera_mode_video), in setupModules() 57 registerWideAngleModule(moduleManager, res.getInteger(R.integer.camera_mode_panorama), in setupModules() 60 res.getInteger(R.integer.camera_mode_photosphere), in setupModules() 64 registerRefocusModule(moduleManager, res.getInteger(R.integer.camera_mode_refocus), in setupModules() 68 registerGcamModule(moduleManager, res.getInteger(R.integer.camera_mode_gcam), in setupModules() 72 int imageCaptureIntentModuleId = res.getInteger(R.integer.camera_mode_capture_intent); in setupModules()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | Config.kt | 62 mContext?.getResources()!!.getInteger(R.integer.num_suggestions_above_keyboard) 66 get() = mContext?.getResources()!!.getInteger(R.integer.max_promoted_suggestions) 69 get() = mContext?.getResources()!!.getInteger(R.integer.max_promoted_results) 77 get() = mContext?.getResources()!!.getInteger(R.integer.max_shortcuts_per_web_source) 81 get() = mContext?.getResources()!!.getInteger(R.integer.max_shortcuts_per_non_web_source)
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | TransitionUtils.java | 49 animator.setDuration(res.getInteger(R.integer.alpha_activity_in_bkg_duration)); in createActivityFadeInAnimator() 50 animator.setStartDelay(res.getInteger(R.integer.alpha_activity_in_bkg_delay)); in createActivityFadeInAnimator() 69 animator.setDuration(res.getInteger(R.integer.alpha_activity_out_bkg_duration)); in createActivityFadeOutAnimator() 70 animator.setStartDelay(res.getInteger(R.integer.alpha_activity_out_bkg_delay)); in createActivityFadeOutAnimator()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultinetworkPolicyTrackerTest.kt | 70 doReturn(0).`when`(it).getInteger(R.integer.config_networkAvoidBadWifi) in <lambda>() 71 doReturn(0).`when`(it).getInteger(R.integer.config_activelyPreferBadWifi) in <lambda>() 127 doReturn(0).`when`(resources).getInteger(R.integer.config_activelyPreferBadWifi) in testUpdateAvoidBadWifi() 132 doReturn(1).`when`(resources).getInteger(R.integer.config_networkAvoidBadWifi) in testUpdateAvoidBadWifi() 143 doReturn(1).`when`(resources).getInteger(R.integer.config_activelyPreferBadWifi) in testUpdateAvoidBadWifi() 157 doReturn(0).`when`(resources).getInteger(R.integer.config_activelyPreferBadWifi) in testUpdateAvoidBadWifi()
|
/packages/apps/Car/Notification/src/com/android/car/notification/headsup/animationhelper/ |
D | CarHeadsUpNotificationRightAnimationHelper.java | 43 context.getResources().getInteger(R.integer.headsup_total_enter_duration_ms)); in getAnimateInAnimator() 48 context.getResources().getInteger(R.integer.headsup_alpha_enter_duration_ms)); in getAnimateInAnimator() 66 move.setDuration(context.getResources().getInteger(R.integer.headsup_exit_duration_ms)); in getAnimateOutAnimator() 70 alpha.setDuration(context.getResources().getInteger(R.integer.headsup_exit_duration_ms)); in getAnimateOutAnimator()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | ModuleManagerImpl.java | 115 final int photoModuleId = context.getResources().getInteger(R.integer.camera_mode_photo); in getQuickSwitchToModuleId() 116 final int videoModuleId = context.getResources().getInteger(R.integer.camera_mode_video); in getQuickSwitchToModuleId() 120 || moduleId == context.getResources().getInteger(R.integer.camera_mode_gcam)) { in getQuickSwitchToModuleId() 125 quickSwitchTo = settingsManager.getInteger( in getQuickSwitchToModuleId()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/src/com/android/car/carlauncher/ |
D | PageIndicator.java | 55 mFadeAnimationDurationMs = getResources().getInteger( in PageIndicator() 57 mFadeAnimationDelayMs = getResources().getInteger( in PageIndicator() 59 mAppearAnimationDurationMs = getResources().getInteger( in PageIndicator() 61 mAppearAnimationDelayMs = getResources().getInteger( in PageIndicator()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/ |
D | A2dpCodecConfig.java | 195 resources.getInteger(R.integer.a2dp_source_codec_priority_sbc)); in assignCodecConfigPriorities() 208 resources.getInteger(R.integer.a2dp_source_codec_priority_aac)); in assignCodecConfigPriorities() 221 resources.getInteger(R.integer.a2dp_source_codec_priority_aptx)); in assignCodecConfigPriorities() 234 resources.getInteger(R.integer.a2dp_source_codec_priority_aptx_hd)); in assignCodecConfigPriorities() 247 resources.getInteger(R.integer.a2dp_source_codec_priority_ldac)); in assignCodecConfigPriorities() 257 value = resources.getInteger(R.integer.a2dp_source_codec_priority_opus); in assignCodecConfigPriorities()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilityButtonPreferenceControllerTest.java | 76 when(mResources.getInteger(com.android.internal.R.integer.config_navBarInteractionMode)) in displayPreference_navigationGestureEnabled_setCorrectTitle() 87 when(mResources.getInteger(com.android.internal.R.integer.config_navBarInteractionMode)) in displayPreference_navigationGestureDisabled_setCorrectTitle() 98 when(mResources.getInteger(com.android.internal.R.integer.config_navBarInteractionMode)) in updateDynamicRawDataToIndex_navigationGestureEnabled_setCorrectIndex() 114 when(mResources.getInteger(com.android.internal.R.integer.config_navBarInteractionMode)) in updateDynamicRawDataToIndex_navigationGestureDisabled_setCorrectIndex()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Config.java | 49 slotViewSpec.rowsLand = r.getInteger(R.integer.albumset_rows_land); in AlbumSetPage() 50 slotViewSpec.rowsPort = r.getInteger(R.integer.albumset_rows_port); in AlbumSetPage() 100 slotViewSpec.rowsLand = r.getInteger(R.integer.album_rows_land); in AlbumPage() 101 slotViewSpec.rowsPort = r.getInteger(R.integer.album_rows_port); in AlbumPage()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | SystemBarConfigs.java | 320 mResources.getInteger(R.integer.config_showDisplayCompatToolbarOnSystemBar); in readConfigs() 337 mResources.getInteger(R.integer.config_topSystemBarType)) in readConfigs() 339 mResources.getInteger(R.integer.config_topSystemBarZOrder)) in readConfigs() 353 mResources.getInteger(R.integer.config_bottomSystemBarType)) in readConfigs() 355 mResources.getInteger( in readConfigs() 370 mResources.getInteger(R.integer.config_leftSystemBarType)) in readConfigs() 372 mResources.getInteger(R.integer.config_leftSystemBarZOrder)) in readConfigs() 386 mResources.getInteger(R.integer.config_rightSystemBarType)) in readConfigs() 387 .setZOrder(mResources.getInteger( in readConfigs() 400 mResources.getInteger(R.integer.config_showDisplayCompatToolbarOnSystemBar); in checkOnlyOneDisplayCompatIsEnabled()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTable.java | 134 mDropPeriod = mResources.getInteger(R.integer.table_drop_period); in PhotoTable() 135 mFastDropPeriod = mResources.getInteger(R.integer.fast_drop); in PhotoTable() 136 mNowDropDelay = mResources.getInteger(R.integer.now_drop); in PhotoTable() 137 mImageRatio = mResources.getInteger(R.integer.image_ratio) / 1000000f; in PhotoTable() 138 mTableRatio = mResources.getInteger(R.integer.table_ratio) / 1000000f; in PhotoTable() 139 mImageRotationLimit = (float) mResources.getInteger(R.integer.max_image_rotation); in PhotoTable() 141 mPickUpDuration = mResources.getInteger(R.integer.photo_pickup_duration); in PhotoTable() 142 mThrowRotation = (float) mResources.getInteger(R.integer.image_throw_rotatioan); in PhotoTable() 143 mTableCapacity = mResources.getInteger(R.integer.table_capacity); in PhotoTable() 144 mRedealCount = mResources.getInteger(R.integer.redeal_count); in PhotoTable() [all …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaskThumbnailCacheTest.java | 64 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(8); in increaseCacheSize() 77 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(3); in decreaseCacheSize() 88 when(mResource.getInteger((R.integer.recentsThumbnailCacheSize))).thenReturn(3); in keepSameCacheSize()
|
/packages/apps/Settings/src/com/android/settings/gestures/ |
D | PowerMenuSettingsUtils.java | 70 context.getResources().getInteger(POWER_BUTTON_LONG_PRESS_DEFAULT_VALUE_RESOURCE)); in isLongPressPowerForAssistantEnabled() 84 context.getResources().getInteger(POWER_BUTTON_LONG_PRESS_DEFAULT_VALUE_RESOURCE); in isLongPressPowerSettingAvailable() 119 .getInteger(KEY_CHORD_POWER_VOLUME_UP_DEFAULT_VALUE_RESOURCE); in setLongPressPowerForPowerMenu()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/ |
D | AudioTrackWrapper.java | 117 int channelCount = format.getInteger(MediaFormat.KEY_CHANNEL_COUNT); in reconfigure() 118 int sampleRate = format.getInteger(MediaFormat.KEY_SAMPLE_RATE); in reconfigure() 121 pcmEncoding = format.getInteger(MediaFormat.KEY_PCM_ENCODING); in reconfigure()
|