Home
last modified time | relevance | path

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

12

/frameworks/base/services/robotests/src/com/android/server/backup/
DBackupManagerConstantsTest.java47 private BackupManagerConstants mConstants; field in BackupManagerConstantsTest
54 mConstants = new BackupManagerConstants(new Handler(), mContentResolver); in setUp()
55 mConstants.start(); in setUp()
60 mConstants.stop(); in tearDown()
66 mConstants.getKeyValueBackupIntervalMilliseconds(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
67 long keyValueBackupFuzzMilliseconds = mConstants.getKeyValueBackupFuzzMilliseconds(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
68 boolean keyValueBackupRequireCharging = mConstants.getKeyValueBackupRequireCharging(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
69 int keyValueBackupRequiredNetworkType = mConstants.getKeyValueBackupRequiredNetworkType(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
70 long fullBackupIntervalMilliseconds = mConstants.getFullBackupIntervalMilliseconds(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
71 boolean fullBackupRequireCharging = mConstants.getFullBackupRequireCharging(); in testGetConstants_afterConstructorWithStart_returnsDefaultValues()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyConstantsTest.java45 private SmartReplyConstants mConstants; field in SmartReplyConstantsTest
54 mConstants = new SmartReplyConstants(Handler.createAsync(Looper.myLooper()), mContext); in setUp()
59 assertTrue(mConstants.isEnabled()); in testIsEnabledWithNoConfig()
66 assertTrue(mConstants.isEnabled()); in testIsEnabledWithInvalidConfig()
73 assertFalse(mConstants.isEnabled()); in testIsEnabledWithValidConfig()
80 assertEquals(false, mConstants.requiresTargetingP()); in testRequiresTargetingPConfig()
84 assertEquals(true, mConstants.requiresTargetingP()); in testRequiresTargetingPConfig()
89 assertTrue(mConstants.isEnabled()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
90 assertEquals(7, mConstants.getMaxSqueezeRemeasureAttempts()); in testGetMaxSqueezeRemeasureAttemptsWithNoConfig()
97 assertEquals(7, mConstants.getMaxSqueezeRemeasureAttempts()); in testGetMaxSqueezeRemeasureAttemptsWithInvalidConfig()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java71 Type mConstants[]; field in Program
88 return mConstants != null ? mConstants.length : 0; in getConstantCount()
99 if (slot < 0 || slot >= mConstants.length) { in getConstant()
102 return mConstants[slot]; in getConstant()
147 if (slot < 0 || slot >= mConstants.length) { in bindConstants()
151 a.getType().getID(mRS) != mConstants[slot].getID(mRS)) { in bindConstants()
205 Type mConstants[]; field in Program.BaseProgramBuilder
220 mConstants = new Type[MAX_CONSTANT]; in BaseProgramBuilder()
317 mConstants[mConstantCount] = t; in addConstant()
359 p.mConstants = new Type[mConstantCount]; in initProgram()
[all …]
DProgramFragment.java79 tmp[idx++] = mConstants[i].getID(mRS); in create()
DProgramVertex.java139 tmp[idx++] = mConstants[i].getID(mRS); in create()
DProgramFragmentFixedFunction.java66 tmp[idx++] = mConstants[i].getID(mRS); in create()
DProgramVertexFixedFunction.java92 tmp[idx++] = mConstants[i].getID(mRS); in create()
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java35 private final HealthKeys.Constants mConstants; field in HealthStatsWriter
63 mConstants = constants; in HealthStatsWriter()
93 final int index = mConstants.getIndex(HealthKeys.TYPE_TIMER, timerId); in addTimer()
104 final int index = mConstants.getIndex(HealthKeys.TYPE_MEASUREMENT, measurementId); in addMeasurement()
118 final int index = mConstants.getIndex(HealthKeys.TYPE_STATS, key); in addStats()
133 final int index = mConstants.getIndex(HealthKeys.TYPE_TIMERS, key); in addTimers()
146 final int index = mConstants.getIndex(HealthKeys.TYPE_MEASUREMENTS, key); in addMeasurements()
167 out.writeString(mConstants.getDataType()); in flattenToParcel()
171 keys = mConstants.getKeys(HealthKeys.TYPE_TIMER); in flattenToParcel()
182 keys = mConstants.getKeys(HealthKeys.TYPE_MEASUREMENT); in flattenToParcel()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java72 private Constants mConstants; field in ConnectivityControllerTest
95 mConstants = new Constants(); in setUp()
108 when(mService.getConstants()).thenReturn(mConstants); in setUp()
121 .setLinkDownstreamBandwidthKbps(1), mConstants)); in testInsane()
125 .setLinkDownstreamBandwidthKbps(1024), mConstants)); in testInsane()
142 assertTrue(ConnectivityController.isSatisfied(early, net, caps, mConstants)); in testCongestion()
143 assertTrue(ConnectivityController.isSatisfied(late, net, caps, mConstants)); in testCongestion()
150 assertFalse(ConnectivityController.isSatisfied(early, net, caps, mConstants)); in testCongestion()
151 assertTrue(ConnectivityController.isSatisfied(late, net, caps, mConstants)); in testCongestion()
174 assertTrue(ConnectivityController.isSatisfied(early, net, caps, mConstants)); in testRelaxed()
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioResamplerDyn.h60 return mConstants.mHalfNumCoefs; in getHalfLength()
64 return mConstants.mFirCoefs; in getFilterCoefs()
68 return mConstants.mL; in getPhases()
159 Constants mConstants; // current set of coefficient parameters variable
DAudioResamplerDyn.cpp193 mConstants.set(128, 8, mSampleRate, mSampleRate); // TODO: set better in AudioResamplerDyn()
350 uint32_t oldPhaseWrapLimit = mConstants.mL << mConstants.mShift; in setSampleRate()
460 mConstants.set(phases, halfLength, inSampleRate, mSampleRate); in setSampleRate()
462 createKaiserFir(mConstants, stopBandAtten, fcr); in setSampleRate()
464 createKaiserFir(mConstants, stopBandAtten, in setSampleRate()
470 const Constants& c(mConstants); in setSampleRate()
574 const Constants& c(mConstants); in resample()
575 const TC* const coefs = mConstants.mFirCoefs; in resample()
DAudioResamplerSinc.cpp240 mConstants = (quality == VERY_HIGH_QUALITY) ? in AudioResamplerSinc()
250 const Constants& c(*mConstants); in init()
273 if (mConstants == &veryHighQualityConstants && readResampleCoefficients) { in resample()
297 const Constants& c(*mConstants); in resample()
386 const Constants& c(*mConstants); in read()
410 const Constants& c(*mConstants); in filterCoefficient()
DAudioResamplerSinc.h92 const Constants *mConstants; // points to appropriate set of coefficient parameters variable
/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 …]
DrsProgram.h76 ObjectBaseRef<Allocation> *mConstants; variable
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDeviceAdminServiceController.java56 private final DevicePolicyConstants mConstants; field in DeviceAdminServiceController
71 mConstants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC, in DevicePolicyServiceConnection()
72 mConstants.DAS_DIED_SERVICE_RECONNECT_BACKOFF_INCREASE, in DevicePolicyServiceConnection()
73 mConstants.DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC); in DevicePolicyServiceConnection()
94 mConstants = constants; in DeviceAdminServiceController()
/frameworks/base/services/core/java/com/android/server/
DDeviceIdleController.java407 mConstants.MIN_DEEP_MAINTENANCE_TIME);
410 mConstants.MIN_LIGHT_MAINTENANCE_TIME);
987 private Constants mConstants; field in DeviceIdleController
1000 handleMotionDetectedLocked(mConstants.INACTIVE_TIMEOUT, "non_stationary"); in onAnyMotionResult()
1271 long duration = mConstants.MMS_TEMP_APP_WHITELIST_DURATION; in addPowerSaveTempWhitelistAppForMms()
1278 long duration = mConstants.SMS_TEMP_APP_WHITELIST_DURATION; in addPowerSaveTempWhitelistAppForSms()
1330 return mConstants.NOTIFICATION_WHITELIST_DURATION; in getNotificationWhitelistDuration()
1436 mConstants = new Constants(mHandler, getContext().getContentResolver()); in onStart()
1449 mInactiveTimeout = mConstants.INACTIVE_TIMEOUT; in onStart()
1854 duration = Math.min(duration, mConstants.MAX_TEMP_APP_WHITELIST_DURATION); in addPowerSaveTempWhitelistAppDirectInternal()
[all …]
DAlarmManagerService.java458 final Constants mConstants; field in AlarmManagerService
738 mConstants = new Constants(mHandler); in AlarmManagerService()
1363 mConstants.start(getContext().getContentResolver()); in onBootPhase()
1465 final long minInterval = mConstants.MIN_INTERVAL; in setImpl()
1471 } else if (interval > mConstants.MAX_INTERVAL) { in setImpl()
1474 interval = mConstants.MAX_INTERVAL; in setImpl()
1491 final long minTrigger = nowElapsed + mConstants.MIN_FUTURITY; in setImpl()
1554 return mConstants.APP_STANDBY_MIN_DELAYS[index]; in getMinDelayForBucketLocked()
1869 mConstants.dump(pw); in dumpImpl()
2246 mConstants.dumpProto(proto, AlarmManagerServiceDumpProto.SETTINGS); in dumpProto()
[all …]
/frameworks/base/services/core/java/com/android/server/job/controllers/
DStateController.java39 protected final Constants mConstants; field in StateController
46 mConstants = service.getConstants(); in StateController()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java308 mConstants.updateConstantsLocked(Settings.Global.getString(mResolver, in updateConstants()
635 final Constants mConstants; field in JobSchedulerService
798 return mConstants; in getConstants()
1122 mConstants = new Constants(); in JobSchedulerService()
1369 if (backoffAttempts > mConstants.MAX_WORK_RESCHEDULE_COUNT) { in getRescheduleJobForFailureLocked()
1372 + mConstants.MAX_STANDARD_RESCHEDULE_COUNT); in getRescheduleJobForFailureLocked()
1375 } else if (backoffAttempts > mConstants.MAX_STANDARD_RESCHEDULE_COUNT) { in getRescheduleJobForFailureLocked()
1377 + backoffAttempts + " > std limit " + mConstants.MAX_STANDARD_RESCHEDULE_COUNT); in getRescheduleJobForFailureLocked()
1384 if (backoff < mConstants.MIN_LINEAR_BACKOFF_TIME) { in getRescheduleJobForFailureLocked()
1385 backoff = mConstants.MIN_LINEAR_BACKOFF_TIME; in getRescheduleJobForFailureLocked()
[all …]
/frameworks/rs/script_api/
DSpecification.cpp857 for (auto i : mConstants) { in ~SystemSpecification()
886 return findOrCreate<Constant>(name, &mConstants, created); in findOrCreateConstant()
918 for (auto i : mConstants) { in getMaximumApiLevel()
942 cout << "Successfully processed " << mTypes.size() << " types, " << mConstants.size() in generateFiles()
950 auto c = mConstants.find(name); in getHtmlAnchor()
951 if (c != mConstants.end()) { in getHtmlAnchor()
DSpecification.h581 std::map<std::string, Constant*> mConstants; variable
603 const std::map<std::string, Constant*>& getConstants() const { return mConstants; } in getConstants()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java227 private BackupManagerConstants mConstants; field in BackupManagerService
309 return mConstants; in getConstants()
855 mConstants = new BackupManagerConstants(mBackupHandler, mContext.getContentResolver()); in BackupManagerService()
859 mConstants.start(); in BackupManagerService()
1435 for (String receiver : mConstants.getBackupFinishedNotificationReceivers()) { in logBackupComplete()
1706 KeyValueBackupJob.schedule(mContext, BUSY_BACKOFF_MIN_MILLIS, mConstants); in cancelBackups()
1707 FullBackupJob.schedule(mContext, 2 * BUSY_BACKOFF_MIN_MILLIS, mConstants); in cancelBackups()
1919 final long interval = mConstants.getFullBackupIntervalMilliseconds(); in scheduleNextFullBackupJob()
1925 FullBackupJob.schedule(mContext, latency, mConstants); in scheduleNextFullBackupJob()
2025 synchronized (mConstants) { in beginFullBackup()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java57 private final SmartReplyConstants mConstants; field in SmartReplyView
103 mConstants = Dependency.get(SmartReplyConstants.class); in SmartReplyView()
415 final int maxSqueezeRemeasureAttempts = mConstants.getMaxSqueezeRemeasureAttempts(); in estimateOptimalSqueezedButtonTextWidth()

12