Home
last modified time | relevance | path

Searched refs:request (Results 1 – 25 of 118) sorted by relevance

12345

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DExtractedTextRequestTest.java34 ExtractedTextRequest request = new ExtractedTextRequest(); in testExtractedTextRequest() local
35 request.flags = 1; in testExtractedTextRequest()
36 request.hintMaxChars = 100; in testExtractedTextRequest()
37 request.hintMaxLines = 10; in testExtractedTextRequest()
38 request.token = 2; in testExtractedTextRequest()
40 assertEquals(0, request.describeContents()); in testExtractedTextRequest()
43 request.writeToParcel(p, 0); in testExtractedTextRequest()
47 assertEquals(request.flags, target.flags); in testExtractedTextRequest()
48 assertEquals(request.hintMaxChars, request.hintMaxChars); in testExtractedTextRequest()
49 assertEquals(request.hintMaxLines, target.hintMaxLines); in testExtractedTextRequest()
[all …]
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java41 public int request(Surface source, Bitmap dest) { in request() method in SynchronousPixelCopy
43 PixelCopy.request(source, dest, this, sHandler); in request()
48 public int request(Surface source, Rect srcRect, Bitmap dest) { in request() method in SynchronousPixelCopy
50 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
55 public int request(SurfaceView source, Bitmap dest) { in request() method in SynchronousPixelCopy
57 PixelCopy.request(source, dest, this, sHandler); in request()
62 public int request(SurfaceView source, Rect srcRect, Bitmap dest) { in request() method in SynchronousPixelCopy
64 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
69 public int request(Window source, Bitmap dest) { in request() method in SynchronousPixelCopy
71 PixelCopy.request(source, dest, this, sHandler); in request()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsSelfManagedConnectionService.java94 final ConnectionRequest request) { in onCreateOutgoingConnection() argument
96 return createSelfManagedConnection(request, false); in onCreateOutgoingConnection()
101 ConnectionRequest request) { in onCreateIncomingConnection() argument
103 return createSelfManagedConnection(request, true); in onCreateIncomingConnection()
108 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument
114 ConnectionRequest request) { in onCreateOutgoingConnectionFailed() argument
120 ConnectionRequest request) { in onCreateIncomingHandoverConnection() argument
121 mOnCreateIncomingHandoverConnectionCounter.invoke(fromPhoneAccountHandle, request); in onCreateIncomingHandoverConnection()
122 return createSelfManagedConnection(request, true /* incoming */); in onCreateIncomingHandoverConnection()
127 ConnectionRequest request) { in onCreateOutgoingHandoverConnection() argument
[all …]
DMockConnectionService.java69 ConnectionRequest request) { in onCreateOutgoingConnection() argument
71 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateOutgoingConnection()
80 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection()
82 if (request.isRequestingRtt()) { in onCreateOutgoingConnection()
83 connection.setRttTextStream(request.getRttTextStream()); in onCreateOutgoingConnection()
98 ConnectionRequest request) { in onCreateIncomingConnection() argument
100 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateIncomingConnection()
106 ((Connection) connection).setVideoState(request.getVideoState()); in onCreateIncomingConnection()
107 if (request.isRequestingRtt()) { in onCreateIncomingConnection()
108 connection.setRttTextStream(request.getRttTextStream()); in onCreateIncomingConnection()
DCtsRemoteConnectionService.java92 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()
DCtsConnectionService.java87 ConnectionRequest request) { in onCreateOutgoingConnection() argument
91 connectionManagerPhoneAccount, request); in onCreateOutgoingConnection()
100 ConnectionRequest request) { in onCreateIncomingConnection() argument
104 connectionManagerPhoneAccount, request); in onCreateIncomingConnection()
153 ConnectionRequest request) { in createRemoteOutgoingConnectionToTelecom() argument
156 connectionManagerPhoneAccount, request); in createRemoteOutgoingConnectionToTelecom()
162 ConnectionRequest request) { in createRemoteIncomingConnectionToTelecom() argument
165 connectionManagerPhoneAccount, request); in createRemoteIncomingConnectionToTelecom()
/cts/tests/tests/telephony/src/android/telephony/embms/cts/
DMbmsDownloadCallbackTest.java37 public void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, in onStatusUpdated() argument
40 args.arg1 = request; in onStatusUpdated()
59 public void onProgressUpdated(DownloadRequest request, FileInfo fileInfo, int in onProgressUpdated() argument
63 args.arg1 = request; in onProgressUpdated()
85 DownloadRequest request = downloadRequestTemplate.build(); in testFullCallback() local
86 mDownloadSession.addStatusListener(request, mCallbackExecutor, statusCallback); in testFullCallback()
87 mDownloadSession.addProgressListener(request, mCallbackExecutor, progressCallback); in testFullCallback()
88 mMiddlewareControl.fireOnProgressUpdated(request, CtsDownloadService.FILE_INFO_1, in testFullCallback()
91 assertEquals(request, progressArgs.arg1); in testFullCallback()
98 mMiddlewareControl.fireOnStateUpdated(request, CtsDownloadService.FILE_INFO_1, sampleInt); in testFullCallback()
[all …]
DMbmsDownloadSessionTest.java142 DownloadRequest request = downloadRequestTemplate.build(); in testResetDownloadKnowledge() local
143 mDownloadSession.resetDownloadKnowledge(request); in testResetDownloadKnowledge()
148 assertEquals(request, resetDownloadKnowledgeCalls.get(0).getParcelable( in testResetDownloadKnowledge()
153 DownloadRequest request = downloadRequestTemplate.build(); in testGetDownloadStatus() local
154 mDownloadSession.requestDownloadState(request, CtsDownloadService.FILE_INFO_1); in testGetDownloadStatus()
159 assertEquals(request, getDownloadStatusCalls.get(0).getParcelable( in testGetDownloadStatus()
166 DownloadRequest request = downloadRequestTemplate.build(); in testCancelDownload() local
167 mDownloadSession.cancelDownload(request); in testCancelDownload()
172 assertEquals(request, cancelDownloadCalls.get(0).getParcelable( in testCancelDownload()
181 DownloadRequest request = downloadRequestTemplate.setAppIntent(new Intent()).build(); in testListPendingDownloads() local
[all …]
DMbmsDownloadFlowTest.java54 DownloadRequest request = downloadRequestTemplate in testSingleFileDownloadFlow() local
57 mDownloadSession.download(request); in testSingleFileDownloadFlow()
60 Uri fileUri = checkReceivedDownloadCompleteIntent(captor.getIntent(), request, in testSingleFileDownloadFlow()
69 DownloadRequest request = new DownloadRequest.Builder( in testFileInSubdirectoryDownloadFlow() local
75 mDownloadSession.download(request); in testFileInSubdirectoryDownloadFlow()
78 Uri fileUri = checkReceivedDownloadCompleteIntent(captor.getIntent(), request, in testFileInSubdirectoryDownloadFlow()
92 DownloadRequest request = new DownloadRequest.Builder( in testMultiFileDownloadFlow() local
98 mDownloadSession.download(request); in testMultiFileDownloadFlow()
106 i, request, CtsDownloadService.FILE_INFO_1); in testMultiFileDownloadFlow()
109 i, request, CtsDownloadService.FILE_INFO_2); in testMultiFileDownloadFlow()
/cts/tests/tests/drm/src/android/drm/cts/
DDrmInfoRequestTest.java72 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/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DCtsConnectionService.java107 final ConnectionRequest request) { in onCreateOutgoingConnection() argument
109 return createManagedConnection(request, false); in onCreateOutgoingConnection()
114 ConnectionRequest request) { in onCreateIncomingConnection() argument
116 return createManagedConnection(request, true); in onCreateIncomingConnection()
121 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument
126 ConnectionRequest request) { in onCreateOutgoingConnectionFailed() argument
129 private Connection createManagedConnection(ConnectionRequest request, boolean isIncoming) { in createManagedConnection() argument
130 boolean isSelfManaged = request.getAccountHandle().equals( in createManagedConnection()
134 request.getExtras().getBoolean(CtsConnection.EXTRA_PLAY_CS_AUDIO, false); in createManagedConnection()
142 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createManagedConnection()
[all …]
DCtsSelfManagedConnectionService.java81 ConnectionRequest request) { in onCreateIncomingConnection() argument
82 return createConnection(request, true /* isIncoming */); in onCreateIncomingConnection()
87 ConnectionRequest request) { in onCreateOutgoingConnection() argument
88 return createConnection(request, false /* isIncoming */); in onCreateOutgoingConnection()
91 private Connection createConnection(ConnectionRequest request, boolean isIncoming) { in createConnection() argument
93 request.getExtras().getBoolean(CtsConnection.EXTRA_PLAY_CS_AUDIO, false); in createConnection()
98 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createConnection()
99 connection.setExtras(request.getExtras()); in createConnection()
103 request.getAccountHandle()); in createConnection()
105 connection.setVideoState(request.getVideoState()); in createConnection()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java89 PinItemRequest request = getShortcutRequestForPackage1(); in testCreateShortcutResultIntent_defaultLauncher() local
91 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultLauncher()
92 assertTrue(request.accept()); in testCreateShortcutResultIntent_defaultLauncher()
98 PinItemRequest request = getShortcutRequestForPackage1(); in testCreateShortcutResultIntent_defaultChanges() local
103 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultChanges()
104 assertTrue(request.accept()); in testCreateShortcutResultIntent_defaultChanges()
110 PinItemRequest request = getShortcutRequestForPackage1(); in testCreateShortcutResultIntent_noDefault() local
114 assertFalse(request.isValid()); in testCreateShortcutResultIntent_noDefault()
115 assertExpectException(SecurityException.class, null, request::accept); in testCreateShortcutResultIntent_noDefault()
128 PinItemRequest request = getLauncherApps().getPinItemRequest(intent); in getShortcutRequestForPackage1()
[all …]
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DCommReceiver.java38 protected Payload handleRequest(Context context, Payload request) { in handleRequest() argument
40 if (request.hasTestServiceRequest()) { in handleRequest()
41 handleBatterySaverBgServiceRequest(context, request, responseBuilder); in handleRequest()
47 Payload request, Payload.Builder responseBuilder) { in handleBatterySaverBgServiceRequest() argument
50 if (request.getTestServiceRequest().getClearLastIntent()) { in handleBatterySaverBgServiceRequest()
56 } else if (request.getTestServiceRequest().getGetLastIntent()) { in handleBatterySaverBgServiceRequest()
64 } else if (request.getTestServiceRequest().hasStartService()) { in handleBatterySaverBgServiceRequest()
67 final String action = request.getTestServiceRequest().getStartService().getAction(); in handleBatterySaverBgServiceRequest()
68 final boolean fg = request.getTestServiceRequest().getStartService().getForeground(); in handleBatterySaverBgServiceRequest()
83 } else if (request.getTestServiceRequest().hasSetAlarm()) { in handleBatterySaverBgServiceRequest()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java153 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in requestFont() local
158 mContext, request, mMainThreadHandler, null, callback)); in requestFont()
168 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in requestFontNegativeErrorCode() local
173 mContext, request, mMainThreadHandler, null, callback)); in requestFontNegativeErrorCode()
185 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in querySingleFont() local
188 mContext, null /* cancellation signal */, request); in querySingleFont()
202 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryMultipleFont() local
205 mContext, null /* cancellation signal */, request); in queryMultipleFont()
220 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryAttributes() local
223 mContext, null /* cancellation signal */, request); in queryAttributes()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraDeviceTest.java466 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument
492 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in testChainedOperation() argument
511 CaptureRequest.Builder request = in testChainedOperation() local
513 request.addTarget(mReaderSurface); in testChainedOperation()
518 session.capture(request.build(), mCaptureCallback, mHandler); in testChainedOperation()
520 session.setRepeatingRequest(request.build(), in testChainedOperation()
770 CaptureRequest request = builder.build(); in testCreateCustomSessionByCamera() local
772 mSession.capture(request, captureListener, mHandler); in testCreateCustomSessionByCamera()
773 captureListener.getCaptureResultForRequest(request, CAPTURE_TIMEOUT_MS); in testCreateCustomSessionByCamera()
859 CaptureRequest request = builder.build(); in testSessionConfiguration() local
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraSessionUtils.java117 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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java196 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/
DMainInteractionSession.java111 public void onRequestConfirmation(ConfirmationRequest request) { in onRequestConfirmation() argument
112 Bundle extras = request.getExtras(); in onRequestConfirmation()
113 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestConfirmation()
117 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestConfirmation()
131 public void onRequestCompleteVoice(CompleteVoiceRequest request) { in onRequestCompleteVoice() argument
132 Bundle extras = request.getExtras(); in onRequestCompleteVoice()
133 CharSequence prompt = request.getVoicePrompt().getVoicePromptAt(0); in onRequestCompleteVoice()
137 AsyncTaskArg asyncTaskArg = new AsyncTaskArg().setRequest(request).setExtras(extras); in onRequestCompleteVoice()
151 public void onRequestAbortVoice(AbortVoiceRequest request) { in onRequestAbortVoice() argument
152 Bundle extras = request.getExtras(); in onRequestAbortVoice()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDummyConnectionService.java39 ConnectionRequest request) { in onCreateOutgoingConnection() argument
41 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in onCreateOutgoingConnection()
42 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection()
49 ConnectionRequest request) { in onCreateIncomingConnection() argument
51 connection.setVideoState(request.getVideoState()); in onCreateIncomingConnection()
53 request.getExtras().getParcelable(TelecomManager.EXTRA_INCOMING_CALL_ADDRESS); in onCreateIncomingConnection()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastRpcBase.java52 protected abstract byte[] requestToBytes(TRequest request); in requestToBytes() argument
57 public TResponse invoke(ComponentName targetReceiver, TRequest request) throws Exception { in invoke() argument
59 Log.i(TAG, "Sending to: " + targetReceiver + (VERBOSE ? "\nRequest: " + request : "")); in invoke()
64 .putExtra(EXTRA_PAYLOAD, requestToBytes(request)); in invoke()
110 final TRequest request = bytesToRequest(intent.getByteArrayExtra(EXTRA_PAYLOAD)); in onReceive() local
112 Log.i(TAG, "Request received: " + (VERBOSE ? request.toString() : "")); in onReceive()
119 response = handleRequest(context, request); in onReceive()
139 protected abstract TResponse handleRequest(Context context, TRequest request) in handleRequest() argument
/cts/tests/autofillservice/src/android/autofillservice/cts/
DInstrumentedAutoFillService.java178 public void onFillRequest(android.service.autofill.FillRequest request, in onFillRequest() argument
180 if (DUMP_FILL_REQUESTS) dumpStructure("onFillRequest()", request.getFillContexts()); in onFillRequest()
182 if (sIgnoreUnexpectedRequests || !fromSamePackage(request.getFillContexts())) { in onFillRequest()
187 sReplier.onFillRequest(request.getFillContexts(), request.getClientState(), in onFillRequest()
188 cancellationSignal, callback, request.getFlags()); in onFillRequest()
192 public void onSaveRequest(android.service.autofill.SaveRequest request, in onSaveRequest() argument
194 if (DUMP_SAVE_REQUESTS) dumpStructure("onSaveRequest()", request.getFillContexts()); in onSaveRequest()
196 if (sIgnoreUnexpectedRequests || !fromSamePackage(request.getFillContexts())) { in onSaveRequest()
201 sReplier.onSaveRequest(request.getFillContexts(), request.getClientState(), callback, in onSaveRequest()
202 request.getDatasetIds()); in onSaveRequest()
[all …]
DDuplicateIdActivityTest.java66 private AssistStructure.ViewNode[] findViews(InstrumentedAutoFillService.FillRequest request) { in findViews() argument
67 assertThat(request.structure.getWindowNodeCount()).isEqualTo(1); in findViews()
68 AssistStructure.WindowNode windowNode = request.structure.getWindowNodeAt(0); in findViews()
92 InstrumentedAutoFillService.FillRequest request = sReplier.getNextFillRequest(); in testDoNotRestoreDuplicateAutofillIds() local
94 AssistStructure.ViewNode[] views = findViews(request); in testDoNotRestoreDuplicateAutofillIds()
122 request = sReplier.getNextFillRequest(); in testDoNotRestoreDuplicateAutofillIds()
127 views = findViews(request); in testDoNotRestoreDuplicateAutofillIds()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DPacketReflector.java133 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/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/
DShortcutConfirmPin.java46 final PinItemRequest request = launcherApps.getPinItemRequest(getIntent()); in onCreate() local
49 final ShortcutInfo shortcut = request.getShortcutInfo(); in onCreate()
57 if (!request.isValid()) { in onCreate()
61 if (request.getRequestType() != PinItemRequest.REQUEST_TYPE_SHORTCUT) { in onCreate()
104 request.accept(); in onCreate()
105 if (request.isValid()) { in onCreate()

12345