/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | ExtractedTextRequestTest.java | 27 ExtractedTextRequest request = new ExtractedTextRequest(); in testExtractedTextRequest() local 28 request.flags = 1; in testExtractedTextRequest() 29 request.hintMaxChars = 100; in testExtractedTextRequest() 30 request.hintMaxLines = 10; in testExtractedTextRequest() 31 request.token = 2; in testExtractedTextRequest() 33 assertEquals(0, request.describeContents()); in testExtractedTextRequest() 36 request.writeToParcel(p, 0); in testExtractedTextRequest() 40 assertEquals(request.flags, target.flags); in testExtractedTextRequest() 41 assertEquals(request.hintMaxChars, request.hintMaxChars); in testExtractedTextRequest() 42 assertEquals(request.hintMaxLines, target.hintMaxLines); in testExtractedTextRequest() [all …]
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmInfoRequestTest.java | 72 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, DEFAULT_MIME); in testPutAndGetKeys() local 76 request.put(key, attributes.get(key)); in testPutAndGetKeys() 80 Iterator<String> infoKeys = request.keyIterator(); in testPutAndGetKeys() 83 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 89 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 93 Iterator<Object> iterator = request.iterator(); in testPutAndGetKeys() 103 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkInvalidMimeType() local 111 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkGetMimeType() local 112 assertEquals(request.getMimeType(), mimeType); in checkGetMimeType() 116 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkGetInfoType() local [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsConnectionService.java | 95 ConnectionRequest request) { in onCreateOutgoingConnection() argument 99 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 102 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 109 ConnectionRequest request) { in onCreateIncomingConnection() argument 113 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 116 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 167 ConnectionRequest request) { in createRemoteOutgoingConnectionToTelecom() argument 170 connectionManagerPhoneAccount, request); in createRemoteOutgoingConnectionToTelecom() 176 ConnectionRequest request) { in createRemoteIncomingConnectionToTelecom() argument 179 connectionManagerPhoneAccount, request); in createRemoteIncomingConnectionToTelecom()
|
D | CtsRemoteConnectionService.java | 92 ConnectionRequest request) { in onCreateOutgoingConnection() argument 96 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 99 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 106 ConnectionRequest request) { in onCreateIncomingConnection() argument 110 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 113 connectionManagerPhoneAccount, request); in onCreateIncomingConnection()
|
D | MockConnectionService.java | 55 ConnectionRequest request) { in onCreateOutgoingConnection() argument 57 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateOutgoingConnection() 64 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection() 74 ConnectionRequest request) { in onCreateIncomingConnection() argument 76 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateIncomingConnection() 81 ((Connection) connection).setVideoState(request.getVideoState()); in onCreateIncomingConnection()
|
D | NumberDialingTest.java | 50 ConnectionRequest request) { in testEndInPound() 51 res[0] = request.getAddress(); in testEndInPound()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 449 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument 475 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument 494 CaptureRequest.Builder request = in testChainedOperation() local 496 request.addTarget(mReaderSurface); in testChainedOperation() 501 session.capture(request.build(), mCaptureCallback, mHandler); in testChainedOperation() 503 session.setRepeatingRequest(request.build(), in testChainedOperation() 729 CaptureRequest request = builder.build(); in testCreateSessionsByCamera() local 731 session.capture(request, captureListener, mHandler); in testCreateSessionsByCamera() 732 captureListener.getCaptureResultForRequest(request, CAPTURE_TIMEOUT_MS); in testCreateSessionsByCamera() 1280 private void checkFpsRange(CaptureRequest.Builder request, int template, in checkFpsRange() argument [all …]
|
D | AllocationTest.java | 132 private static void setManualCaptureRequest(CaptureRequest.Builder request, int sensitivity, in setManualCaptureRequest() argument 142 request.set(CaptureRequest.CONTROL_MODE, CaptureRequest.CONTROL_MODE_OFF); in setManualCaptureRequest() 143 request.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF); in setManualCaptureRequest() 144 request.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_OFF); in setManualCaptureRequest() 145 request.set(CaptureRequest.CONTROL_AF_MODE, CaptureRequest.CONTROL_AF_MODE_OFF); in setManualCaptureRequest() 146 request.set(CaptureRequest.CONTROL_EFFECT_MODE, CaptureRequest.CONTROL_EFFECT_MODE_OFF); in setManualCaptureRequest() 147 request.set(CaptureRequest.SENSOR_FRAME_DURATION, 0L); in setManualCaptureRequest() 148 request.set(CaptureRequest.SENSOR_SENSITIVITY, sensitivity); in setManualCaptureRequest() 149 request.set(CaptureRequest.SENSOR_EXPOSURE_TIME, expTimeNs); in setManualCaptureRequest() 150 request.set(CaptureRequest.COLOR_CORRECTION_MODE, in setManualCaptureRequest() [all …]
|
D | CaptureResultTest.java | 660 CameraCaptureSession session, CaptureRequest request, long timestamp, long frameNumber) in onCaptureStarted() argument 662 checkCallbackOrder(request); in onCaptureStarted() 663 createMapEntryIfNecessary(request); in onCaptureStarted() 667 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument 670 List<CaptureResult> partialResultsList = mPartialResultsMap.get(request); in onCaptureCompleted() 676 mPartialResultsMap.remove(request); in onCaptureCompleted() 677 boolean newEntryAdded = completedRequests.add(request); in onCaptureCompleted() 679 Integer frame = (Integer) request.getTag(); in onCaptureCompleted() 690 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() argument 692 createMapEntryIfNecessary(request); in onCaptureProgressed() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | PowerTestHostLink.java | 196 private String processClientRequest(String request) throws Exception { in processClientRequest() argument 211 if (request.startsWith(REQUEST_SENSOR_AVAILABILITY)) { in processClientRequest() 212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); in processClientRequest() 219 } else if (request.startsWith(REQUEST_EXTERNAL_STORAGE)){ in processClientRequest() 222 } else if (request.startsWith(REQUEST_SCREEN_OFF)) { in processClientRequest() 230 } else if (request.startsWith(REQUEST_SENSOR_ON)) { in processClientRequest() 231 String sensorList = request.substring(REQUEST_SENSOR_ON.length()).trim(); in processClientRequest() 233 } else if (request.startsWith(REQUEST_SENSOR_OFF)) { in processClientRequest() 234 String sensorList = request.substring(REQUEST_SENSOR_ON.length()).trim(); in processClientRequest() 236 } else if (request.startsWith(REQUEST_SHOW_MESSAGE)) { in processClientRequest() [all …]
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainInteractionSession.java | 106 public void onRequestConfirmation(ConfirmationRequest request) { in onRequestConfirmation() argument 107 Bundle extras = request.getExtras(); in onRequestConfirmation() 108 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestConfirmation() 112 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestConfirmation() 126 public void onRequestCompleteVoice(CompleteVoiceRequest request) { in onRequestCompleteVoice() argument 127 Bundle extras = request.getExtras(); in onRequestCompleteVoice() 128 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestCompleteVoice() 132 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestCompleteVoice() 146 public void onRequestAbortVoice(AbortVoiceRequest request) { in onRequestAbortVoice() argument 147 Bundle extras = request.getExtras(); in onRequestAbortVoice() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/helpers/ |
D | CameraSessionUtils.java | 117 CameraCaptureSession session, CaptureRequest request, Handler handler) in getCapturedResult() argument 119 session.capture(request, this, handler); in getCapturedResult() 126 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted() argument 129 super.onCaptureStarted(session, request, timestamp, frameNumber); in onCaptureStarted() 133 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument 136 super.onCaptureCompleted(session, request, result); in onCaptureCompleted() 213 CameraCaptureSession session, CaptureRequest request, Handler handler) in captureAndVerifyResult() argument 217 checkNotNull(request); in captureAndVerifyResult() 220 Pair<TotalCaptureResult, Long> result = listener.getCapturedResult(session, request, in captureAndVerifyResult() 225 verify(listener, atLeastOnce()).onCaptureStarted(eq(session), eq(request), in captureAndVerifyResult() [all …]
|
D | CameraErrorCollector.java | 647 public <T> T expectKeyValueNotNull(CaptureRequest request, in expectKeyValueNotNull() argument 650 T value = request.get(key); in expectKeyValueNotNull() 665 public <T> T expectKeyValueNotNull(Builder request, CaptureRequest.Key<T> key) { in expectKeyValueNotNull() argument 667 T value = request.get(key); in expectKeyValueNotNull() 712 Builder request, CaptureRequest.Key<T> key, T expected) { in expectKeyValueNotEquals() argument 713 if (request == null || key == null || expected == null) { in expectKeyValueNotEquals() 718 if ((value = expectKeyValueNotNull(request, key)) == null) { in expectKeyValueNotEquals() 780 public <T> void expectKeyValueEquals(Builder request, CaptureRequest.Key<T> key, T expected) { in expectKeyValueEquals() argument 781 if (request == null || key == null || expected == null) { in expectKeyValueEquals() 786 if ((value = expectKeyValueNotNull(request, key)) == null) { in expectKeyValueEquals() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | DummyConnectionService.java | 36 ConnectionRequest request) { in onCreateOutgoingConnection() argument 38 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in onCreateOutgoingConnection() 39 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection() 46 ConnectionRequest request) { in onCreateIncomingConnection() argument 48 connection.setVideoState(request.getVideoState()); in onCreateIncomingConnection() 50 request.getExtras().getParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS); in onCreateIncomingConnection()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | PacketReflector.java | 133 byte[] request = buf.clone(); in processIcmpPacket() 151 request[hdrLen] = buf[hdrLen]; // Type. in processIcmpPacket() 152 request[hdrLen + 2] = buf[hdrLen + 2]; // Checksum byte 1. in processIcmpPacket() 153 request[hdrLen + 3] = buf[hdrLen + 3]; // Checksum byte 2. in processIcmpPacket() 158 request[1] = (byte)(request[1] & 0xf0 | buf[1] & 0x0f); in processIcmpPacket() 159 request[2] = buf[2]; in processIcmpPacket() 160 request[3] = buf[3]; in processIcmpPacket() 164 if (buf[i] != request[i]) { in processIcmpPacket()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | ServiceWorkerClientTest.java | 84 WebResourceRequest request) { in shouldInterceptRequest() argument 87 if (request.getUrl().toString().equals(INDEX_URL)) { in shouldInterceptRequest() 100 public WebResourceResponse shouldInterceptRequest(WebResourceRequest request) { in shouldInterceptRequest() argument 102 mInterceptedRequests.add(request); in shouldInterceptRequest() 104 if (request.getUrl().toString().equals(SW_URL)) { in shouldInterceptRequest()
|
D | WebViewClientTest.java | 443 WebResourceRequest request) { in testShouldInterceptRequestParams() argument 445 assertNotNull(request); in testShouldInterceptRequestParams() 450 if (request.getUrl().getPath().equals(mainPath)) { in testShouldInterceptRequestParams() 452 interceptRequest = request; in testShouldInterceptRequestParams() 506 WebResourceRequest request) { in testShouldInterceptRequestResponse() argument 507 if (request.getUrl().toString().contains(interceptPath)) { in testShouldInterceptRequestResponse() 700 public void onReceivedError(WebView view, WebResourceRequest request, in onReceivedError() argument 702 super.onReceivedError(view, request, error); in onReceivedError() 707 public void onReceivedHttpError(WebView view, WebResourceRequest request, in onReceivedHttpError() argument 709 super.onReceivedHttpError(view, request, errorResponse); in onReceivedHttpError() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyTests.java | 90 copyHelper.request(surface, dest); in testErrors() 99 int result = copyHelper.request(surface, dest); in testErrors() 104 copyHelper.request(surface, dest); in testErrors() 144 int result = copyHelper.request(activity.getView(), bitmap); in testGlProducer() 157 result = copyHelper.request(activity.getView(), bitmap); in testGlProducer() 216 int result = copyHelper.request(activity.getView(), bitmap); in testNotLeaking() 250 copyResult = copyHelper.request(activity.getVideoView(), bitmap); in testVideoProducer() 363 public int request(Surface source, Bitmap dest) { in request() method in PixelCopyTests.SynchronousPixelCopy 365 PixelCopy.request(source, dest, this, sHandler); in request() 370 public int request(SurfaceView source, Bitmap dest) { in request() method in PixelCopyTests.SynchronousPixelCopy [all …]
|
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/ |
D | MainInteractionSession.java | 122 public void onRequestCompleteVoice(CompleteVoiceRequest request) { in onRequestCompleteVoice() argument 124 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestCompleteVoice() 127 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setCompleteReq(true); in onRequestCompleteVoice() 132 public void onRequestAbortVoice(AbortVoiceRequest request) { in onRequestAbortVoice() argument 134 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setCompleteReq(false); in onRequestAbortVoice()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmMockTest.java | 243 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequest() local 246 assertTrue(Arrays.equals(request.getData(), testRequest)); in testGetKeyRequest() 247 assertTrue(request.getDefaultUrl().equals(testDefaultUrl)); in testGetKeyRequest() 248 assertEquals(request.getRequestType(), MediaDrm.KeyRequest.REQUEST_TYPE_INITIAL); in testGetKeyRequest() 276 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequestNoOptionalParameters() local 279 assertTrue(Arrays.equals(request.getData(), testRequest)); in testGetKeyRequestNoOptionalParameters() 280 assertTrue(request.getDefaultUrl().equals(testDefaultUrl)); in testGetKeyRequestNoOptionalParameters() 281 assertEquals(request.getRequestType(), MediaDrm.KeyRequest.REQUEST_TYPE_INITIAL); in testGetKeyRequestNoOptionalParameters() 308 KeyRequest request = md.getKeyRequest(sessionId, initData, mimeType, in testGetKeyRequestOffline() local 311 assertTrue(Arrays.equals(request.getData(), testRequest)); in testGetKeyRequestOffline() [all …]
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 378 private void servedResponseFor(String path, HttpRequest request) { in servedResponseFor() argument 382 mLastRequestMap.put(path, request); in servedResponseFor() 396 private HttpResponse getResponse(HttpRequest request) throws InterruptedException { in getResponse() argument 400 RequestLine requestLine = request.getRequestLine(); in getResponse() 417 servedResponseFor(path, request); in getResponse() 423 servedResponseFor(path, request); in getResponse() 434 servedResponseFor(path, request); in getResponse() 587 HttpRequest request = conn.receiveRequestHeader(); in run() local 588 if (isShutdownRequest(request)) { in run() 592 HttpResponse response = mServer.getResponse(request); in run() [all …]
|
D | CtsTestServer.java | 462 String request = it.next(); in wasResourceRequested() local 463 if (request.endsWith(url)) { in wasResourceRequested() 522 protected HttpResponse onPost(HttpRequest request) throws Exception { in onPost() argument 541 private HttpResponse getResponse(HttpRequest request) throws Exception { in getResponse() argument 542 RequestLine requestLine = request.getRequestLine(); in getResponse() 549 mLastRequestMap.put(uriString, request); in getResponse() 550 if (request instanceof HttpEntityEnclosingRequest) { in getResponse() 551 mRequestEntities.add(((HttpEntityEnclosingRequest)request).getEntity()); in getResponse() 556 HttpResponse responseOnPost = onPost(request); in getResponse() 580 Header[] auth = request.getHeaders("Authorization"); in getResponse() [all …]
|
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionSession.java | 142 public void onRequestCompleteVoice(CompleteVoiceRequest request) { in onRequestCompleteVoice() argument 143 VoiceInteractor.Prompt prompt = request.getVoicePrompt(); in onRequestCompleteVoice() 147 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setCompleteReq(true); in onRequestCompleteVoice() 152 public void onRequestAbortVoice(AbortVoiceRequest request) { in onRequestAbortVoice() argument 153 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setCompleteReq(false); in onRequestAbortVoice()
|
/cts/tools/junit/src/com/android/cts/junit/ |
D | SingleJUnitTestRunner.java | 40 Request request = Request.method(Class.forName(classAndMethod[0]), in main() local 43 Result result = jUnitCore.run(request); in main()
|
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | CallBlockingTest.java | 129 PhoneAccountHandle connectionManagerAccount, ConnectionRequest request) { in onCreateIncomingConnection() argument 131 connection.setVideoState(request.getVideoState()); in onCreateIncomingConnection() 133 request.getExtras().getParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS); in onCreateIncomingConnection()
|