Home
last modified time | relevance | path

Searched refs:surfaceId (Results 1 – 5 of 5) sorted by relevance

/cts/tests/PhotoPicker/src/android/photopicker/cts/cloudproviders/
DCloudProviderPrimary.java120 public static void setPlaybackState(int surfaceId, int state) { in setPlaybackState() argument
125 sSurfaceControllerImpl.sendPlaybackEvent(surfaceId, state); in setPlaybackState()
151 public void onSurfaceCreated(int surfaceId, @NonNull Surface surface, in onSurfaceCreated() argument
153 sMockSurfaceControllerListener.onSurfaceCreated(surfaceId, surface, mediaId); in onSurfaceCreated()
155 Log.d(TAG, "Surface prepared: " + surfaceId + ". Surface: " + surface in onSurfaceCreated()
160 public void onSurfaceChanged(int surfaceId, int format, int width, int height) { in onSurfaceChanged() argument
161 sMockSurfaceControllerListener.onSurfaceChanged(surfaceId, format, width, height); in onSurfaceChanged()
162 Log.d(TAG, "Surface changed: " + surfaceId + ". Format: " + format + ". Width: " in onSurfaceChanged()
167 public void onSurfaceDestroyed(int surfaceId) { in onSurfaceDestroyed() argument
168 sMockSurfaceControllerListener.onSurfaceDestroyed(surfaceId); in onSurfaceDestroyed()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DRemoteVideoPreviewTest.java152 final int surfaceId = 0; in testBasicVideoPreview() local
153 verifyInitialVideoPreviewSetup(surfaceId, CLOUD_ID1); in testBasicVideoPreview()
156 verifyPlaybackStartedWhenPlayerReady(surfaceId); in testBasicVideoPreview()
165 mAssertInOrder.verify(mSurfaceControllerListener).onSurfaceDestroyed(eq(surfaceId)); in testBasicVideoPreview()
220 int surfaceId = 0; in testSwipeImageVideoPreview() local
221 verifyInitialVideoPreviewSetup(surfaceId, CLOUD_ID2); in testSwipeImageVideoPreview()
224 verifyPlaybackStartedWhenPlayerReady(surfaceId); in testSwipeImageVideoPreview()
229 mAssertInOrder.verify(mSurfaceControllerListener).onSurfaceDestroyed(eq(surfaceId)); in testSwipeImageVideoPreview()
239 surfaceId++; in testSwipeImageVideoPreview()
240 verifyInitialVideoPreviewSetup(surfaceId, CLOUD_ID2); in testSwipeImageVideoPreview()
[all …]
/cts/tests/media/src/android/mediav2/cts/
DCodecDecoderDetachedSurfaceTest.java261 private void getAllImagesInRenderQueue(int surfaceId, int targetFrames) { in getAllImagesInRenderQueue() argument
265 try (Image image = mImageSurfaces.get(surfaceId).getImage(WAIT_FOR_IMAGE_TIMEOUT_MS)) { in getAllImagesInRenderQueue()
266 onFrameReceived(new ImageSurface.ImageAndAttributes(image, surfaceId)); in getAllImagesInRenderQueue()
310 int surfaceId = MAX_ACTIVE_SURFACES - 1; in testSetOutputSurface() local
313 mCodec.setOutputSurface(mSurfaces.get(surfaceId)); // switch surface periodically in testSetOutputSurface()
314 mImageSurface = mImageSurfaces.get(surfaceId); in testSetOutputSurface()
315 mSurface = mSurfaces.get(surfaceId); in testSetOutputSurface()
316 mAttachedSurfaceId = surfaceId; in testSetOutputSurface()
319 surfaceId += 1; in testSetOutputSurface()
320 surfaceId = surfaceId % MAX_ACTIVE_SURFACES; in testSetOutputSurface()
[all …]
/cts/tests/media/common/src/android/mediav2/common/cts/
DImageSurface.java60 public ImageAndAttributes(Image image, int surfaceId) { in ImageAndAttributes() argument
62 mImageBoundToSurfaceId = surfaceId; in ImageAndAttributes()
113 int surfaceId, Function<ImageAndAttributes, Boolean> predicate) { in createSurface() argument
125 mImageBoundToSurfaceId = surfaceId; in createSurface()
DCodecTestBase.java1524 int surfaceId, Function<ImageSurface.ImageAndAttributes, Boolean> predicate) { in setUpSurface() argument
1525 mImageSurface.createSurface(width, height, format, maxImages, surfaceId, predicate); in setUpSurface()