/frameworks/av/media/libheadtracking/ |
D | ModeSelector-test.cpp | 33 ModeSelector selector(options); in TEST() local 35 selector.calculate(0); in TEST() 36 EXPECT_EQ(HeadTrackingMode::STATIC, selector.getActualMode()); in TEST() 37 EXPECT_EQ(selector.getHeadToStagePose(), Pose3f()); in TEST() 44 ModeSelector selector(options, HeadTrackingMode::WORLD_RELATIVE); in TEST() local 46 selector.setWorldToHeadPose(0, worldToHead); in TEST() 47 selector.setScreenStable(0, true); in TEST() 48 selector.calculate(0); in TEST() 49 EXPECT_EQ(HeadTrackingMode::WORLD_RELATIVE, selector.getActualMode()); in TEST() 50 EXPECT_EQ(selector.getHeadToStagePose(), worldToHead.inverse()); in TEST() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateSelectorTest.cpp | 266 const TestableRefreshRateSelector& selector) { in testFrameRateCategoryWithMultipleLayers() argument 295 selector.getBestFrameRateMode(layers).modePtr->getPeakFps()) in testFrameRateCategoryWithMultipleLayers() 300 selector.getBestFrameRateMode(layers).modePtr->getId()) in testFrameRateCategoryWithMultipleLayers() 330 auto selector = createSelector(kModes_60, kModeId60); in TEST_P() local 332 EXPECT_TRUE(selector.canSwitch()); in TEST_P() 334 EXPECT_FALSE(selector.canSwitch()); in TEST_P() 339 auto selector = createSelector(kModes_60, kModeId60); in TEST_P() local 342 selector.setDisplayManagerPolicy({DisplayModeId(10), {60_Hz, 60_Hz}})); in TEST_P() 344 selector.setDisplayManagerPolicy({kModeId60, {20_Hz, 40_Hz}})); in TEST_P() 348 auto selector = createSelector(kModes_60_90, kModeId60); in TEST_P() local [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | ProgramSelectorTest.java | 139 ProgramSelector selector = getFmSelector(/* secondaryIds= */ null, /* vendorIds= */ null); in getProgramType() local 141 int programType = selector.getProgramType(); in getProgramType() 148 ProgramSelector selector = getFmSelector(/* secondaryIds= */ null, /* vendorIds= */ null); in getPrimaryId() local 150 ProgramSelector.Identifier programId = selector.getPrimaryId(); in getPrimaryId() 157 ProgramSelector selector = getFmSelector(/* secondaryIds= */ null, /* vendorIds= */ null); in getSecondaryIds_withEmptySecondaryIds() local 159 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in getSecondaryIds_withEmptySecondaryIds() 169 ProgramSelector selector = getDabSelector(secondaryIdsExpected, /* vendorIds= */ null); in getSecondaryIds_withNonEmptySecondaryIds() local 171 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in getSecondaryIds_withNonEmptySecondaryIds() 181 ProgramSelector selector = getDabSelector(secondaryIds, /* vendorIds= */ null); in getFirstId_withIdInSelector() local 183 long firstIdValue = selector.getFirstId(ProgramSelector.IDENTIFIER_TYPE_DAB_DMB_SID_EXT); in getFirstId_withIdInSelector() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | QueryController.java | 127 public int getPatternCount(UiSelector selector) { in getPatternCount() argument 128 findAccessibilityNodeInfo(selector, true /*counting*/); in getPatternCount() 137 public AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector) { in findAccessibilityNodeInfo() argument 138 return findAccessibilityNodeInfo(selector, false); in findAccessibilityNodeInfo() 141 protected AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector, in findAccessibilityNodeInfo() argument 147 Log.d(LOG_TAG, "Searching: " + selector); in findAccessibilityNodeInfo() 157 UiSelector uiSelector = new UiSelector(selector); in findAccessibilityNodeInfo() 215 private AccessibilityNodeInfo translateCompoundSelector(UiSelector selector, in translateCompoundSelector() argument 221 if(selector.hasContainerSelector()) in translateCompoundSelector() 223 if(selector.getContainerSelector().hasContainerSelector()) { in translateCompoundSelector() [all …]
|
D | UiSelector.java | 76 UiSelector(UiSelector selector) { in UiSelector() argument 77 mSelectorAttributes = selector.cloneSelector().mSelectorAttributes; in UiSelector() 95 static UiSelector patternBuilder(UiSelector selector) { in patternBuilder() argument 96 if (!selector.hasPatternSelector()) { in patternBuilder() 97 return new UiSelector().patternSelector(selector); in patternBuilder() 99 return selector; in patternBuilder() 533 public UiSelector childSelector(UiSelector selector) { in childSelector() argument 534 return buildSelector(SELECTOR_CHILD, selector); in childSelector() 537 private UiSelector patternSelector(UiSelector selector) { in patternSelector() argument 538 return buildSelector(SELECTOR_PATTERN, selector); in patternSelector() [all …]
|
D | UiScrollable.java | 93 protected boolean exists(UiSelector selector) { in exists() argument 94 if(getQueryController().findAccessibilityNodeInfo(selector) != null) { in exists() 259 public boolean scrollIntoView(UiSelector selector) throws UiObjectNotFoundException { in scrollIntoView() argument 260 Tracer.trace(selector); in scrollIntoView() 262 UiSelector childSelector = getSelector().childSelector(selector); in scrollIntoView()
|
D | UiObject.java | 80 public UiObject(UiSelector selector) { in UiObject() argument 81 mSelector = selector; in UiObject() 123 public UiObject getChild(UiSelector selector) throws UiObjectNotFoundException { in getChild() argument 124 Tracer.trace(selector); in getChild() 125 return new UiObject(getSelector().childSelector(selector)); in getChild() 137 public UiObject getFromParent(UiSelector selector) throws UiObjectNotFoundException { in getFromParent() argument 138 Tracer.trace(selector); in getFromParent() 139 return new UiObject(getSelector().fromParent(selector)); in getFromParent()
|
D | UiCollection.java | 34 public UiCollection(UiSelector selector) { in UiCollection() argument 35 super(selector); in UiCollection()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | TestUtils.java | 46 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo() argument 50 logicallyTunedTo = selector.getPrimaryId(); in makeProgramInfo() 53 if (selector.getPrimaryId().getType() in makeProgramInfo() 55 for (int i = 0; i < selector.getSecondaryIds().length; i++) { in makeProgramInfo() 56 if (selector.getSecondaryIds()[i].getType() in makeProgramInfo() 58 physicallyTunedTo = selector.getSecondaryIds()[i]; in makeProgramInfo() 63 physicallyTunedTo = selector.getPrimaryId(); in makeProgramInfo() 66 return new RadioManager.ProgramInfo(selector, in makeProgramInfo() 72 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo() argument 73 return makeProgramInfo(selector, /* logicallyTunedTo= */ null, in makeProgramInfo() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/ |
D | PipAppHelperTv.kt | 34 private fun focusOnObject(selector: BySelector): Boolean { in focusOnObject() 39 uiDevice.findObject(selector)?.apply { if (isFocusedOrHasFocusedChild) return true } in focusOnObject() 49 val selector = By.res(packageName, resId) in clickObject() constant 50 focusOnObject(selector) || error("Could not focus on `$resId` object") in clickObject()
|
D | TvUtils.kt | 62 private fun UiDevice.findTvPipMenuElement(selector: BySelector): UiObject2? = in <lambda>() 63 findObject(TV_PIP_MENU_SELECTOR)?.findObject(selector) in <lambda>() 108 private fun UiDevice.focusOnAndClickTvPipMenuElement(selector: BySelector): Boolean { in UiDevice() 111 findTvPipMenuElement(selector) in UiDevice()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | AidlTestUtils.java | 51 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, in makeProgramInfo() argument 54 return new RadioManager.ProgramInfo(selector, in makeProgramInfo() 60 static RadioManager.ProgramInfo makeProgramInfo(ProgramSelector selector, int signalQuality) { in makeProgramInfo() argument 61 return makeProgramInfo(selector, selector.getPrimaryId(), selector.getPrimaryId(), in makeProgramInfo() 124 hwInfo.selector = hwSel; in makeHalProgramInfo() 186 halAnnouncement.selector = makeHalFmSelector(selectorFreq); in makeAnnouncement()
|
/frameworks/base/core/java/android/hardware/radio/ |
D | UniqueProgramIdentifier.java | 54 public UniqueProgramIdentifier(ProgramSelector selector) { in UniqueProgramIdentifier() argument 55 Objects.requireNonNull(selector, "Program selector can not be null"); in UniqueProgramIdentifier() 56 mPrimaryId = selector.getPrimaryId(); in UniqueProgramIdentifier() 62 ProgramSelector.Identifier[] secondaryIds = selector.getSecondaryIds(); in UniqueProgramIdentifier() 66 ensembleId = selector.getSecondaryIds()[i]; in UniqueProgramIdentifier()
|
D | Announcement.java | 86 public Announcement(@NonNull ProgramSelector selector, @Type int type, in Announcement() argument 88 mSelector = Objects.requireNonNull(selector, "Program selector cannot be null"); in Announcement()
|
/frameworks/base/tools/split-select/ |
D | SplitSelector_test.cpp | 48 SplitSelector selector(splits); in TEST() local 50 bestSplits.merge(selector.getBestSplits(targetSplit)); in TEST() 56 KeyedVector<SplitDescription, sp<Rule> > rules = selector.getRules(); in TEST()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | MediaRouterWrapper.java | 36 public void addCallback(MediaRouteSelector selector, MediaRouter.Callback callback, int flags) { in addCallback() argument 37 mRouter.addCallback(selector, callback, flags); in addCallback()
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | convert.cpp | 556 static JavaRef<jobject> ProgramSelectorFromHal(JNIEnv *env, const ProgramSelector &selector) { in ProgramSelectorFromHal() argument 558 auto jPrimary = ProgramIdentifierFromHal(env, selector.primaryId); in ProgramSelectorFromHal() 559 auto jSecondary = ArrayFromHal(env, selector.secondaryIds, in ProgramSelectorFromHal() 561 auto jVendor = ArrayFromHal(env, selector.vendorIds); in ProgramSelectorFromHal() 564 selector.programType, jPrimary.get(), jSecondary.get(), jVendor.get())); in ProgramSelectorFromHal() 579 ProgramSelector selector = {}; in ProgramSelectorToHal() local 581 selector.programType = env->GetIntField(jSelector, gjni.ProgramSelector.programType); in ProgramSelectorToHal() 594 selector.primaryId = ProgramIdentifierToHal(env, jPrimary); in ProgramSelectorToHal() 596 selector.secondaryIds.resize(count); in ProgramSelectorToHal() 599 selector.secondaryIds[i] = ProgramIdentifierToHal(env, jId); in ProgramSelectorToHal() [all …]
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | Utils.java | 44 private static UiObject2 waitForActivity(Instrumentation instrumentation, BySelector selector) { in waitForActivity() argument 46 UiObject2 window = device.wait(Until.findObject(selector), WAIT_FOR_ACTIVITY_TIMEOUT); in waitForActivity() 48 throw new RuntimeException(selector.toString() + " has not been started."); in waitForActivity()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal1/ |
D | Tuner.java | 86 private native void nativeTune(long nativeContext, @NonNull ProgramSelector selector); in nativeTune() argument 204 public void tune(ProgramSelector selector) { in tune() argument 209 if (selector == null) { in tune() 212 Slogf.i(TAG, "Tuning to " + selector); in tune() 216 nativeTune(mNativeContext, selector); in tune()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerInfo.cpp | 273 std::optional<Fps> LayerInfo::calculateRefreshRateIfPossible(const RefreshRateSelector& selector, in calculateRefreshRateIfPossible() argument 284 const auto closestKnownRefreshRate = mRefreshRateHistory.add(refreshRate, now, selector); in calculateRefreshRateIfPossible() 308 LayerInfo::RefreshRateVotes LayerInfo::getRefreshRateVote(const RefreshRateSelector& selector, in getRefreshRateVote() argument 381 auto refreshRate = calculateRefreshRateIfPossible(selector, now); in getRefreshRateVote() 443 const RefreshRateSelector& selector) { in add() argument 458 return selectRefreshRate(selector); in add() 461 Fps LayerInfo::RefreshRateHistory::selectRefreshRate(const RefreshRateSelector& selector) const { in selectRefreshRate() 470 const auto maxClosestRate = selector.findClosestKnownFrameRate(max->refreshRate); in selectRefreshRate() 475 const auto minClosestRate = selector.findClosestKnownFrameRate(minFps); in selectRefreshRate()
|
/frameworks/base/core/java/android/security/net/config/ |
D | DirectoryCertificateSource.java | 139 private Set<X509Certificate> findCerts(X500Principal subj, CertSelector selector) { 157 if (selector.match(cert)) { 167 private X509Certificate findCert(X500Principal subj, CertSelector selector) { 184 if (selector.match(cert)) {
|
/frameworks/base/core/java/com/android/internal/app/ |
D | LocalePickerWithRegion.java | 284 LocalePickerWithRegion selector; in onListItemClick() local 286 selector = in onListItemClick() 291 selector = LocalePickerWithRegion.createCountryPicker( in onListItemClick() 296 if (selector != null) { in onListItemClick() 299 .replace(getId(), selector).addToBackStack(null) in onListItemClick()
|
/frameworks/base/media/java/android/media/tv/ |
D | TimelineRequest.java | 59 @NonNull String selector) { in TimelineRequest() argument 62 mSelector = selector; in TimelineRequest()
|
D | TimelineResponse.java | 57 @ResponseResult int responseResult, @Nullable String selector, int unitsPerTick, in TimelineResponse() argument 60 mSelector = selector; in TimelineResponse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/satellite/domain/interactor/ |
D | DeviceBasedSatelliteInteractor.kt | 86 selector = { intr -> in <lambda>() 144 crossinline selector: (R) -> Flow<S>, in aggregateOver() 148 return map { list -> list.map { selector(it) } } in aggregateOver()
|