Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyConstantsTest.java48 private SmartReplyConstants mConstants; field in SmartReplyConstantsTest
65 mConstants = new SmartReplyConstants(Handler.createAsync(Looper.myLooper()), mContext); in setUp()
75 assertTrue(mConstants.isEnabled()); in testIsEnabledWithNoConfig()
82 assertTrue(mConstants.isEnabled()); in testIsEnabledWithInvalidConfig()
89 assertFalse(mConstants.isEnabled()); in testIsEnabledWithValidConfig()
96 assertEquals(false, mConstants.requiresTargetingP()); in testRequiresTargetingPConfig()
100 assertEquals(true, mConstants.requiresTargetingP()); in testRequiresTargetingPConfig()
105 assertTrue(mConstants.isEnabled()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
106 assertEquals(7, mConstants.getMaxSqueezeRemeasureAttempts()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
114 assertEquals(7, mConstants.getMaxSqueezeRemeasureAttempts()); in testGetMaxSqueezeRemeasureAttemptsWithInvalidConfig()
[all …]
DSmartReplyViewTest.java102 @Mock private SmartReplyConstants mConstants; field in SmartReplyViewTest
117 mDependency.injectTestDependency(SmartReplyConstants.class, mConstants); in setUp()
123 when(mConstants.getMinNumSystemGeneratedReplies()).thenReturn(0); in setUp()
124 when(mConstants.getMaxSqueezeRemeasureAttempts()).thenReturn(3); in setUp()
125 when(mConstants.getMaxNumActions()).thenReturn(-1); in setUp()
127 when(mConstants.getOnClickInitDelay()).thenReturn(0L); in setUp()
216 when(mConstants.getOnClickInitDelay()).thenReturn(100L * 1000L); in testTapSmartReply_beforeInitDelay_blocked()
227 when(mConstants.getOnClickInitDelay()).thenReturn(delayMs); in testTapSmartReply_afterInitDelay_clickReceived()
244 when(mConstants.getOnClickInitDelay()).thenReturn(100L * 1000L); in testTapSmartReply_withoutDelayedOnClickListener_bypassesDelay()
650 when(mConstants.getOnClickInitDelay()).thenReturn(100L * 1000L); in testTapSmartAction_beforeInitDelay_blocked()
[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.java38 private BackupManagerConstants mConstants; field in KeyValueBackupJobTest
46 mConstants = new BackupManagerConstants(Handler.getMain(), mContext.getContentResolver()); in setUp()
47 mConstants.start(); in setUp()
55 mConstants.stop(); in tearDown()
68 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrue()
69 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrue()
77 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalse()
78 KeyValueBackupJob.schedule(mUserTwoId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalse()
88 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterScheduling_returnsTrueOnlyForScheduledUser()
96 KeyValueBackupJob.schedule(mUserOneId, mContext, mConstants); in testIsScheduled_afterCancelling_returnsFalseOnlyForCancelledUser()
[all …]
DFullBackupJobTest.java43 private BackupManagerConstants mConstants; field in FullBackupJobTest
52 mConstants = new BackupManagerConstants(Handler.getMain(), mContext.getContentResolver()); in setUp()
53 mConstants.start(); in setUp()
63 mConstants.stop(); in tearDown()
70 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testSchedule_afterScheduling_jobExists()
71 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testSchedule_afterScheduling_jobExists()
79 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testCancel_afterCancelling_jobDoesntExist()
80 FullBackupJob.schedule(mUserTwoId, mContext, 0, mConstants); in testCancel_afterCancelling_jobDoesntExist()
90 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testSchedule_onlySchedulesForRequestedUser()
98 FullBackupJob.schedule(mUserOneId, mContext, 0, mConstants); in testCancel_onlyCancelsForRequestedUser()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java73 Type mConstants[]; field in Program
90 return mConstants != null ? mConstants.length : 0; in getConstantCount()
101 if (slot < 0 || slot >= mConstants.length) { in getConstant()
104 return mConstants[slot]; in getConstant()
149 if (slot < 0 || slot >= mConstants.length) { in bindConstants()
153 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) { in bindConstants()
211 Type mConstants[]; field in Program.BaseProgramBuilder
232 mConstants = new Type[MAX_CONSTANT]; in BaseProgramBuilder()
329 mConstants[mConstantCount] = t; in addConstant()
371 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/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.java52 private final DevicePolicyConstants mConstants; field in DeviceAdminServiceController
67 mConstants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC, in DevicePolicyServiceConnection()
68 mConstants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE, in DevicePolicyServiceConnection()
69 mConstants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC, in DevicePolicyServiceConnection()
70 mConstants.DAS_DIED_SERVICE_STABLE_CONNECTION_THRESHOLD_SEC); in DevicePolicyServiceConnection()
96 mConstants = constants; in DeviceAdminServiceController()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java89 private Constants mConstants; field in ConnectivityControllerTest
117 mConstants = new Constants(); in setUp()
130 when(mService.getConstants()).thenReturn(mConstants); in setUp()
143 .setLinkDownstreamBandwidthKbps(1), mConstants)); in testInsane()
147 .setLinkDownstreamBandwidthKbps(1024), mConstants)); in testInsane()
164 assertTrue(ConnectivityController.isSatisfied(early, net, caps, mConstants)); in testCongestion()
165 assertTrue(ConnectivityController.isSatisfied(late, net, caps, mConstants)); in testCongestion()
172 assertFalse(ConnectivityController.isSatisfied(early, net, caps, mConstants)); in testCongestion()
173 assertTrue(ConnectivityController.isSatisfied(late, net, caps, mConstants)); in testCongestion()
196 assertTrue(ConnectivityController.isSatisfied(early, net, caps, mConstants)); in testRelaxed()
[all …]
DTimeControllerTest.java74 private TimeController.TcConstants mConstants; field in TimeControllerTest
114 mConstants = mTimeController.getTcConstants(); in setUp()
163 mConstants.SKIP_NOT_READY_JOBS = false; in testMaybeStartTrackingJobLocked_DelayInOrder_NoSkipping()
171 mConstants.SKIP_NOT_READY_JOBS = true; in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_AllReady()
205 mConstants.SKIP_NOT_READY_JOBS = true; in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady()
239 mConstants.SKIP_NOT_READY_JOBS = false; in testMaybeStartTrackingJobLocked_DelayReverseOrder_NoSkipping()
247 mConstants.SKIP_NOT_READY_JOBS = true; in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_AllReady()
283 mConstants.SKIP_NOT_READY_JOBS = true; in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_SomeNotReady()
319 mConstants.SKIP_NOT_READY_JOBS = false; in testMaybeStartTrackingJobLocked_DeadlineInOrder_NoSkipping()
327 mConstants.SKIP_NOT_READY_JOBS = true; in testMaybeStartTrackingJobLocked_DeadlineInOrder_WithSkipping_AllReady()
[all …]
DStateControllerTest.java65 private Constants mConstants; field in StateControllerTest
105 mConstants = new Constants(); in setUp()
110 when(mJobSchedulerService.getConstants()).thenReturn(mConstants); in setUp()
/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/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.cpp193 mConstants.set(128, 8, mSampleRate, mSampleRate); // TODO: set better in AudioResamplerDyn()
352 uint32_t oldPhaseWrapLimit = mConstants.mL << mConstants.mShift; in setSampleRate()
514 mConstants.set(phases, halfLength, inSampleRate, mSampleRate); in setSampleRate()
516 createKaiserFir(mConstants, stopBandAtten, fcr); in setSampleRate()
518 createKaiserFir(mConstants, stopBandAtten, in setSampleRate()
524 const Constants& c(mConstants); in setSampleRate()
628 const Constants& c(mConstants); in resample()
629 const TC* const coefs = mConstants.mFirCoefs; in resample()
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingService.java81 private AppBindingConstants mConstants; field in AppBindingService
153 mConstants = AppBindingConstants.initializeFromString(""); in AppBindingService()
212 if (TextUtils.equals(mConstants.sourceSettings, newSetting)) { in refreshConstants()
216 mConstants = AppBindingConstants.initializeFromString(newSetting); in refreshConstants()
391 final ServiceInfo service = app.findService(userId, mIPackageManager, mConstants); in bindServicesLocked()
400 new AppServiceConnection(mContext, userId, mConstants, mHandler, in bindServicesLocked()
426 private final AppBindingConstants mConstants; field in AppBindingService.AppServiceConnection
438 mConstants = constants; in AppServiceConnection()
443 return mFinder.getBindFlags(mConstants); in getBindFlags()
466 mConstants.dump(" ", pw); in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java672 mConstants.MIN_DEEP_MAINTENANCE_TIME);
675 mConstants.MIN_LIGHT_MAINTENANCE_TIME);
704 >= mConstants.MOTION_INACTIVE_TIMEOUT; in isStationaryLocked()
1354 private Constants mConstants; field in DeviceIdleController
1367 handleMotionDetectedLocked(mConstants.INACTIVE_TIMEOUT, "non_stationary"); in onAnyMotionResult()
1683 long duration = mConstants.MMS_TEMP_APP_WHITELIST_DURATION; in addPowerSaveTempWhitelistAppForMms()
1690 long duration = mConstants.SMS_TEMP_APP_WHITELIST_DURATION; in addPowerSaveTempWhitelistAppForSms()
1796 return mConstants.NOTIFICATION_WHITELIST_DURATION; in getNotificationWhitelistDuration()
1849 private Constants mConstants; field in DeviceIdleController.Injector
1879 if (mConstants == null) { in getConstants()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java114 private DeviceIdleController.Constants mConstants; field in DeviceIdleControllerTest
324 mConstants = mInjector.getConstants(mDeviceIdleController, in setUp()
491 mConstants.WAIT_FOR_UNLOCK = false; in testStateActiveToStateInactive_ConditionsNotMet()
506 mConstants.WAIT_FOR_UNLOCK = true; in testStateActiveToStateInactive_ConditionsNotMet()
1469 mConstants.WAIT_FOR_UNLOCK = true; in testExitNotifiesDependencies_WaitForUnlockOn_KeyguardOn_ScreenThenMotion()
1491 mConstants.WAIT_FOR_UNLOCK = true; in testExitNotifiesDependencies_WaitForUnlockOn_KeyguardOff_ScreenThenMotion()
1509 mConstants.WAIT_FOR_UNLOCK = true; in testExitNotifiesDependencies_WaitForUnlockOn_KeyguardOn_MotionThenScreen()
1548 mConstants.WAIT_FOR_UNLOCK = true; in testExitNotifiesDependencies_WaitForUnlockOn_KeyguardOff_MotionThenScreen()
1579 mConstants.WAIT_FOR_UNLOCK = false; in testExitNotifiesDependencies_WaitForUnlockOff_Screen()
1595 mConstants.WAIT_FOR_UNLOCK = false; in testExitNotifiesDependencies_WaitForUnlockOff_MotionThenScreen()
[all …]
DAlarmManagerServiceTest.java290 assertEquals(0, mService.mConstants.MIN_FUTURITY); in setUp()
291 assertEquals(0, mService.mConstants.MIN_INTERVAL); in setUp()
292 mAppStandbyWindow = mService.mConstants.APP_STANDBY_WINDOW; in setUp()
341 constantsBuilder.append(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[ACTIVE_INDEX]); in setQuotasEnabled()
343 constantsBuilder.append(mService.mConstants.KEYS_APP_STANDBY_QUOTAS[WORKING_INDEX]); in setQuotasEnabled()
351 mService.mConstants.onChange(false, null); in setQuotasEnabled()
352 assertEquals(mService.mConstants.APP_STANDBY_QUOTAS_ENABLED, enabled); in setQuotasEnabled()
428 mService.mConstants.onChange(false, null); in testUpdateConstants()
429 assertEquals(5, mService.mConstants.MIN_FUTURITY); in testUpdateConstants()
430 assertEquals(10, mService.mConstants.MIN_INTERVAL); in testUpdateConstants()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/
DClientMonitor.java66 protected final Constants mConstants; field in ClientMonitor
88 mConstants = constants; in ClientMonitor()
111 return mConstants.logTag(); in getLogTag()
156 if (acquiredInfo == mConstants.acquireVendorCode()) { in blacklistContains()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java299 mConstants.updateConstantsLocked(Settings.Global.getString(mResolver, in updateConstants()
312 if (mConstants.USE_HEARTBEATS) { in updateConstants()
775 final Constants mConstants; field in JobSchedulerService
957 return mConstants; in getConstants()
1311 mConstants = new Constants(); in JobSchedulerService()
1408 if (mConstants.USE_HEARTBEATS) { in onBootPhase()
1580 if (backoffAttempts > mConstants.MAX_WORK_RESCHEDULE_COUNT) { in getRescheduleJobForFailureLocked()
1583 + mConstants.MAX_STANDARD_RESCHEDULE_COUNT); in getRescheduleJobForFailureLocked()
1586 } else if (backoffAttempts > mConstants.MAX_STANDARD_RESCHEDULE_COUNT) { in getRescheduleJobForFailureLocked()
1588 + backoffAttempts + " > std limit " + mConstants.MAX_STANDARD_RESCHEDULE_COUNT); in getRescheduleJobForFailureLocked()
[all …]
DJobConcurrencyManager.java56 private final JobSchedulerService.Constants mConstants; field in JobConcurrencyManager
109 mConstants = service.mConstants; in JobConcurrencyManager()
169 mConstants.SCREEN_OFF_JOB_CONCURRENCY_INCREASE_DELAY_MS.getValue()); in onInteractiveStateChanged()
192 + mConstants.SCREEN_OFF_JOB_CONCURRENCY_INCREASE_DELAY_MS.getValue()) in rampUpForScreenOff()
237 ? mConstants.MAX_JOB_COUNTS_SCREEN_ON in updateMaxCountsLocked()
238 : mConstants.MAX_JOB_COUNTS_SCREEN_OFF; in updateMaxCountsLocked()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DStateController.java44 protected final Constants mConstants; field in StateController
51 mConstants = service.getConstants(); in StateController()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java67 sService.mConstants = new ActivityManagerConstants(sContext, sService, in setUpOnce()
87 assertEquals(USAGE_STATS_INTERACTION, sService.mConstants.USAGE_STATS_INTERACTION_INTERVAL); in setUpProcess()
88 assertEquals(SERVICE_USAGE_INTERACTION, sService.mConstants.SERVICE_USAGE_INTERACTION_TIME); in setUpProcess()

123