Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 34) sorted by relevance

12

/cts/hostsidetests/media/app/MediaMetricsTest/jni/
Daaudio_stream.cpp26 void tryOpeningStream(aaudio_direction_t direction, aaudio_performance_mode_t performanceMode) { in tryOpeningStream() argument
30 AAudioStreamBuilder_setDirection(builder, direction); in tryOpeningStream()
36 ASSERT_EQ(direction, AAudioStream_getDirection(stream)); in tryOpeningStream()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp435 void testChannelMask(aaudio_channel_mask_t channelMask, aaudio_direction_t direction);
439 aaudio_direction_t direction) { in testChannelMask() argument
442 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testChannelMask()
445 isValidChannelMask(channelMask, direction) ? Expect::SUCCEED : Expect::FAIL; in testChannelMask()
560 void testSetChannelMaskAndCount(aaudio_direction_t direction,
567 aaudio_direction_t direction, aaudio_channel_mask_t channelMask, in testSetChannelMaskAndCount() argument
571 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in testSetChannelMaskAndCount()
600 const aaudio_direction_t direction = GetParam().first; in TEST_P() local
601 if ((direction == AAUDIO_DIRECTION_OUTPUT && !deviceSupportsFeature(FEATURE_PLAYBACK)) || in TEST_P()
602 (direction == AAUDIO_DIRECTION_INPUT && !deviceSupportsFeature(FEATURE_RECORDING))) { in TEST_P()
[all …]
Dtest_session_id.cpp76 aaudio_direction_t direction) { in checkSessionIdAllocate() argument
97 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkSessionIdAllocate()
114 if (direction == AAUDIO_DIRECTION_INPUT) { in checkSessionIdAllocate()
128 aaudio_direction_t otherDirection = (direction == AAUDIO_DIRECTION_OUTPUT) in checkSessionIdAllocate()
Dtest_aaudio_attributes.cpp45 aaudio_direction_t direction = AAUDIO_DIRECTION_OUTPUT, in checkAttributes() argument
48 if (direction == AAUDIO_DIRECTION_INPUT in checkAttributes()
50 else if (direction == AAUDIO_DIRECTION_OUTPUT in checkAttributes()
63 AAudioStreamBuilder_setDirection(aaudioBuilder, direction); in checkAttributes()
147 if (direction == AAUDIO_DIRECTION_INPUT) { in checkAttributes()
Dutils.cpp89 aaudio_direction_t direction, int32_t sampleRate, in StreamBuilderHelper() argument
92 : mDirection{direction}, in StreamBuilderHelper()
Dutils.h85 StreamBuilderHelper(aaudio_direction_t direction, int32_t sampleRate,
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ui/
DMainFragment.java51 private ScrollDirection direction; field in ScrollPatternGenerator
57 direction = ScrollDirection.DOWN; in ScrollPatternGenerator()
63 direction = ScrollDirection.UP;
65 direction = ScrollDirection.DOWN;
67 if (direction == ScrollDirection.DOWN) {
/cts/tests/tests/view/src/android/view/cts/
DMockView.java428 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument
430 return super.dispatchUnhandledMove(focused, direction); in dispatchUnhandledMove()
552 protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect) { in onFocusChanged() argument
553 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect); in onFocusChanged()
644 public boolean requestFocus(int direction, Rect previouslyFocusedRect) { in requestFocus() argument
646 return super.requestFocus(direction, previouslyFocusedRect); in requestFocus()
DFocusFinderTest.java109 private void verifyNextFocus(View currentFocus, int direction, View expectedNextFocus) { in verifyNextFocus() argument
110 View actualNextFocus = mFocusFinder.findNextFocus(mLayout, currentFocus, direction); in verifyNextFocus()
153 private void verifytNextFocusFromRect(Rect rect, int direction, View expectedNextFocus) { in verifytNextFocusFromRect() argument
154 View actualNextFocus = mFocusFinder.findNextFocusFromRect(mLayout, rect, direction); in verifytNextFocusFromRect()
283 private void verifyNextCluster(View currentCluster, int direction, View expectedNextCluster) { in verifyNextCluster() argument
285 mLayout, currentCluster, direction); in verifyNextCluster()
289 private void verifyNextClusterView(View currentCluster, int direction, View expectedNextView) { in verifyNextClusterView() argument
291 mLayout, currentCluster, direction); in verifyNextClusterView()
294 mFocusFinder.findNextKeyboardNavigationCluster(mLayout, null, direction); in verifyNextClusterView()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DInlineUiBot.java124 public void scrollSuggestionView(Direction direction, int speed) throws Exception { in scrollSuggestionView() argument
126 strip.fling(direction, speed); in scrollSuggestionView()
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAccessoryTestCompanion.java324 @NonNull private UsbEndpoint getEndpoint(@NonNull UsbInterface iface, int direction) { in getEndpoint() argument
327 if (ep.getDirection() == direction) { in getEndpoint()
332 throw new IllegalStateException("Could not find " + direction + " endpoint in " in getEndpoint()
/cts/tests/openglperf2/assets/fragment/
Dperspective21 // Get a lighting direction vector from the light to the vertex.
Dwater28 // Get a lighting direction vector from the light to the vertex.
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCrossProfileSharingTest.java191 private ResolveInfo getResolveInfo(UserReference targetProfile, int direction) { in getResolveInfo() argument
198 new IntentFilter(CROSS_PROFILE_ACTION), direction); in getResolveInfo()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DBNNMTest.java51 final float direction = rand.nextFloat(); in addByteNoise() local
53 if (direction < 0.5f) { in addByteNoise()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java431 public boolean requestFocus(final int direction,
434 return mWebView.requestFocus(direction, previouslyFocusedRect);
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java532 private void validateAAudioStreamAtom(int direction) throws Exception { in validateAAudioStreamAtom() argument
533 Set<Integer> directionSet = new HashSet<>(Arrays.asList(direction)); in validateAAudioStreamAtom()
553 String requiredFeature, int direction, String testFunctionName) throws Exception { in runAAudioTestAndValidate() argument
567 validateAAudioStreamAtom(direction); in runAAudioTestAndValidate()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DStaticMetadata.java1438 public int[] getAvailableFormats(StreamDirection direction) { in getAvailableFormats() argument
1447 switch (direction) { in getAvailableFormats()
1483 public Size[] getAvailableSizesForFormatChecked(int format, StreamDirection direction) { in getAvailableSizesForFormatChecked() argument
1484 return getAvailableSizesForFormatChecked(format, direction, in getAvailableSizesForFormatChecked()
1498 public Size[] getAvailableSizesForFormatChecked(int format, StreamDirection direction, in getAvailableSizesForFormatChecked() argument
1500 return getAvailableSizesForFormatChecked(format, direction, fastSizes, slowSizes, in getAvailableSizesForFormatChecked()
1514 public Size[] getAvailableSizesForFormatChecked(int format, StreamDirection direction, in getAvailableSizesForFormatChecked() argument
1527 switch (direction) { in getAvailableSizesForFormatChecked()
/cts/tests/tests/widget/src/android/widget/cts/
DGalleryTest.java405 protected void onFocusChanged(boolean gainFocus, int direction, in onFocusChanged() argument
407 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect); in onFocusChanged()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileCrossProfileTest.java220 final String direction = (userId == mParentUserId) in testCrossProfileCopyPasteInternal() local
226 direction, mProfileUserId); in testCrossProfileCopyPasteInternal()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DHdmiCecClientWrapper.java550 String direction = fromCecClient ? "<<" : ">>"; in checkExpectedOutput() local
554 + direction in checkExpectedOutput()
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiResolutionReprocessCaptureTest.java770 private Size getMaxSize(int format, StaticMetadata.StreamDirection direction) { in getMaxSize() argument
771 Size[] sizes = mStaticInfo.getAvailableSizesForFormatChecked(format, direction); in getMaxSize()
/cts/tests/tests/media/src/android/media/cts/
DMediaRouterTest.java600 public void onVolumeUpdateRequest(RouteInfo info, int direction) { in onVolumeUpdateRequest() argument
603 mDirection = direction; in onVolumeUpdateRequest()
DMediaControllerTest.java226 public void onAdjustVolume(int direction) { in testVolumeControl()
228 switch (direction) { in testVolumeControl()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java2317 int direction = TextUtils.getLayoutDirectionFromLocale(l); in testGetLayoutDirectionFromLocale() local
2318 assertEquals(l.toLanguageTag() + " not RTL: " + direction, in testGetLayoutDirectionFromLocale()
2319 LAYOUT_DIRECTION_RTL, direction); in testGetLayoutDirectionFromLocale() local
2334 int direction = TextUtils.getLayoutDirectionFromLocale(l); in testGetLayoutDirectionFromLocale() local
2335 assertEquals(l.toLanguageTag() + " not RTL: " + direction, in testGetLayoutDirectionFromLocale()
2336 LAYOUT_DIRECTION_RTL, direction); in testGetLayoutDirectionFromLocale() local

12