Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/base/core/jni/
Dandroid_hardware_UsbRequest.cpp62 struct usb_request* request = usb_request_new(device, &desc); in android_hardware_UsbRequest_init() local
63 if (request) in android_hardware_UsbRequest_init()
64 env->SetLongField(thiz, field_context, (jlong)request); in android_hardware_UsbRequest_init()
65 return (request != NULL); in android_hardware_UsbRequest_init()
72 struct usb_request* request = get_request_from_object(env, thiz); in android_hardware_UsbRequest_close() local
73 if (request) { in android_hardware_UsbRequest_close()
74 usb_request_free(request); in android_hardware_UsbRequest_close()
83 struct usb_request* request = get_request_from_object(env, thiz); in android_hardware_UsbRequest_queue_array() local
84 if (!request) { in android_hardware_UsbRequest_queue_array()
90 request->buffer = malloc(length); in android_hardware_UsbRequest_queue_array()
[all …]
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp485 ResTable_config config1, config2, request; in TEST() local
487 fillIn(NULL, NULL, NULL, NULL, &request); in TEST()
490 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
491 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
493 fillIn("fr", "CA", NULL, NULL, &request); in TEST()
496 EXPECT_FALSE(config1.isLocaleBetterThan(config2, &request)); in TEST()
497 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
499 fillIn("fr", "CA", NULL, NULL, &request); in TEST()
502 EXPECT_TRUE(config1.isLocaleBetterThan(config2, &request)); in TEST()
503 EXPECT_FALSE(config2.isLocaleBetterThan(config1, &request)); in TEST()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/android/net/util/
DTetheringUtilsTest.java49 final TetheringRequestParcel request = new TetheringRequestParcel(); in makeTetheringRequestParcel() local
50 request.tetheringType = TETHERING_WIFI; in makeTetheringRequestParcel()
51 request.localIPv4Address = TEST_SERVER_ADDR; in makeTetheringRequestParcel()
52 request.staticClientAddress = TEST_CLIENT_ADDR; in makeTetheringRequestParcel()
53 request.exemptFromEntitlementCheck = false; in makeTetheringRequestParcel()
54 request.showProvisioningUi = true; in makeTetheringRequestParcel()
55 return request; in makeTetheringRequestParcel()
60 TetheringRequestParcel request = makeTetheringRequestParcel(); in testIsTetheringRequestEquals() local
63 assertTrue(TetheringUtils.isTetheringRequestEquals(mTetheringRequest, request)); in testIsTetheringRequestEquals()
68 request = makeTetheringRequestParcel(); in testIsTetheringRequestEquals()
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleHeap.java79 public Chunk handleChunk(Chunk request) { in handleChunk() argument
81 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
82 int type = request.type; in handleChunk()
85 return handleHPIF(request); in handleChunk()
87 return handleHPSGNHSG(request, false); in handleChunk()
89 return handleHPDU(request); in handleChunk()
91 return handleHPDS(request); in handleChunk()
93 return handleHPSGNHSG(request, true); in handleChunk()
95 return handleHPGC(request); in handleChunk()
97 return handleREAE(request); in handleChunk()
[all …]
DDdmHandleProfiling.java74 public Chunk handleChunk(Chunk request) { in handleChunk() argument
76 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
77 int type = request.type; in handleChunk()
80 return handleMPRS(request); in handleChunk()
82 return handleMPRE(request); in handleChunk()
84 return handleMPSS(request); in handleChunk()
86 return handleMPSEOrSPSE(request, "Method"); in handleChunk()
88 return handleMPRQ(request); in handleChunk()
90 return handleSPSS(request); in handleChunk()
92 return handleMPSEOrSPSE(request, "Sample"); in handleChunk()
[all …]
/frameworks/av/camera/ndk/include/camera/
DNdkCaptureRequest.h126 camera_status_t ACaptureRequest_addTarget(ACaptureRequest* request,
141 camera_status_t ACaptureRequest_removeTarget(ACaptureRequest* request,
162 …const ACaptureRequest* request, uint32_t tag, ACameraMetadata_const_entry* entry) __INTRODUCED_IN(…
183 …const ACaptureRequest* request, /*out*/int32_t* numTags, /*out*/const uint32_t** tags) __INTRODUCE…
202 … ACaptureRequest* request, uint32_t tag, uint32_t count, const uint8_t* data) __INTRODUCED_IN(24);
221 … ACaptureRequest* request, uint32_t tag, uint32_t count, const int32_t* data) __INTRODUCED_IN(24);
240 … ACaptureRequest* request, uint32_t tag, uint32_t count, const float* data) __INTRODUCED_IN(24);
259 … ACaptureRequest* request, uint32_t tag, uint32_t count, const int64_t* data) __INTRODUCED_IN(24);
278 … ACaptureRequest* request, uint32_t tag, uint32_t count, const double* data) __INTRODUCED_IN(24);
297 ACaptureRequest* request, uint32_t tag, uint32_t count,
[all …]
/frameworks/av/media/libstagefright/rtsp/
DMyTransmitter.h220 AString request; in issueAnnounce() local
221 request.append("ANNOUNCE "); in issueAnnounce()
222 request.append(mStreamURL); in issueAnnounce()
223 request.append(" RTSP/1.0\r\n"); in issueAnnounce()
225 addAuthentication(&request, "ANNOUNCE", mStreamURL.c_str()); in issueAnnounce()
227 request.append("Content-Type: application/sdp\r\n"); in issueAnnounce()
228 request.append("Content-Length: "); in issueAnnounce()
229 request.append(sdp.size()); in issueAnnounce()
230 request.append("\r\n"); in issueAnnounce()
232 request.append("\r\n"); in issueAnnounce()
[all …]
/frameworks/base/cmds/incidentd/src/
DReporter.cpp97 StreamingFilterFd(uint8_t privacyPolicy, int fd, const sp<ReportRequest>& request);
106 const sp<ReportRequest>& request) in StreamingFilterFd() argument
108 mRequest(request) { in StreamingFilterFd()
183 sp<ReportRequest> request = found->second; in addPersistedReport() local
184 request->args.merge(args); in addPersistedReport()
214 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachStreamingRequest() local
215 request != mStreamingRequests.end(); request++) { in forEachStreamingRequest()
216 func(*request); in forEachStreamingRequest()
229 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachListener() local
230 request != mStreamingRequests.end(); request++) { in forEachListener()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DSystemTextClassifier.java76 public TextSelection suggestSelection(TextSelection.Request request) { in suggestSelection() argument
77 Preconditions.checkNotNull(request); in suggestSelection()
80 request.setCallingPackageName(mPackageName); in suggestSelection()
81 request.setUserId(mUserId); in suggestSelection()
84 mManagerService.onSuggestSelection(mSessionId, request, callback); in suggestSelection()
92 return mFallback.suggestSelection(request); in suggestSelection()
100 public TextClassification classifyText(TextClassification.Request request) { in classifyText() argument
101 Preconditions.checkNotNull(request); in classifyText()
104 request.setCallingPackageName(mPackageName); in classifyText()
105 request.setUserId(mUserId); in classifyText()
[all …]
DTextClassifierImpl.java182 public TextSelection suggestSelection(TextSelection.Request request) { in suggestSelection() argument
183 Preconditions.checkNotNull(request); in suggestSelection()
186 final int rangeLength = request.getEndIndex() - request.getStartIndex(); in suggestSelection()
187 final String string = request.getText().toString(); in suggestSelection()
190 final String localesString = concatenateLocales(request.getDefaultLocales()); in suggestSelection()
191 final String detectLanguageTags = detectLanguageTagsFromText(request.getText()); in suggestSelection()
193 final AnnotatorModel annotatorImpl = getAnnotatorImpl(request.getDefaultLocales()); in suggestSelection()
196 if (mSettings.isModelDarkLaunchEnabled() && !request.isDarkLaunchAllowed()) { in suggestSelection()
197 start = request.getStartIndex(); in suggestSelection()
198 end = request.getEndIndex(); in suggestSelection()
[all …]
/frameworks/libs/net/common/device/android/net/
DNetworkFactory.java125 public void onNetworkRequested(@NonNull NetworkRequest request, int score, in register()
127 handleAddRequest(request, score, servingProviderId); in register()
131 public void onNetworkRequestWithdrawn(@NonNull NetworkRequest request) { in register()
132 handleRemoveRequest(request); in register()
178 public final NetworkRequest request; field in NetworkFactory.NetworkRequestInfo
183 NetworkRequestInfo(NetworkRequest request, int score, int providerId) { in NetworkRequestInfo() argument
184 this.request = request; in NetworkRequestInfo()
192 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString()
206 protected void handleAddRequest(NetworkRequest request, int score, int servingProviderId) { in handleAddRequest() argument
207 NetworkRequestInfo n = mNetworkRequests.get(request); in handleAddRequest()
[all …]
/frameworks/base/obex/javax/obex/
DServerSession.java165 HeaderSet request = new HeaderSet(); in handleAbortRequest() local
176 code = mListener.onAbort(request, reply); in handleAbortRequest()
305 HeaderSet request = new HeaderSet(); in handleSetPathRequest() local
326 ObexHelper.updateHeaderSet(request, headers); in handleSetPathRequest()
328 if (mListener.getConnectionId() != -1 && request.mConnectionID != null) { in handleSetPathRequest()
329 mListener.setConnectionId(ObexHelper.convertToLong(request.mConnectionID)); in handleSetPathRequest()
334 if (request.mAuthResp != null) { in handleSetPathRequest()
335 if (!handleAuthResp(request.mAuthResp)) { in handleSetPathRequest()
338 request.mAuthResp)); in handleSetPathRequest()
340 request.mAuthResp = null; in handleSetPathRequest()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java136 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_thresholdTooLow_setsDefaultThreshold() local
138 assertTrue(request.requestId > 0); in testRegister_thresholdTooLow_setsDefaultThreshold()
139 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_thresholdTooLow_setsDefaultThreshold()
140 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testRegister_thresholdTooLow_setsDefaultThreshold()
149 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_highThreshold_accepted() local
151 assertTrue(request.requestId > 0); in testRegister_highThreshold_accepted()
152 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_highThreshold_accepted()
153 assertEquals(highThresholdBytes, request.thresholdInBytes); in testRegister_highThreshold_accepted()
187 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testUnregister_knownRequest_releasesCaller() local
189 assertTrue(request.requestId > 0); in testUnregister_knownRequest_releasesCaller()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DUpdateResponseMessageTest.java41 SoapSerializationEnvelope request = UpdateResponseMessage.serializeToSoapEnvelope( in serializeUpdateResponseMessageWithSessionIdWithoutError() local
43 assertNotNull(request); in serializeUpdateResponseMessageWithSessionIdWithoutError()
44 assertEquals(SoapEnvelope.VER12, request.version); in serializeUpdateResponseMessageWithSessionIdWithoutError()
45 SoapObject soapRequest = (SoapObject) request.bodyOut; in serializeUpdateResponseMessageWithSessionIdWithoutError()
59 SoapSerializationEnvelope request = UpdateResponseMessage.serializeToSoapEnvelope( in serializeUpdateResponseMessageWithError() local
61 assertNotNull(request); in serializeUpdateResponseMessageWithError()
62 assertEquals(SoapEnvelope.VER12, request.version); in serializeUpdateResponseMessageWithError()
63 SoapObject soapRequest = (SoapObject) request.bodyOut; in serializeUpdateResponseMessageWithError()
80 private void verifyCommonFields(SoapObject request) { in verifyCommonFields() argument
81 assertEquals(request.getNamespace(), SoapEnvelope.NS20); in verifyCommonFields()
[all …]
DPostDevDataMessageTest.java100 SoapSerializationEnvelope request = PostDevDataMessage.serializeToSoapEnvelope(mContext, in serializePostDevDataRequestWithoutSessionId() local
103 assertNotNull(request); in serializePostDevDataRequestWithoutSessionId()
104 assertEquals(SoapEnvelope.VER12, request.version); in serializePostDevDataRequestWithoutSessionId()
105 SoapObject soapRequest = (SoapObject) request.bodyOut; in serializePostDevDataRequestWithoutSessionId()
116 SoapSerializationEnvelope request = PostDevDataMessage.serializeToSoapEnvelope(mContext, in serializePostDevDataRequestWithSessionId() local
119 assertNotNull(request); in serializePostDevDataRequestWithSessionId()
120 assertEquals(SoapEnvelope.VER12, request.version); in serializePostDevDataRequestWithSessionId()
121 SoapObject soapRequest = (SoapObject) request.bodyOut; in serializePostDevDataRequestWithSessionId()
129 private void verifyCommonFields(SoapObject request) { in verifyCommonFields() argument
130 assertEquals(request.getNamespace(), SoapEnvelope.NS20); in verifyCommonFields()
[all …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DTextClassificationManagerService.java135 TextSelection.Request request, ITextClassifierCallback callback) in onSuggestSelection() argument
137 Preconditions.checkNotNull(request); in onSuggestSelection()
139 final int userId = request.getUserId(); in onSuggestSelection()
140 validateInput(mContext, request.getCallingPackageName(), userId); in onSuggestSelection()
147 userState.mService.onSuggestSelection(sessionId, request, callback); in onSuggestSelection()
150 () -> onSuggestSelection(sessionId, request, callback), in onSuggestSelection()
159 TextClassification.Request request, ITextClassifierCallback callback) in onClassifyText() argument
161 Preconditions.checkNotNull(request); in onClassifyText()
163 final int userId = request.getUserId(); in onClassifyText()
164 validateInput(mContext, request.getCallingPackageName(), userId); in onClassifyText()
[all …]
/frameworks/base/core/java/android/app/
DVoiceInteractor.java93 Request request;
97 request = pullRequest((IVoiceInteractorRequest)args.arg1, true);
99 + ((IVoiceInteractorRequest)args.arg1).asBinder() + "/" + request
101 if (request != null) {
102 ((ConfirmationRequest)request).onConfirmationResult(msg.arg1 != 0,
104 request.clear();
109 request = pullRequest((IVoiceInteractorRequest)args.arg1, complete);
111 + ((IVoiceInteractorRequest)args.arg1).asBinder() + "/" + request
114 if (request != null) {
115 ((PickOptionRequest)request).onPickOptionResult(complete,
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest8.java285 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in checkRequestPinShortcut()
287 assertPinItemRequest(request); in checkRequestPinShortcut()
289 assertWith(request.getShortcutInfo()) in checkRequestPinShortcut()
295 assertAllHaveIcon(list(request.getShortcutInfo())); in checkRequestPinShortcut()
299 () -> assertTrue(request.accept())) in checkRequestPinShortcut()
360 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_explicitTargetActivity()
362 assertPinItemRequest(request); in testRequestPinShortcut_explicitTargetActivity()
364 assertWith(request.getShortcutInfo()) in testRequestPinShortcut_explicitTargetActivity()
372 () -> assertTrue(request.accept())) in testRequestPinShortcut_explicitTargetActivity()
442 final PinItemRequest request = mLauncherApps.getPinItemRequest(intent.getValue()); in testRequestPinShortcut_noTargetActivity_noMainActivity()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsObservers.java79 DataUsageRequest request = buildRequest(inputRequest); in register() local
80 RequestInfo requestInfo = buildRequestInfo(request, messenger, binder, callingUid, in register()
83 if (LOGV) Slog.v(TAG, "Registering observer for " + request); in register()
85 return request; in register()
93 public void unregister(DataUsageRequest request, int callingUid) { in unregister() argument
95 request)); in unregister()
168 private void handleUnregister(DataUsageRequest request, int callingUid) { in handleUnregister() argument
170 requestInfo = mDataUsageRequests.get(request.requestId); in handleUnregister()
172 if (LOGV) Slog.v(TAG, "Trying to unregister unknown request " + request); in handleUnregister()
176 Slog.w(TAG, "Caller uid " + callingUid + " is not owner of " + request); in handleUnregister()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/http/
DAbstractProxyTest.java79 RecordedRequest request = server.takeRequest(); in testConnectToHttps() local
80 assertEquals("GET /foo HTTP/1.1", request.getRequestLine()); in testConnectToHttps()
121 HttpGet request = new HttpGet("http://android.com/foo"); in testConnectViaProxy() local
122 proxyConfig.configure(server, httpProxyClient, request); in testConnectViaProxy()
124 HttpResponse response = httpProxyClient.execute(request); in testConnectViaProxy()
166 HttpGet request = new HttpGet("https://android.com/foo"); in testConnectViaHttpProxyToHttps() local
167 proxyConfig.configure(server, httpProxyClient, request); in testConnectViaHttpProxyToHttps()
169 HttpResponse response = httpProxyClient.execute(request); in testConnectViaHttpProxyToHttps()
197 HttpGet request = new HttpGet("http://origin.foo/bar"); in testParamPreferredOverSystemProperty() local
198 proxyConfig.configure(server, client, request); in testParamPreferredOverSystemProperty()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DImsFeatureTest.java163 CapabilityChangeRequest request = new CapabilityChangeRequest(); in testSetCapabilityConfig() local
164 request.addCapabilitiesToEnableForTech(TestImsFeature.CAPABILITY_TEST_1, in testSetCapabilityConfig()
167 mTestImsFeature.requestChangeEnabledCapabilities(request, null); in testSetCapabilityConfig()
169 assertEquals(request, mTestImsFeature.lastRequest); in testSetCapabilityConfig()
179 CapabilityChangeRequest request = new CapabilityChangeRequest(); in testSetCapabilityConfigError() local
180 request.addCapabilitiesToEnableForTech(TestImsFeature.CAPABILITY_TEST_1, in testSetCapabilityConfigError()
184 mTestImsFeature.requestChangeEnabledCapabilities(request, capabilityCallback); in testSetCapabilityConfigError()
190 assertEquals(request, mTestImsFeature.lastRequest); in testSetCapabilityConfigError()
227 CapabilityChangeRequest request = new CapabilityChangeRequest(); in testCapabilityChangeContainsFullSets() local
228 request.addCapabilitiesToEnableForTech(TestImsFeature.CAPABILITY_TEST_1 in testCapabilityChangeContainsFullSets()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipHelper.java198 Request request = (caller == callee) in sendOptions() local
203 mSipProvider.getNewClientTransaction(request); in sendOptions()
214 Request request = createRequest(Request.REGISTER, userProfile, tag); in sendRegister() local
218 request.addHeader(createWildcardContactHeader()); in sendRegister()
220 request.addHeader(createContactHeader(userProfile)); in sendRegister()
222 request.addHeader(mHeaderFactory.createExpiresHeader(expiry)); in sendRegister()
225 mSipProvider.getNewClientTransaction(request); in sendRegister()
246 Request request = mMessageFactory.createRequest(requestURI, in createRequest() local
251 request.addHeader(userAgentHeader); in createRequest()
252 return request; in createRequest()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierTest.java89 TextSelection.Request request = new TextSelection.Request.Builder( in testSuggestSelection() local
94 TextSelection selection = mClassifier.suggestSelection(request); in testSuggestSelection()
110 TextSelection.Request request = new TextSelection.Request.Builder( in testSuggestSelection_url() local
115 TextSelection selection = mClassifier.suggestSelection(request); in testSuggestSelection_url()
128 TextSelection.Request request = new TextSelection.Request.Builder( in testSmartSelection_withEmoji() local
133 TextSelection selection = mClassifier.suggestSelection(request); in testSmartSelection_withEmoji()
146 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText() local
151 TextClassification classification = mClassifier.classifyText(request); in testClassifyText()
163 TextClassification.Request request = new TextClassification.Request.Builder( in testClassifyText_url() local
168 TextClassification classification = mClassifier.classifyText(request); in testClassifyText_url()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java180 public final NetworkRequest request; field in NetworkAgentInfo.LingerTimer
183 public LingerTimer(NetworkRequest request, long expiryMs) { in LingerTimer() argument
184 this.request = request; in LingerTimer()
190 return (request.requestId == other.request.requestId) && (expiryMs == other.expiryMs); in equals()
193 return Objects.hash(request.requestId, expiryMs); in hashCode()
198 Integer.compare(request.requestId, other.request.requestId); in compareTo()
201 return String.format("%s, expires %dms", request.toString(), in toString()
351 private void updateRequestCounts(boolean add, NetworkRequest request) { in updateRequestCounts() argument
353 switch (request.type) { in updateRequestCounts()
369 Log.wtf(TAG, "Unhandled request type " + request.type); in updateRequestCounts()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraDeviceBinderTest.java200 CaptureRequest.Builder request = new CaptureRequest.Builder(metadata, /*reprocess*/false, in createDefaultBuilder() local
202 assertFalse(request.isEmpty()); in createDefaultBuilder()
207 request.addTarget(mSurface); in createDefaultBuilder()
209 return request; in createDefaultBuilder()
212 …private SubmitInfo submitCameraRequest(CaptureRequest request, boolean streaming) throws Exception… in submitCameraRequest() argument
213 SubmitInfo requestInfo = mCameraUser.submitRequest(request, streaming); in submitCameraRequest()
362 CaptureRequest request = builder.build(); in testSubmitGoodRequest() local
365 SubmitInfo requestInfo1 = submitCameraRequest(request, /* streaming */false); in testSubmitGoodRequest()
366 SubmitInfo requestInfo2 = submitCameraRequest(request, /* streaming */false); in testSubmitGoodRequest()
377 CaptureRequest request = builder.build(); in testSubmitStreamingRequest() local
[all …]

12345678910>>...22