/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 | 70 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, DEFAULT_MIME); in testPutAndGetKeys() local 74 request.put(key, attributes.get(key)); in testPutAndGetKeys() 78 Iterator<String> infoKeys = request.keyIterator(); in testPutAndGetKeys() 81 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 87 assertEquals(request.get(key), attributes.get(key)); in testPutAndGetKeys() 91 Iterator<Object> iterator = request.iterator(); in testPutAndGetKeys() 101 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkInvalidMimeType() local 109 DrmInfoRequest request = new DrmInfoRequest(DEFAULT_TYPE, mimeType); in checkGetMimeType() local 110 assertEquals(request.getMimeType(), mimeType); in checkGetMimeType() 114 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkGetInfoType() local [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsConnectionService.java | 93 ConnectionRequest request) { in onCreateOutgoingConnection() argument 97 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 100 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection() 107 ConnectionRequest request) { in onCreateIncomingConnection() argument 111 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 114 connectionManagerPhoneAccount, request); in onCreateIncomingConnection() 162 ConnectionRequest request) { in createRemoteOutgoingConnectionToTelecom() argument 165 connectionManagerPhoneAccount, request); in createRemoteOutgoingConnectionToTelecom() 171 ConnectionRequest request) { in createRemoteIncomingConnectionToTelecom() argument 174 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() 73 ConnectionRequest request) { in onCreateIncomingConnection() argument 75 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateIncomingConnection() 77 ((Connection) connection).setVideoState(request.getVideoState()); in onCreateIncomingConnection()
|
D | NumberDialingTest.java | 50 ConnectionRequest request) { in testEndInPound() 51 res[0] = request.getAddress(); in testEndInPound()
|
D | DataObjectUnitTests.java | 136 ConnectionRequest request = new ConnectionRequest( in testConnectionRequest() local 141 assertEquals(accountHandle, request.getAccountHandle()); in testConnectionRequest() 142 assertEquals(Uri.parse("tel:555-TEST"), request.getAddress()); in testConnectionRequest() 145 request.getExtras().getString(TelecomManager.GATEWAY_PROVIDER_PACKAGE)); in testConnectionRequest() 146 assertEquals(VideoProfile.STATE_AUDIO_ONLY, request.getVideoState()); in testConnectionRequest() 147 assertEquals(0, request.describeContents()); in testConnectionRequest() 152 request.writeToParcel(p, 0); in testConnectionRequest()
|
D | MockVideoProvider.java | 169 public void sendMockSessionModifyRequest(VideoProfile request) { in sendMockSessionModifyRequest() argument 170 super.receiveSessionModifyRequest(request); in sendMockSessionModifyRequest()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | MainInteractionSession.java | 93 public void onRequestConfirmation(ConfirmationRequest request) { in onRequestConfirmation() argument 94 Bundle extras = request.getExtras(); in onRequestConfirmation() 95 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestConfirmation() 99 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestConfirmation() 113 public void onRequestCompleteVoice(CompleteVoiceRequest request) { in onRequestCompleteVoice() argument 114 Bundle extras = request.getExtras(); in onRequestCompleteVoice() 115 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestCompleteVoice() 119 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestCompleteVoice() 133 public void onRequestAbortVoice(AbortVoiceRequest request) { in onRequestAbortVoice() argument 134 Bundle extras = request.getExtras(); in onRequestAbortVoice() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | CameraDeviceTest.java | 428 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument 453 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument 471 CaptureRequest.Builder request = in testChainedOperation() local 473 request.addTarget(mReaderSurface); in testChainedOperation() 478 session.capture(request.build(), mCaptureCallback, mHandler); in testChainedOperation() 480 session.setRepeatingRequest(request.build(), in testChainedOperation() 702 CaptureRequest request = builder.build(); in testCreateSessionsByCamera() local 704 session.capture(request, captureListener, mHandler); in testCreateSessionsByCamera() 705 captureListener.getCaptureResultForRequest(request, CAPTURE_TIMEOUT_MS); in testCreateSessionsByCamera() 1220 private void checkFpsRange(CaptureRequest.Builder request, int template, in checkFpsRange() argument [all …]
|
D | AllocationTest.java | 137 private static void setManualCaptureRequest(CaptureRequest.Builder request, int sensitivity, in setManualCaptureRequest() argument 147 request.set(CaptureRequest.CONTROL_MODE, CaptureRequest.CONTROL_MODE_OFF); in setManualCaptureRequest() 148 request.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF); in setManualCaptureRequest() 149 request.set(CaptureRequest.CONTROL_AWB_MODE, CaptureRequest.CONTROL_AWB_MODE_OFF); in setManualCaptureRequest() 150 request.set(CaptureRequest.CONTROL_AF_MODE, CaptureRequest.CONTROL_AF_MODE_OFF); in setManualCaptureRequest() 151 request.set(CaptureRequest.CONTROL_EFFECT_MODE, CaptureRequest.CONTROL_EFFECT_MODE_OFF); in setManualCaptureRequest() 152 request.set(CaptureRequest.SENSOR_FRAME_DURATION, 0L); in setManualCaptureRequest() 153 request.set(CaptureRequest.SENSOR_SENSITIVITY, sensitivity); in setManualCaptureRequest() 154 request.set(CaptureRequest.SENSOR_EXPOSURE_TIME, expTimeNs); in setManualCaptureRequest() 155 request.set(CaptureRequest.COLOR_CORRECTION_MODE, in setManualCaptureRequest() [all …]
|
D | CaptureResultTest.java | 628 CameraCaptureSession session, CaptureRequest request, long timestamp, long frameNumber) in onCaptureStarted() argument 630 checkCallbackOrder(request); in onCaptureStarted() 631 createMapEntryIfNecessary(request); in onCaptureStarted() 635 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument 638 List<CaptureResult> partialResultsList = mPartialResultsMap.get(request); in onCaptureCompleted() 644 mPartialResultsMap.remove(request); in onCaptureCompleted() 645 boolean newEntryAdded = completedRequests.add(request); in onCaptureCompleted() 647 Integer frame = (Integer) request.getTag(); in onCaptureCompleted() 658 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() argument 660 createMapEntryIfNecessary(request); in onCaptureProgressed() [all …]
|
/cts/tests/tests/hardware/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 | 655 public <T> T expectKeyValueNotNull(CaptureRequest request, in expectKeyValueNotNull() argument 658 T value = request.get(key); in expectKeyValueNotNull() 673 public <T> T expectKeyValueNotNull(Builder request, CaptureRequest.Key<T> key) { in expectKeyValueNotNull() argument 675 T value = request.get(key); in expectKeyValueNotNull() 720 Builder request, CaptureRequest.Key<T> key, T expected) { in expectKeyValueNotEquals() argument 721 if (request == null || key == null || expected == null) { in expectKeyValueNotEquals() 726 if ((value = expectKeyValueNotNull(request, key)) == null) { in expectKeyValueNotEquals() 788 public <T> void expectKeyValueEquals(Builder request, CaptureRequest.Key<T> key, T expected) { in expectKeyValueEquals() argument 789 if (request == null || key == null || expected == null) { in expectKeyValueEquals() 794 if ((value = expectKeyValueNotNull(request, key)) == null) { in expectKeyValueEquals() [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/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() 155 if (buf[i] != request[i]) { in processIcmpPacket()
|
/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/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/tests/tests/voicesettings/service/src/android/voicesettings/service/ |
D | MainInteractionSession.java | 140 public void onRequestCompleteVoice(CompleteVoiceRequest request) { in onRequestCompleteVoice() argument 141 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestCompleteVoice() 144 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setCompleteReq(true); in onRequestCompleteVoice() 149 public void onRequestAbortVoice(AbortVoiceRequest request) { in onRequestAbortVoice() argument 150 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setCompleteReq(false); in onRequestAbortVoice()
|
/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 | 527 String request = it.next(); in wasResourceRequested() local 528 if (request.endsWith(url)) { in wasResourceRequested() 587 protected HttpResponse onPost(HttpRequest request) throws Exception { in onPost() argument 606 private HttpResponse getResponse(HttpRequest request) throws Exception { in getResponse() argument 607 RequestLine requestLine = request.getRequestLine(); in getResponse() 614 mLastRequestMap.put(uriString, request); in getResponse() 615 if (request instanceof HttpEntityEnclosingRequest) { in getResponse() 616 mRequestEntities.add(((HttpEntityEnclosingRequest)request).getEntity()); in getResponse() 621 HttpResponse responseOnPost = onPost(request); in getResponse() 645 Header[] auth = request.getHeaders("Authorization"); in getResponse() [all …]
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewClientTest.java | 402 WebResourceRequest request) { in testShouldInterceptRequestParams() argument 404 assertNotNull(request); in testShouldInterceptRequestParams() 409 if (request.getUrl().getPath().equals(mainPath)) { in testShouldInterceptRequestParams() 411 interceptRequest = request; in testShouldInterceptRequestParams() 465 WebResourceRequest request) { in testShouldInterceptRequestResponse() argument 466 if (request.getUrl().toString().contains(interceptPath)) { in testShouldInterceptRequestResponse() 634 public void onReceivedError(WebView view, WebResourceRequest request, in onReceivedError() argument 636 super.onReceivedError(view, request, error); in onReceivedError() 641 public void onReceivedHttpError(WebView view, WebResourceRequest request, in onReceivedHttpError() argument 643 super.onReceivedHttpError(view, request, errorResponse); in onReceivedHttpError()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/testcases/ |
D | Camera2SurfaceViewTestCase.java | 171 protected void startPreview(CaptureRequest.Builder request, Size previewSz, in startPreview() argument 179 configurePreviewOutput(request); in startPreview() 181 mSession.setRepeatingRequest(request.build(), listener, mHandler); in startPreview() 189 protected void configurePreviewOutput(CaptureRequest.Builder request) in configurePreviewOutput() argument 196 request.addTarget(mPreviewSurface); in configurePreviewOutput() 378 CaptureRequest request, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument 380 return captureRequestsSynchronized(request, /*count*/1, listener, handler); in captureRequestsSynchronized() 406 CaptureRequest request, int count, CaptureCallback listener, Handler handler) in captureRequestsSynchronized() argument 422 mSession.capture(request, listener, handler); in captureRequestsSynchronized()
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | ApacheHttpClientTest.java | 61 HttpGet request = new HttpGet(getSmallDownloadUrl(i).toString()); in downloadMultipleFiles() local 62 HttpResponse response = httpClient.execute(request); in downloadMultipleFiles()
|