/frameworks/base/core/jni/ |
D | android_hardware_UsbRequest.cpp | 62 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/ |
D | ConfigLocale_test.cpp | 485 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/av/camera/ndk/include/camera/ |
D | NdkCaptureRequest.h | 126 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/base/core/java/android/ddm/ |
D | DdmHandleHeap.java | 79 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 …]
|
D | DdmHandleProfiling.java | 74 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 …]
|
D | DdmHandleThread.java | 67 public Chunk handleChunk(Chunk request) { in handleChunk() argument 69 Log.v("ddm-thread", "Handling " + name(request.type) + " chunk"); in handleChunk() 70 int type = request.type; in handleChunk() 73 return handleTHEN(request); in handleChunk() 75 return handleTHST(request); in handleChunk() 77 return handleSTKL(request); in handleChunk() 87 private Chunk handleTHEN(Chunk request) { in handleTHEN() argument 88 ByteBuffer in = wrapChunk(request); in handleTHEN() 100 private Chunk handleTHST(Chunk request) { in handleTHST() argument 101 ByteBuffer in = wrapChunk(request); in handleTHST() [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | MyTransmitter.h | 220 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/ |
D | Reporter.cpp | 97 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/ |
D | UpdateResponseMessageTest.java | 41 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 …]
|
D | PostDevDataMessageTest.java | 100 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/core/java/android/view/textclassifier/ |
D | SystemTextClassifier.java | 70 public TextSelection suggestSelection(TextSelection.Request request) { in suggestSelection() argument 71 Preconditions.checkNotNull(request); in suggestSelection() 74 request.setCallingPackageName(mPackageName); in suggestSelection() 77 mManagerService.onSuggestSelection(mSessionId, request, callback); in suggestSelection() 85 return mFallback.suggestSelection(request); in suggestSelection() 93 public TextClassification classifyText(TextClassification.Request request) { in classifyText() argument 94 Preconditions.checkNotNull(request); in classifyText() 97 request.setCallingPackageName(mPackageName); in classifyText() 100 mManagerService.onClassifyText(mSessionId, request, callback); in classifyText() 108 return mFallback.classifyText(request); in classifyText() [all …]
|
D | TextClassifierImpl.java | 182 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/base/obex/javax/obex/ |
D | ServerSession.java | 165 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/ |
D | NetworkStatsObserversTest.java | 140 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_thresholdTooLow_setsDefaultThreshold() local 142 assertTrue(request.requestId > 0); in testRegister_thresholdTooLow_setsDefaultThreshold() 143 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_thresholdTooLow_setsDefaultThreshold() 144 assertEquals(THRESHOLD_BYTES, request.thresholdInBytes); in testRegister_thresholdTooLow_setsDefaultThreshold() 153 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testRegister_highThreshold_accepted() local 155 assertTrue(request.requestId > 0); in testRegister_highThreshold_accepted() 156 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_highThreshold_accepted() 157 assertEquals(highThresholdBytes, request.thresholdInBytes); in testRegister_highThreshold_accepted() 191 DataUsageRequest request = mStatsObservers.register(inputRequest, mMessenger, mockBinder, in testUnregister_knownRequest_releasesCaller() local 193 assertTrue(request.requestId > 0); in testUnregister_knownRequest_releasesCaller() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/ |
D | conformance_python.py | 54 def do_test(request): argument 60 if request.WhichOneof('payload') == 'protobuf_payload': 62 test_message.ParseFromString(request.protobuf_payload) 67 elif request.WhichOneof('payload') == 'json_payload': 69 json_format.Parse(request.json_payload, test_message) 77 if request.requested_output_format == conformance_pb2.UNSPECIFIED: 80 elif request.requested_output_format == conformance_pb2.PROTOBUF: 83 elif request.requested_output_format == conformance_pb2.JSON: 106 request = conformance_pb2.ConformanceRequest() 107 request.ParseFromString(serialized_request) [all …]
|
D | conformance_ruby.rb | 38 def do_test(request) argument 43 case request.payload 47 Conformance::TestAllTypes.decode(request.protobuf_payload) 55 test_message = Conformance::TestAllTypes.decode_json(request.json_payload) 65 case request.requested_output_format 97 request = Conformance::ConformanceRequest.decode(serialized_request) 99 response = do_test(request) 107 STDERR.puts("conformance_ruby: request=#{request.to_json}, " \
|
/frameworks/base/core/java/android/net/ |
D | NetworkFactory.java | 219 public final NetworkRequest request; field in NetworkFactory.NetworkRequestInfo 224 NetworkRequestInfo(NetworkRequest request, int score, int factorySerialNumber) { in NetworkRequestInfo() argument 225 this.request = request; in NetworkRequestInfo() 233 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString() 251 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest() argument 252 handleAddRequest(request, score, SerialNumber.NONE); in handleAddRequest() 265 protected void handleAddRequest(NetworkRequest request, int score, in handleAddRequest() argument 267 NetworkRequestInfo n = mNetworkRequests.get(request.requestId); in handleAddRequest() 270 log("got request " + request + " with score " + score in handleAddRequest() 273 n = new NetworkRequestInfo(request, score, servingFactorySerialNumber); in handleAddRequest() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | NetworkAgentInfo.java | 171 public final NetworkRequest request; field in NetworkAgentInfo.LingerTimer 174 public LingerTimer(NetworkRequest request, long expiryMs) { in LingerTimer() argument 175 this.request = request; in LingerTimer() 181 return (request.requestId == other.request.requestId) && (expiryMs == other.expiryMs); in equals() 184 return Objects.hash(request.requestId, expiryMs); in hashCode() 189 Integer.compare(request.requestId, other.request.requestId); in compareTo() 192 return String.format("%s, expires %dms", request.toString(), in toString() 331 private void updateRequestCounts(boolean add, NetworkRequest request) { in updateRequestCounts() argument 333 switch (request.type) { in updateRequestCounts() 349 Log.wtf(TAG, "Unhandled request type " + request.type); in updateRequestCounts() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/p2p/nsd/ |
D | WifiP2pDnsSdServiceRequestTest.java | 36 WifiP2pDnsSdServiceRequest request = null; in testNewInstance() local 39 request = WifiP2pDnsSdServiceRequest.newInstance(); in testNewInstance() 42 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_TYPE); in testNewInstance() 45 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, SERVICE_TYPE); in testNewInstance() 49 request = WifiP2pDnsSdServiceRequest.newInstance(null); in testNewInstance() 57 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, null); in testNewInstance() 65 request = WifiP2pDnsSdServiceRequest.newInstance(null, SERVICE_TYPE); in testNewInstance()
|
/frameworks/base/core/java/android/app/ |
D | VoiceInteractor.java | 93 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/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsFeatureTest.java | 154 CapabilityChangeRequest request = new CapabilityChangeRequest(); in testSetCapabilityConfig() local 155 request.addCapabilitiesToEnableForTech(TestImsFeature.CAPABILITY_TEST_1, in testSetCapabilityConfig() 158 mTestImsFeature.requestChangeEnabledCapabilities(request, null); in testSetCapabilityConfig() 160 assertEquals(request, mTestImsFeature.lastRequest); in testSetCapabilityConfig() 170 CapabilityChangeRequest request = new CapabilityChangeRequest(); in testSetCapabilityConfigError() local 171 request.addCapabilitiesToEnableForTech(TestImsFeature.CAPABILITY_TEST_1, in testSetCapabilityConfigError() 175 mTestImsFeature.requestChangeEnabledCapabilities(request, capabilityCallback); in testSetCapabilityConfigError() 181 assertEquals(request, mTestImsFeature.lastRequest); in testSetCapabilityConfigError() 218 CapabilityChangeRequest request = new CapabilityChangeRequest(); in testCapabilityChangeContainsFullSets() local 219 request.addCapabilitiesToEnableForTech(TestImsFeature.CAPABILITY_TEST_1 in testCapabilityChangeContainsFullSets() [all …]
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | AbstractProxyTest.java | 79 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/base/services/core/java/com/android/server/net/ |
D | NetworkStatsObservers.java | 80 DataUsageRequest request = buildRequest(inputRequest); in register() local 81 RequestInfo requestInfo = buildRequestInfo(request, messenger, binder, callingUid, in register() 84 if (LOGV) Slog.v(TAG, "Registering observer for " + request); in register() 86 return request; in register() 94 public void unregister(DataUsageRequest request, int callingUid) { in unregister() argument 96 request)); in unregister() 169 private void handleUnregister(DataUsageRequest request, int callingUid) { in handleUnregister() argument 171 requestInfo = mDataUsageRequests.get(request.requestId); in handleUnregister() 173 if (LOGV) Slog.v(TAG, "Trying to unregister unknown request " + request); in handleUnregister() 177 Slog.w(TAG, "Caller uid " + callingUid + " is not owner of " + request); in handleUnregister() [all …]
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipHelper.java | 198 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/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | service_reflection_test.py | 52 def CallMethod(self, method, controller, request, response, callback): argument 55 self.request = request 90 def Foo(self, rpc_controller, request, done): argument 92 def Bar(self, rpc_controller, request, done): argument 109 def CallMethod(self, method, controller, request, argument 113 self.request = request 124 request = 'request' 131 stub.Foo(rpc_controller, request, MyCallback) 134 self.assertEqual(request, channel.request)
|