/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SmartReplyViewTest.java | 257 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testMeasure_empty() 264 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testLayout_empty() 279 expectedView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testMeasure_shortChoices() 282 mView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testMeasure_shortChoices() 296 expectedView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testLayout_shortChoices() 301 mView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testLayout_shortChoices() 316 expectedView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testMeasure_choiceWithTwoLines() 319 mView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testMeasure_choiceWithTwoLines() 333 expectedView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testLayout_choiceWithTwoLines() 338 mView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); in testLayout_choiceWithTwoLines() [all …]
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriver.cpp | 449 void asyncExecute(const Request& request, MeasureTiming measure, time_point driverStart, in asyncExecute() argument 477 if (measure == MeasureTiming::YES) deviceStart = now(); in asyncExecute() 479 if (measure == MeasureTiming::YES) deviceEnd = now(); in asyncExecute() 492 if (measure == MeasureTiming::YES && executionStatus == ErrorStatus::NONE) { in asyncExecute() 504 ErrorStatus executeBase(const Request& request, MeasureTiming measure, const Model& model, in executeBase() argument 514 if (measure == MeasureTiming::YES) driverStart = now(); in executeBase() 532 std::thread([&model, &driver, preparedModel, &poolInfos, request, measure, driverStart, in executeBase() 534 asyncExecute(request, measure, driverStart, model, driver, preparedModel, poolInfos, in executeBase() 549 const V1_0::Request& request, MeasureTiming measure, in execute_1_2() argument 551 const ErrorStatus status = executeBase(convertToV1_3(request), measure, mModel, *mDriver, this, in execute_1_2() [all …]
|
D | SampleDriver.h | 145 const hal::V1_0::Request& request, hal::MeasureTiming measure, 148 const hal::V1_3::Request& request, hal::MeasureTiming measure, 153 hal::MeasureTiming measure, 156 const hal::V1_3::Request& request, hal::MeasureTiming measure, 167 hal::MeasureTiming measure,
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 67 boolean measure = false; in onMeasure() 78 measure = true; in onMeasure() 81 measure = true; in onMeasure() 87 if (measure) { in onMeasure()
|
D | AlertDialogLayout.java | 119 topPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); in tryOnMeasure() 128 buttonPanel.measure(widthMeasureSpec, MeasureSpec.UNSPECIFIED); in tryOnMeasure() 146 middlePanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() 169 buttonPanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure() 189 middlePanel.measure(widthMeasureSpec, childHeightSpec); in tryOnMeasure()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarOverlayLayoutTest.java | 105 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_consumedCutout_stable() 117 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_consumedCutout_notStable() 129 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_noCutout_stable() 141 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_noCutout_notStable() 153 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_cutout_stable() 165 mLayout.measure(EXACTLY_1000, EXACTLY_1000); in topInset_cutout_notStable()
|
D | MessagingLinearLayoutTest.java | 59 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testSingleChild() 74 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testLargeSmall() 90 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testSmallSmall() 106 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testLargeLarge() 122 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testLargeSmall_largeWrapsWith3indentbutNotFullHeight_andHitsMax()
|
D | ImageFloatingTextViewTest.java | 125 mTextView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest() 126 mView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | ListViewTest.java | 52 listView.measure(measureSpec, measureSpec); in testRequestLayout() 59 listView.measure(measureSpec, measureSpec); in testRequestLayout() 84 listView.measure(measureSpec, measureSpec); in testNoSelectableItems() 90 listView.measure(measureSpec, measureSpec); in testNoSelectableItems()
|
D | TextViewPerformanceTest.java | 56 mLabelView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp() 67 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellSignalStrengthNr.java | 357 private int updateLevelWithMeasure(int measure, int[] thresholds) { in updateLevelWithMeasure() argument 359 if (measure == CellInfo.UNAVAILABLE) { in updateLevelWithMeasure() 361 } else if (measure > thresholds[3]) { in updateLevelWithMeasure() 363 } else if (measure > thresholds[2]) { in updateLevelWithMeasure() 365 } else if (measure > thresholds[1]) { in updateLevelWithMeasure() 367 } else if (measure > thresholds[0]) { in updateLevelWithMeasure()
|
D | CellSignalStrengthLte.java | 343 private int updateLevelWithMeasure(int measure, int[] thresholds) { in updateLevelWithMeasure() argument 345 if (measure == CellInfo.UNAVAILABLE) { in updateLevelWithMeasure() 347 } else if (measure >= thresholds[3]) { in updateLevelWithMeasure() 349 } else if (measure >= thresholds[2]) { in updateLevelWithMeasure() 351 } else if (measure >= thresholds[1]) { in updateLevelWithMeasure() 353 } else if (measure >= thresholds[0]) { in updateLevelWithMeasure()
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/view/ |
D | FillContentLayoutTest.java | 43 layout.measure( in testMeasureMinSize() 62 layout.measure( in testMeasureChildIsSmallerThanMaxSize() 81 layout.measure( in testMeasureChildIsSmallerThanParent()
|
/frameworks/ml/nn/runtime/test/ |
D | TestExecution.cpp | 95 Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request& request, MeasureTiming measure, in execute_1_2() argument 98 std::thread([this, &request, measure, &callback] { in execute_1_2() 102 (void)mPreparedModelV1_2->execute_1_2(request, measure, callback); in execute_1_2() 113 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request& request, MeasureTiming measure, in execute_1_3() argument 118 std::thread([this, &request, measure, &deadline, &loopTimeoutDuration, &callback] { in execute_1_3() 122 (void)mPreparedModelV1_3->execute_1_3(request, measure, deadline, in execute_1_3() 134 Return<void> executeSynchronously(const V1_0::Request& request, MeasureTiming measure, in executeSynchronously() argument 139 return mPreparedModelV1_2->executeSynchronously(request, measure, cb); in executeSynchronously() 150 Return<void> executeSynchronously_1_3(const V1_3::Request& request, MeasureTiming measure, in executeSynchronously_1_3() argument 157 return mPreparedModelV1_3->executeSynchronously_1_3(request, measure, deadline, in executeSynchronously_1_3() [all …]
|
D | TestIntrospectionControl.cpp | 448 Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request&, MeasureTiming measure, in execute_1_2() argument 450 EXPECT_EQ(measure, MeasureTiming::YES); in execute_1_2() 478 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request&, MeasureTiming measure, in execute_1_3() argument 482 const V1_0::ErrorStatus status = execute_1_2(V1_0::Request{}, measure, callback); in execute_1_3() 486 Return<void> executeSynchronously(const V1_0::Request&, MeasureTiming measure, in executeSynchronously() argument 488 EXPECT_EQ(measure, MeasureTiming::YES); in executeSynchronously() 514 Return<void> executeSynchronously_1_3(const V1_3::Request&, MeasureTiming measure, in executeSynchronously_1_3() argument 522 return executeSynchronously(V1_0::Request{}, measure, wrappedCb); in executeSynchronously_1_3() 540 Return<void> executeFenced(const Request&, const hidl_vec<hidl_handle>&, MeasureTiming measure, in executeFenced() argument 543 EXPECT_EQ(measure, MeasureTiming::YES); in executeFenced() [all …]
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/grid/ |
D | TaskViewFocusFrame.java | 64 public void measure() { in measure() method in TaskViewFocusFrame 67 measure( in measure() 85 measure(); in resize()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewOnMeasurePerfTest.java | 115 textView.measure(AT_MOST | VIEW_WIDTH, AT_MOST | VIEW_HEIGHT); in testMeasure_AtMost() 132 textView.measure(EXACTLY | VIEW_WIDTH, EXACTLY | VIEW_HEIGHT); in testMeasure_Exactly() 149 textView.measure(UNSPECIFIED, UNSPECIFIED); in testMeasure_Unspecified()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLineTest.java | 119 assertEquals(expected[offset], tl.measure(offset, trailing, null), 0.0f); in assertMeasurements() 280 tl.measure(text.length(), false /* trailing */, null /* fmi */); in testHandleRun_ellipsizedReplacementSpan_isSkipped() 296 tl.measure(text.length(), false /* trailing */, null /* fmi */); in testHandleRun_notEllipsizedReplacementSpan_isNotSkipped() 312 tl.measure(text.length(), false /* trailing */, null /* fmi */); in testHandleRun_halfEllipsizedReplacementSpan_isNotSkipped()
|
/frameworks/ml/nn/common/include/ |
D | ExecutionBurstController.h | 60 hardware::neuralnetworks::V1_2::MeasureTiming measure, const std::vector<int32_t>& slots); 184 hardware::neuralnetworks::V1_2::MeasureTiming measure, 324 hardware::neuralnetworks::V1_2::MeasureTiming measure,
|
/frameworks/ml/nn/runtime/ |
D | Manager.cpp | 138 const std::shared_ptr<ExecutionBurstController>& burstController, MeasureTiming measure, 146 MeasureTiming measure, const std::optional<Deadline>& deadline, 325 const std::shared_ptr<ExecutionBurstController>& burstController, MeasureTiming measure, in execute() argument 394 burstController->compute(request12, measure, memoryIds); in execute() 404 request, measure, deadline, loopTimeoutDuration, preferSynchronous); in execute() 433 hal::MeasureTiming measure, const std::optional<Deadline>& deadline, in executeFenced() argument 505 mPreparedModel->executeFenced(request, waitForHandles, measure, deadline, in executeFenced() 610 const std::shared_ptr<ExecutionBurstController>& burstController, MeasureTiming measure, 623 MeasureTiming measure, const std::optional<Deadline>& deadline, 715 const std::vector<int>& waitFor, hal::MeasureTiming measure, in executeFenced() argument [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TileLayoutTest.java | 123 mTileLayout.measure(mLayoutSizeForOneTile, mLayoutSizeForOneTile); in testMeasureLayout_CallsLayoutOnTile() 134 mTileLayout.measure(mLayoutSizeForOneTile * 2, mLayoutSizeForOneTile * 2); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds() 171 mTileLayout.measure(mLayoutSizeForOneTile, mLayoutSizeForOneTile);
|
/frameworks/ml/nn/common/ |
D | ExecutionBurstServer.cpp | 72 MeasureTiming measure) override { in execute() argument 95 const Return<void> ret = mpPreparedModel->executeSynchronously(fullRequest, measure, cb); in execute() 297 const MeasureTiming measure = data[index].measureTiming(); in deserialize() local 308 return std::make_tuple(std::move(request), std::move(slots), measure); in deserialize() 628 const auto [requestWithoutPools, slotsOfPools, measure] = std::move(*arguments); in task() 637 mExecutorWithCache->execute(requestWithoutPools, slotsOfPools, measure); in task()
|
D | ExecutionBurstController.cpp | 71 std::vector<FmqRequestDatum> serialize(const V1_0::Request& request, MeasureTiming measure, in serialize() argument 143 datum.measureTiming(measure); in serialize() 366 bool RequestChannelSender::send(const V1_0::Request& request, MeasureTiming measure, in send() argument 368 const std::vector<FmqRequestDatum> serialized = serialize(request, measure, slots); in send() 584 const V1_0::Request& request, MeasureTiming measure, in compute() argument 597 const bool success = mRequestChannelSender->send(request, measure, slots); in compute()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | BridgeRenderSession.java | 92 public Result measure(long timeout) { in measure() method in BridgeRenderSession 99 mLastResult = mSession.measure(); in measure()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 117 SkPathMeasure measure(path, false); in hOffsetForTextAlign() local 118 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
|