Home
last modified time | relevance | path

Searched refs:bias (Results 1 – 22 of 22) sorted by relevance

/frameworks/av/media/libheadtracking/
DPoseBias-test.cpp32 PoseBias bias; in TEST() local
33 EXPECT_EQ(bias.getOutput(), Pose3f()); in TEST()
40 PoseBias bias; in TEST() local
41 bias.setInput(pose1); in TEST()
42 EXPECT_EQ(pose1, bias.getOutput()); in TEST()
43 bias.recenter(); in TEST()
44 EXPECT_EQ(bias.getOutput(), Pose3f()); in TEST()
45 bias.setInput(pose2); in TEST()
46 EXPECT_EQ(bias.getOutput(), pose1.inverse() * pose2); in TEST()
47 bias.recenter(); in TEST()
[all …]
/frameworks/native/services/sensorservice/
DCorrectedGyroSensor.cpp59 const vec3_t bias(mSensorFusion.getGyroBias()); in process() local
61 outEvent->data[0] -= bias.x; in process()
62 outEvent->data[1] -= bias.y; in process()
63 outEvent->data[2] -= bias.z; in process()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/restrictions/
DThermalStatusRestriction.java89 public boolean isJobRestricted(JobStatus job, int bias) { in isJobRestricted() argument
91 if (bias >= JobInfo.BIAS_TOP_APP) { in isJobRestricted()
96 if (bias >= JobInfo.BIAS_FOREGROUND_SERVICE) { in isJobRestricted()
126 if (bias >= JobInfo.BIAS_FOREGROUND_SERVICE in isJobRestricted()
141 if (bias >= JobInfo.BIAS_FOREGROUND_SERVICE) { in isJobRestricted()
DJobRestriction.java69 public abstract boolean isJobRestricted(JobStatus job, int bias); in isJobRestricted() argument
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceController.java519 float bias = lowLightAmbientBrightnessToBiasSpline.interpolate(ambientBrightness); in updateAmbientColorTemperature() local
521 bias * ambientColorTemperature + (1.0f - bias) in updateAmbientColorTemperature()
523 mLatestLowLightBias = bias; in updateAmbientColorTemperature()
527 float bias = highLightAmbientBrightnessToBiasSpline.interpolate(ambientBrightness); in updateAmbientColorTemperature() local
529 (1.0f - bias) * ambientColorTemperature + bias in updateAmbientColorTemperature()
531 mLatestHighLightBias = bias; in updateAmbientColorTemperature()
/frameworks/native/libs/gui/
DCompositorTiming.cpp44 const nsecs_t bias = vsyncPeriod / 2; in CompositorTiming() local
45 const nsecs_t extraVsyncs = (presentLatency - idealLatency + bias) / vsyncPeriod; in CompositorTiming()
/frameworks/base/core/java/android/timezone/
DCountryTimeZones.java222 public OffsetResult lookupByOffsetWithBias(long whenMillis, @Nullable TimeZone bias, in lookupByOffsetWithBias() argument
226 whenMillis, bias, totalOffsetMillis, isDst); in lookupByOffsetWithBias()
245 public OffsetResult lookupByOffsetWithBias(long whenMillis, @Nullable TimeZone bias, in lookupByOffsetWithBias() argument
248 mDelegate.lookupByOffsetWithBias(whenMillis, bias, totalOffsetMillis); in lookupByOffsetWithBias()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncPredictorTest.cpp62 std::vector<nsecs_t> generateVsyncTimestamps(size_t count, nsecs_t period, nsecs_t bias) { in generateVsyncTimestamps() argument
65 [&, n = 0]() mutable { return n++ * period + bias; }); in generateVsyncTimestamps()
157 auto const bias = 10; in TEST_F() local
160 mNow += mPeriod - bias; in TEST_F()
163 mNow += bias; in TEST_F()
166 EXPECT_THAT(tracker.nextAnticipatedVSyncTimeFrom(mNow), Eq(mNow + mPeriod - bias)); in TEST_F()
167 EXPECT_THAT(tracker.nextAnticipatedVSyncTimeFrom(mNow + 100), Eq(mNow + mPeriod - bias)); in TEST_F()
168 EXPECT_THAT(tracker.nextAnticipatedVSyncTimeFrom(mNow + 990), Eq(mNow + 2 * mPeriod - bias)); in TEST_F()
511 auto const bias = 10; in TEST_F() local
514 mNow += mPeriod - bias; in TEST_F()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/whitebalance/
DAmbientLuxTest.java244 float bias = mix(bias0, bias1, t); in testSpline_TwoSegments() local
246 mix(LOW_LIGHT_AMBIENT_COLOR_TEMPERATURE, ambientColorTemperature, bias), 0.001); in testSpline_TwoSegments()
252 float bias = mix(bias1, bias2, t); in testSpline_TwoSegments() local
254 mix(LOW_LIGHT_AMBIENT_COLOR_TEMPERATURE, ambientColorTemperature, bias), 0.001); in testSpline_TwoSegments()
371 float bias = mix(bias0, bias1, t); in testSpline_TwoSegmentsHighLight() local
373 mix(HIGH_LIGHT_AMBIENT_COLOR_TEMPERATURE, ambientColorTemperature, 1.0f - bias), in testSpline_TwoSegmentsHighLight()
380 float bias = mix(bias1, bias2, t); in testSpline_TwoSegmentsHighLight() local
382 mix(HIGH_LIGHT_AMBIENT_COLOR_TEMPERATURE, ambientColorTemperature, 1.0f - bias), in testSpline_TwoSegmentsHighLight()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneLookupHelper.java135 TimeZone bias = TimeZone.getDefault(); in lookupByNitzCountry() local
144 nitzData.getCurrentTimeInMillis(), bias, nitzData.getLocalOffsetMillis()); in lookupByNitzCountry()
151 nitzData.getCurrentTimeInMillis(), bias, in lookupByNitzCountry()
/frameworks/native/include/android/
Dsensor.h476 float bias[3]; member
569 float bias[3]; member
/frameworks/native/include_sensor/android/
Dsensor.h476 float bias[3]; member
569 float bias[3]; member
/frameworks/base/data/keyboards/
DVendor_05ac_Product_030e.idc30 # NOTE: bias on X-axis is uncalibrated
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java154 private void setUidBias(int uid, int bias) { in setUidBias() argument
156 doReturn(bias).when(mJobSchedulerService).getUidBias(uid); in setUidBias()
158 mBatteryController.onUidBiasChangedLocked(uid, prevBias, bias); in setUidBias()
DPrefetchControllerTest.java212 private void setUidBias(int uid, int bias) { in setUidBias() argument
214 doReturn(bias).when(mJobSchedulerService).getUidBias(uid); in setUidBias()
216 mPrefetchController.onUidBiasChangedLocked(uid, prevBias, bias); in setUidBias()
DFlexibilityControllerTest.java1993 private void setUidBias(int uid, int bias) { in setUidBias() argument
1995 doReturn(bias).when(mJobSchedulerService).getUidBias(uid); in setUidBias()
1997 mFlexibilityController.onUidBiasChangedLocked(uid, prevBias, bias); in setUidBias()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java2403 int bias = JobInfo.BIAS_BOUND_FOREGROUND_SERVICE;
2406 "testCheckIfRestrictedSingleRestriction", createJobInfo(1).setBias(bias));
2411 when(mockThermalStatusRestriction.isJobRestricted(fgsJob, bias)).thenReturn(true);
2417 when(mockThermalStatusRestriction.isJobRestricted(fgsJob, bias)).thenReturn(false);
2429 int bias = JobInfo.BIAS_BOUND_FOREGROUND_SERVICE;
2432 "testGetMinJobExecutionGuaranteeMs", createJobInfo(1).setBias(bias));
2441 when(mock1JobRestriction.isJobRestricted(fgsJob, bias)).thenReturn(true);
2442 when(mock2JobRestriction.isJobRestricted(fgsJob, bias)).thenReturn(false);
2447 when(mock1JobRestriction.isJobRestricted(fgsJob, bias)).thenReturn(false);
2448 when(mock2JobRestriction.isJobRestricted(fgsJob, bias)).thenReturn(true);
[all …]
/frameworks/base/core/java/android/util/
DTimeUtils.java107 android.icu.util.TimeZone bias = android.icu.util.TimeZone.getDefault(); in getIcuTimeZone() local
114 whenMillis, bias, offsetMillis, isDst); in getIcuTimeZone()
/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobInfo.java1380 public Builder setBias(int bias) { in setBias() argument
1381 mBias = bias; in setBias()
2538 public static String getBiasString(int bias) { in getBiasString() argument
2539 switch (bias) { in getBiasString()
2556 return bias + " [UNKNOWN]"; in getBiasString()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/restrictions/
DThermalStatusRestrictionTest.java226 private boolean isJobRestricted(JobStatus status, int bias) { in isJobRestricted() argument
227 return mThermalStatusRestriction.isJobRestricted(status, bias); in isJobRestricted()
230 private static String debugTag(int bias, @PowerManager.ThermalStatus int status) { in debugTag() argument
232 + JobInfo.getBiasString(bias) in debugTag()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java4224 int bias = job.getBias();
4225 if (bias >= JobInfo.BIAS_BOUND_FOREGROUND_SERVICE) {
4226 return adjustJobBias(bias, job);
4232 return adjustJobBias(bias, job);
6081 int bias = evaluateJobBiasLocked(job);
6083 pw.println(JobInfo.getBiasString(bias));
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java1797 int bias = syncOperation.getJobBias(); in scheduleSyncOperationH() local
1813 .setBias(bias) in scheduleSyncOperationH()