Home
last modified time | relevance | path

Searched refs:mConstants (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyConstantsTest.java46 private SmartReplyConstants mConstants; field in SmartReplyConstantsTest
66 mConstants = new SmartReplyConstants( in setUp()
75 assertTrue(mConstants.isEnabled()); in testIsEnabledWithNoConfig()
81 assertTrue(mConstants.isEnabled()); in testIsEnabledWithInvalidConfig()
87 assertFalse(mConstants.isEnabled()); in testIsEnabledWithValidConfig()
93 assertEquals(false, mConstants.requiresTargetingP()); in testRequiresTargetingPConfig()
96 assertEquals(true, mConstants.requiresTargetingP()); in testRequiresTargetingPConfig()
101 assertTrue(mConstants.isEnabled()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
102 assertEquals(7, mConstants.getMaxSqueezeRemeasureAttempts()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
109 assertEquals(7, mConstants.getMaxSqueezeRemeasureAttempts()); in testGetMaxSqueezeRemeasureAttemptsWithInvalidConfig()
[all …]
DSmartReplyViewTest.java114 @Mock private SmartReplyConstants mConstants; field in SmartReplyViewTest
133 mDependency.injectTestDependency(SmartReplyConstants.class, mConstants); in setUp()
139 when(mConstants.getMinNumSystemGeneratedReplies()).thenReturn(0); in setUp()
140 when(mConstants.getMaxSqueezeRemeasureAttempts()).thenReturn(3); in setUp()
141 when(mConstants.getMaxNumActions()).thenReturn(-1); in setUp()
143 when(mConstants.getOnClickInitDelay()).thenReturn(0L); in setUp()
146 mView = SmartReplyView.inflate(mContext, mConstants); in setUp()
170 mConstants, in setUp()
176 mConstants, in setUp()
206 mConstants, in testSendSmartReply_keyguardCancelled()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerConstantsTest.java41 private BackupManagerConstants mConstants; field in BackupManagerConstantsTest
48 mConstants = new BackupManagerConstants(new Handler(), mContentResolver); in setUp()
49 mConstants.start(); in setUp()
54 mConstants.stop(); in tearDown()
60 mConstants.getKeyValueBackupIntervalMilliseconds(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
61 long keyValueBackupFuzzMilliseconds = mConstants.getKeyValueBackupFuzzMilliseconds(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
62 boolean keyValueBackupRequireCharging = mConstants.getKeyValueBackupRequireCharging(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
63 int keyValueBackupRequiredNetworkType = mConstants.getKeyValueBackupRequiredNetworkType(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
64 long fullBackupIntervalMilliseconds = mConstants.getFullBackupIntervalMilliseconds(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
65 boolean fullBackupRequireCharging = mConstants.getFullBackupRequireCharging(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
[all …]
DKeyValueBackupJobTest.java46 private BackupManagerConstants mConstants; field in KeyValueBackupJobTest
58 mConstants = new BackupManagerConstants(Handler.getMain(), mContext.getContentResolver()); in setUp()
59 mConstants.start(); in setUp()
60 when(mUserBackupManagerService.getConstants()).thenReturn(mConstants); in setUp()
69 mConstants.stop(); in tearDown()
DFullBackupJobTest.java54 private BackupManagerConstants mConstants; field in FullBackupJobTest
67 mConstants = new BackupManagerConstants(Handler.getMain(), mContext.getContentResolver()); in setUp()
68 mConstants.start(); in setUp()
69 when(mUserBackupManagerService.getConstants()).thenReturn(mConstants); in setUp()
80 mConstants.stop(); in tearDown()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowManagerConstantsTest.java49 WindowManagerConstants mConstants; field in WindowManagerConstantsTest
58 mConstants = new WindowManagerConstants(new WindowManagerGlobalLock(), in setUp()
75 mConstants.start(mExecutor); in test_constantsAreLoaded_initially()
77 assertEquals(400, mConstants.mSystemGestureExclusionLimitDp); in test_constantsAreLoaded_initially()
78 assertTrue(mConstants.mSystemGestureExcludedByPreQStickyImmersive); in test_constantsAreLoaded_initially()
79 assertEquals(10000, mConstants.mSystemGestureExclusionLogDebounceTimeoutMillis); in test_constantsAreLoaded_initially()
84 mConstants.start(mExecutor); in test_constantsAreLoaded_afterChange()
93 assertEquals(400, mConstants.mSystemGestureExclusionLimitDp); in test_constantsAreLoaded_afterChange()
94 assertTrue(mConstants.mSystemGestureExcludedByPreQStickyImmersive); in test_constantsAreLoaded_afterChange()
95 assertEquals(10000, mConstants.mSystemGestureExclusionLogDebounceTimeoutMillis); in test_constantsAreLoaded_afterChange()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java307 mService.mConstants.RUNTIME_MIN_GUARANTEE_MS = 10 * MINUTE_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
308 mService.mConstants.RUNTIME_MIN_UI_GUARANTEE_MS = 2 * HOUR_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
309 mService.mConstants.RUNTIME_MIN_UI_DATA_TRANSFER_GUARANTEE_BUFFER_FACTOR = 1.5f; in testGetMinJobExecutionGuaranteeMs()
310 mService.mConstants.RUNTIME_MIN_UI_DATA_TRANSFER_GUARANTEE_MS = HOUR_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
311 mService.mConstants.RUNTIME_UI_LIMIT_MS = 6 * HOUR_IN_MILLIS; in testGetMinJobExecutionGuaranteeMs()
313 assertEquals(mService.mConstants.RUNTIME_MIN_EJ_GUARANTEE_MS, in testGetMinJobExecutionGuaranteeMs()
315 assertEquals(mService.mConstants.RUNTIME_MIN_EJ_GUARANTEE_MS, in testGetMinJobExecutionGuaranteeMs()
317 assertEquals(mService.mConstants.RUNTIME_MIN_GUARANTEE_MS, in testGetMinJobExecutionGuaranteeMs()
319 assertEquals(mService.mConstants.RUNTIME_MIN_GUARANTEE_MS, in testGetMinJobExecutionGuaranteeMs()
321 assertEquals(mService.mConstants.RUNTIME_MIN_GUARANTEE_MS, in testGetMinJobExecutionGuaranteeMs()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java130 private Constants mConstants; field in ConnectivityControllerTest
165 mConstants = new Constants(); in setUp()
178 when(mService.getConstants()).thenReturn(mConstants); in setUp()
210 .setLinkDownstreamBandwidthKbps(1).build(), mConstants)); in testUsable()
213 .setLinkDownstreamBandwidthKbps(1).build(), mConstants)); in testUsable()
217 .setLinkDownstreamBandwidthKbps(1).build(), mConstants)); in testUsable()
220 .setLinkDownstreamBandwidthKbps(1).build(), mConstants)); in testUsable()
224 .setLinkDownstreamBandwidthKbps(1024).build(), mConstants)); in testUsable()
227 .setLinkDownstreamBandwidthKbps(1024).build(), mConstants)); in testUsable()
231 .setLinkDownstreamBandwidthKbps(5).build(), mConstants)); in testUsable()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java77 Type mConstants[]; field in Program
94 return mConstants != null ? mConstants.length : 0; in getConstantCount()
105 if (slot < 0 || slot >= mConstants.length) { in getConstant()
108 return mConstants[slot]; in getConstant()
153 if (slot < 0 || slot >= mConstants.length) { in bindConstants()
157 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) { in bindConstants()
215 Type mConstants[]; field in Program.BaseProgramBuilder
236 mConstants = new Type[MAX_CONSTANT]; in BaseProgramBuilder()
333 mConstants[mConstantCount] = t; in addConstant()
375 p.mConstants = new Type[mConstantCount]; in initProgram()
[all …]
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java37 private final HealthKeys.Constants mConstants; field in HealthStatsWriter
65 mConstants = constants; in HealthStatsWriter()
95 final int index = mConstants.getIndex(HealthKeys.TYPE_TIMER, timerId); in addTimer()
106 final int index = mConstants.getIndex(HealthKeys.TYPE_MEASUREMENT, measurementId); in addMeasurement()
120 final int index = mConstants.getIndex(HealthKeys.TYPE_STATS, key); in addStats()
135 final int index = mConstants.getIndex(HealthKeys.TYPE_TIMERS, key); in addTimers()
148 final int index = mConstants.getIndex(HealthKeys.TYPE_MEASUREMENTS, key); in addMeasurements()
169 out.writeString(mConstants.getDataType()); in flattenToParcel()
173 keys = mConstants.getKeys(HealthKeys.TYPE_TIMER); in flattenToParcel()
184 keys = mConstants.getKeys(HealthKeys.TYPE_MEASUREMENT); in flattenToParcel()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjusterDebugLogger.java29 private final ActivityManagerConstants mConstants; field in OomAdjusterDebugLogger
40 mConstants = constants; in OomAdjusterDebugLogger()
44 return mConstants.shouldDebugUidForProcState(uid); in shouldLog()
48 if (!mConstants.mEnableProcStateStacktrace) { in maybeLogStacktrace()
72 maybeSleep(mConstants.mProcStateDebugSetUidStateDelay); in logUidStateChanged()
81 maybeSleep(mConstants.mProcStateDebugSetProcStateDelay); in logProcStateChanged()
DOomAdjuster.java335 ActivityManagerConstants mConstants; field in OomAdjuster
488 mConstants = mService.mConstants; in OomAdjuster()
492 mLogger = new OomAdjusterDebugLogger(this, mService.mConstants); in OomAdjuster()
520 mTmpQueue = new ArrayDeque<ProcessRecord>(mConstants.CUR_MAX_CACHED_PROCESSES << 1); in OomAdjuster()
528 if (mService.mConstants.KEEP_WARMING_SERVICES.size() > 0) { in initSettings()
553 final ArraySet<ComponentName> warmServices = mService.mConstants.KEEP_WARMING_SERVICES; in updateKeepWarmIfNecessaryForProcessLocked()
624 if (app == null || !mConstants.OOMADJ_UPDATE_QUICK) { in updateOomAdjLSP()
978 final long oldTime = now - mConstants.mMaxEmptyTimeMillis; in updateOomAdjInnerLSP()
1127 if (mConstants.USE_TIERED_CACHED_ADJ) { in assignCachedAdjIfNecessary()
1143 + mConstants.TIERED_CACHED_ADJ_DECAY_TIME) < now) { in assignCachedAdjIfNecessary()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java122 private DeviceIdleController.Constants mConstants; field in DeviceIdleControllerTest
374 mConstants = mInjector.getConstants(mDeviceIdleController, in setupDeviceIdleController()
555 mConstants.WAIT_FOR_UNLOCK = false; in testStateActiveToStateInactive_ConditionsNotMet()
570 mConstants.WAIT_FOR_UNLOCK = true; in testStateActiveToStateInactive_ConditionsNotMet()
638 verify(mDeviceIdleController).scheduleAlarmLocked(eq(mConstants.INACTIVE_TIMEOUT)); in testStateActiveToStateInactive_ConditionsMet()
656 verify(mDeviceIdleController).scheduleAlarmLocked(eq(mConstants.INACTIVE_TIMEOUT)); in testStateActiveToStateInactive_DoNotUseMotionSensor()
681 verify(mDeviceIdleController).scheduleAlarmLocked(eq(mConstants.INACTIVE_TIMEOUT)); in testStateActiveToStateInactive_MissingMotionSensor()
695 final long timeUntilAlarm = mConstants.MIN_TIME_TO_ALARM / 2; in testStateActiveToStateInactive_UpcomingAlarm()
710 .scheduleAlarmLocked(eq(timeUntilAlarm + mConstants.INACTIVE_TIMEOUT)); in testStateActiveToStateInactive_UpcomingAlarm()
720 eq(timeUntilAlarm + mConstants.QUICK_DOZE_DELAY_TIMEOUT)); in testStateActiveToStateInactive_UpcomingAlarm()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java45 private DevicePolicyConstants mConstants; field in UpdateInstaller
60 mConstants = constants; in UpdateInstaller()
71 + mConstants.BATTERY_THRESHOLD_NOT_CHARGING + " while not charging or " in startInstallUpdate()
72 + "above " + mConstants.BATTERY_THRESHOLD_CHARGING + " while charging"); in startInstallUpdate()
96 ? batteryPercentage >= mConstants.BATTERY_THRESHOLD_CHARGING in isBatteryLevelSufficient()
97 : batteryPercentage >= mConstants.BATTERY_THRESHOLD_NOT_CHARGING; in isBatteryLevelSufficient()
DDeviceAdminServiceController.java53 private final DevicePolicyConstants mConstants; field in DeviceAdminServiceController
61 mConstants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC, in DevicePolicyServiceConnection()
62 mConstants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE, in DevicePolicyServiceConnection()
63 mConstants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC, in DevicePolicyServiceConnection()
64 mConstants.DAS_DIED_SERVICE_STABLE_CONNECTION_THRESHOLD_SEC); in DevicePolicyServiceConnection()
90 mConstants = constants; in DeviceAdminServiceController()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerDyn.h65 return mConstants.mHalfNumCoefs; in getHalfLength()
69 return mConstants.mFirCoefs; in getFilterCoefs()
73 return mConstants.mL; in getPhases()
164 Constants mConstants; // current set of coefficient parameters variable
DAudioResamplerDyn.cpp192 mConstants.set(128, 8, mSampleRate, mSampleRate); // TODO: set better in AudioResamplerDyn()
351 uint32_t oldPhaseWrapLimit = mConstants.mL << mConstants.mShift; in setSampleRate()
513 mConstants.set(phases, halfLength, inSampleRate, mSampleRate); in setSampleRate()
515 createKaiserFir(mConstants, stopBandAtten, fcr); in setSampleRate()
517 createKaiserFir(mConstants, stopBandAtten, in setSampleRate()
523 const Constants& c(mConstants); in setSampleRate()
639 const Constants& c(mConstants); in resample()
640 const TC* const coefs = mConstants.mFirCoefs; in resample()
/frameworks/rs/
DrsProgram.cpp46 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; in Program()
94 delete[] mConstants; in ~Program()
144 mConstants = nullptr; in initMemberVars()
167 if (mConstants[slot].get() == alloc) { in bindAllocation()
170 if (mConstants[slot].get()) { in bindAllocation()
171 mConstants[slot]->removeProgramToDirty(this); in bindAllocation()
173 mConstants[slot].set(alloc); in bindAllocation()
DrsFont.cpp652 mFontShaderFConstant->data(mRSC, 0, 0, 1, &mConstants, sizeof(mConstants)); in issueDrawCommand()
790 mConstants.mFontColor[0] = r; in setFontColor()
791 mConstants.mFontColor[1] = g; in setFontColor()
792 mConstants.mFontColor[2] = b; in setFontColor()
793 mConstants.mFontColor[3] = a; in setFontColor()
795 mConstants.mGamma = 1.0f; in setFontColor()
798 mConstants.mGamma = mBlackGamma; in setFontColor()
800 mConstants.mGamma = mWhiteGamma; in setFontColor()
807 *r = mConstants.mFontColor[0]; in getFontColor()
808 *g = mConstants.mFontColor[1]; in getFontColor()
[all …]
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingService.java82 private AppBindingConstants mConstants; field in AppBindingService
154 mConstants = AppBindingConstants.initializeFromString(""); in AppBindingService()
214 if (TextUtils.equals(mConstants.sourceSettings, newSetting)) { in refreshConstants()
218 mConstants = AppBindingConstants.initializeFromString(newSetting); in refreshConstants()
396 final ServiceInfo service = app.findService(userId, mIPackageManager, mConstants); in bindServicesLocked()
405 new AppServiceConnection(mContext, userId, mConstants, mHandler, in bindServicesLocked()
431 private final AppBindingConstants mConstants; field in AppBindingService.AppServiceConnection
443 mConstants = constants; in AppServiceConnection()
448 return mFinder.getBindFlags(mConstants); in getBindFlags()
471 mConstants.dump(" ", pw); in dump()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActiveServicesTest.java92 final long btwn = mService.mConstants.SERVICE_MIN_RESTART_TIME_BETWEEN; in testRescheduleServiceRestartsOnChanges()
105 long extra = mService.mConstants.mExtraServiceRestartDelayOnMemPressure[memFactor]; in testRescheduleServiceRestartsOnChanges()
125 extra = mService.mConstants.mExtraServiceRestartDelayOnMemPressure[memFactor]; in testRescheduleServiceRestartsOnChanges()
136 extra = mService.mConstants.mExtraServiceRestartDelayOnMemPressure[memFactor]; in testRescheduleServiceRestartsOnChanges()
147 extra = mService.mConstants.mExtraServiceRestartDelayOnMemPressure[memFactor]; in testRescheduleServiceRestartsOnChanges()
161 final long btwn = mService.mConstants.SERVICE_MIN_RESTART_TIME_BETWEEN; in testRescheduleServiceRestartsOnOtherChanges()
169 long extra = mService.mConstants.mExtraServiceRestartDelayOnMemPressure[memFactor]; in testRescheduleServiceRestartsOnOtherChanges()
192 extra = mService.mConstants.mExtraServiceRestartDelayOnMemPressure[memFactor]; in testRescheduleServiceRestartsOnOtherChanges()
303 mService.mConstants = mock(ActivityManagerConstants.class); in prepareTestRescheduleServiceRestarts()
304 mService.mConstants.mEnableExtraServiceRestartDelayOnMemPressure = true; in prepareTestRescheduleServiceRestarts()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DDeviceIdleController.java761 mConstants.MIN_DEEP_MAINTENANCE_TIME);
764 mConstants.MIN_LIGHT_MAINTENANCE_TIME);
796 >= mConstants.MOTION_INACTIVE_TIMEOUT; in isStationaryLocked()
1905 private Constants mConstants; field in DeviceIdleController
1916 handleMotionDetectedLocked(mConstants.INACTIVE_TIMEOUT, "non_stationary"); in onAnyMotionResult()
2259 long durationMs = Math.max(10_000L, mConstants.MAX_TEMP_APP_ALLOWLIST_DURATION_MS / 2); in whitelistAppTemporarily()
2273 long durationMs = mConstants.MMS_TEMP_APP_ALLOWLIST_DURATION_MS; in addPowerSaveTempWhitelistAppForMms()
2281 long durationMs = mConstants.SMS_TEMP_APP_ALLOWLIST_DURATION_MS; in addPowerSaveTempWhitelistAppForSms()
2360 return mConstants.NOTIFICATION_ALLOWLIST_DURATION_MS; in getNotificationAllowlistDuration()
2469 private Constants mConstants; field in DeviceIdleController.Injector
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMockBatteryStatsImpl.java249 mConstants.MAX_HISTORY_FILES = maxHistoryFiles; in setMaxHistoryFiles()
250 mConstants.onChange(); in setMaxHistoryFiles()
256 mConstants.MAX_HISTORY_BUFFER = maxHistoryBuffer; in setMaxHistoryBuffer()
257 mConstants.onChange(); in setMaxHistoryBuffer()
263 mConstants.PER_UID_MODEM_MODEL = perUidModemModel; in setPerUidModemModel()
264 mConstants.onChange(); in setPerUidModemModel()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java557 mConstants.updateApiQuotaConstantsLocked();
566 mConstants.updateBatchingConstantsLocked();
570 mConstants.updateUseFactorConstantsLocked();
575 mConstants.updateBackoffConstantsLocked();
584 mConstants.updateConnectivityConstantsLocked();
587 mConstants.updatePrefetchConstantsLocked();
599 mConstants.updateRuntimeConstantsLocked();
606 mConstants.updatePersistingConstantsLocked();
607 mJobs.setUseSplitFiles(mConstants.PERSIST_IN_SPLIT_FILES);
639 mConstants.ENABLE_API_QUOTAS || mConstants.ENABLE_EXECUTION_SAFEGUARDS_UDC);
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java539 mAppStandbyWindow = mService.mConstants.APP_STANDBY_WINDOW; in setUp()
540 mAllowWhileIdleWindow = mService.mConstants.ALLOW_WHILE_IDLE_WINDOW; in setUp()
693 mService.mConstants.onPropertiesChanged(mDeviceConfigProperties);
699 mService.mConstants.onPropertiesChanged(mDeviceConfigProperties);
705 mService.mConstants.onPropertiesChanged(mDeviceConfigProperties);
711 mService.mConstants.onPropertiesChanged(mDeviceConfigProperties);
721 mDeviceConfigKeys.add(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[ACTIVE_INDEX]);
722 mDeviceConfigKeys.add(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[WORKING_INDEX]);
723 mDeviceConfigKeys.add(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[FREQUENT_INDEX]);
725 .getInt(eq(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[ACTIVE_INDEX]), anyInt());
[all …]

1234