Home
last modified time | relevance | path

Searched refs:calculate (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/av/media/libheadtracking/
DStillnessDetector-test.cpp50 EXPECT_EQ(mDefaultValue, detector.calculate(0)); in TEST_P()
52 EXPECT_EQ(mDefaultValue, detector.calculate(0)); in TEST_P()
54 EXPECT_EQ(mDefaultValue, detector.calculate(300)); in TEST_P()
56 EXPECT_EQ(mDefaultValue, detector.calculate(600)); in TEST_P()
58 EXPECT_EQ(mDefaultValue, detector.calculate(999)); in TEST_P()
60 EXPECT_TRUE(detector.calculate(1000)); in TEST_P()
65 EXPECT_TRUE(detector.calculate(0)); in TEST_P()
66 EXPECT_TRUE(detector.calculate(1000)); in TEST_P()
80 EXPECT_EQ(mDefaultValue, detector.calculate(0)); in TEST_P()
82 EXPECT_EQ(mDefaultValue, detector.calculate(0)); in TEST_P()
[all …]
DHeadTrackingProcessor-test.cpp37 processor->calculate(0); in TEST()
60 processor->calculate(0); in TEST()
67 processor->calculate(0); in TEST()
72 processor->calculate(0); in TEST()
93 processor->calculate(0); in TEST()
98 processor->calculate(0); in TEST()
104 processor->calculate(0); in TEST()
119 processor->calculate(0); in TEST()
125 processor->calculate(0); in TEST()
129 processor->calculate(2); in TEST()
[all …]
DScreenHeadFusion-test.cpp31 EXPECT_FALSE(fusion.calculate().has_value()); in TEST()
37 EXPECT_FALSE(fusion.calculate().has_value()); in TEST()
43 EXPECT_FALSE(fusion.calculate().has_value()); in TEST()
55 auto result = fusion.calculate(); in TEST()
61 result = fusion.calculate(); in TEST()
67 result = fusion.calculate(); in TEST()
DModeSelector-test.cpp35 selector.calculate(0); in TEST()
48 selector.calculate(0); in TEST()
60 selector.calculate(0); in TEST()
76 selector.calculate(0); in TEST()
92 selector.calculate(10); in TEST()
108 selector.calculate(101); in TEST()
123 selector.calculate(101); in TEST()
138 selector.calculate(0); in TEST()
156 selector.calculate(101); in TEST()
174 selector.calculate(101); in TEST()
DHeadTrackingProcessor.cpp91 void calculate(int64_t timestamp) override { in calculate() function in android::media::__anon130e37b90111::HeadTrackingProcessorImpl
97 screenStable = mScreenStillnessDetector.calculate(timestamp); in calculate()
111 bool headStable = mHeadStillnessDetector.calculate(timestamp); in calculate()
121 auto maybeScreenToHead = mScreenHeadFusion.calculate(); in calculate()
130 mModeSelector.calculate(timestamp); in calculate()
DScreenHeadFusion.h58 std::optional<TimestampedPose> calculate();
DScreenHeadFusion.cpp30 std::optional<ScreenHeadFusion::TimestampedPose> ScreenHeadFusion::calculate() { in calculate() function in android::media::ScreenHeadFusion
DStillnessDetector.h82 bool calculate(int64_t timestamp);
DModeSelector.h105 void calculate(int64_t timestamp);
DStillnessDetector.cpp43 bool StillnessDetector::calculate(int64_t timestamp) { in calculate() function in android::media::StillnessDetector
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskLaunchParamsModifierTests.java97 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setActivity(null).calculate()); in testReturnsSkipWithEmptyActivity()
107 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().calculate()); in testDefaultToPrimaryDisplayArea()
120 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().calculate()); in testUsesPreviousDisplayAreaIfSet()
136 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setSource(source).calculate()); in testUsesSourcesDisplayAreaIfSet()
156 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayIdIfSet()
177 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayAreaTokenIfSet()
199 new CalculateRequestBuilder().setSource(source).setOptions(options).calculate()); in testUsesOptionsDisplayAreaFeatureIdIfSet()
220 .calculate()); in testUsesSourcesDisplayAreaIdPriorToTaskIfSet()
235 .calculate()); in testUsesTaskDisplayAreaIdIfSet()
258 .calculate()); in testUsesNoDisplaySourceHandoverDisplayIdIfSet()
[all …]
DDesktopModeLaunchParamsModifierTests.java78 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(null).calculate()); in testReturnsSkipIfDesktopWindowingIsDisabled()
87 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(null).calculate()); in testReturnsSkipIfDesktopWindowingIsEnabledOnUnsupportedDevice()
97 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsContinueIfDesktopWindowingIsEnabledAndUnsupportedDeviceOverridden()
105 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(null).calculate()); in testReturnsSkipIfTaskIsNull()
115 PHASE_DISPLAY).calculate()); in testReturnsSkipIfNotBoundsPhase()
125 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsSkipIfTaskNotUsingActivityTypeStandardOrUndefined()
135 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsContinueIfTaskUsingActivityTypeStandard()
145 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsContinueIfTaskUsingActivityTypeUndefined()
156 assertEquals(RESULT_SKIP, new CalculateRequestBuilder().setTask(task).calculate()); in testReturnsSkipIfCurrentParamsHasBounds()
172 assertEquals(RESULT_CONTINUE, new CalculateRequestBuilder().setTask(task).calculate()); in testUsesDesiredBoundsIfEmptyLayoutAndActivityOptionsBounds()
[all …]
DLaunchParamsControllerTests.java95 mController.calculate(record.getTask(), layout, record, source, options, request, in testArgumentPropagation()
120 mController.calculate(activity.getTask(), null /*layout*/, activity, null /*source*/, in testStoredParamsRecovery()
140 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, in testEarlyExit()
159 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, in testRegistration()
169 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, in testRegistration()
196 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, null /*source*/, in testPassThrough()
222 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, null /*source*/, in testSkip()
241 mController.calculate(null /*task*/, null /*layout*/, vrActivity /*activity*/, in testVrPreferredDisplay()
248 mController.calculate(null /*task*/, null /*layout*/, vr2dActivity /*activity*/, in testVrPreferredDisplay()
251 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, null /*source*/, in testVrPreferredDisplay()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIBottomSheetDialog.kt90 .calculate() in onStart()
139 fun calculate(): Flow<Layout> in create() method
149 override fun calculate(): Flow<Layout> { in create() method in WindowLayout.LimitedEdgeToEdge
/frameworks/base/services/core/java/com/android/server/power/stats/
DFlashlightPowerCalculator.java45 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() method in FlashlightPowerCalculator
47 super.calculate(builder, batteryStats, rawRealtimeUs, rawUptimeUs, query); in calculate()
DCameraPowerCalculator.java47 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() method in CameraPowerCalculator
49 super.calculate(builder, batteryStats, rawRealtimeUs, rawUptimeUs, query); in calculate()
DPhonePowerCalculator.java43 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() method in PhonePowerCalculator
DUserPowerCalculator.java41 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() method in UserPowerCalculator
DBatteryChargeCalculator.java36 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() method in BatteryChargeCalculator
DPowerCalculator.java53 public void calculate(BatteryUsageStats.Builder builder, BatteryStats batteryStats, in calculate() method in PowerCalculator
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatable.java50 int calculate(CalculateParams params); in calculate() method
/frameworks/base/proto/src/
Daltitude.proto34 // calculate a geoid height in meters.
37 // calculate a geoid height in meters.
/frameworks/base/services/core/java/com/android/server/wm/
DDesktopModeLaunchParamsModifier.java74 int result = calculate(task, layout, activity, source, options, request, phase, in onCalculate()
80 private int calculate(@Nullable Task task, @Nullable ActivityInfo.WindowLayout layout, in calculate() method in DesktopModeLaunchParamsModifier
DLaunchParamsController.java81 void calculate(Task task, WindowLayout layout, ActivityRecord activity, ActivityRecord source, in calculate() method in LaunchParamsController
135 calculate(task, layout, activity, source, options, null /* request */, PHASE_BOUNDS, in layoutTask()
/frameworks/av/media/libheadtracking/include/media/
DHeadTrackingProcessor.h83 virtual void calculate(int64_t timestamp) = 0;

123