Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/Contacts/src/com/android/contacts/list/
DContactsIntentResolver.java56 ContactsRequest request = new ContactsRequest(); in resolveIntent() local
63 request.setActionCode(ContactsRequest.ACTION_DEFAULT); in resolveIntent()
65 request.setActionCode(ContactsRequest.ACTION_ALL_CONTACTS); in resolveIntent()
67 request.setActionCode(ContactsRequest.ACTION_CONTACTS_WITH_PHONES); in resolveIntent()
69 request.setActionCode(ContactsRequest.ACTION_STARRED); in resolveIntent()
71 request.setActionCode(ContactsRequest.ACTION_FREQUENT); in resolveIntent()
73 request.setActionCode(ContactsRequest.ACTION_STREQUENT); in resolveIntent()
75 request.setActionCode(ContactsRequest.ACTION_GROUP); in resolveIntent()
80 request.setActionCode(ContactsRequest.ACTION_PICK_PHONES); in resolveIntent()
82 request.setActionCode(ContactsRequest.ACTION_PICK_EMAILS); in resolveIntent()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java348 private void sendHalRequest(int requestId, int timeoutMs, @NonNull VehiclePropValue request, in sendHalRequest() argument
354 if (DBG) Slog.d(TAG, "Calling hal.set(): " + request); in sendHalRequest()
355 mHal.set(request); in sendHalRequest()
358 Slog.w(TAG, "Failed to set " + request, e); in sendHalRequest()
373 public void switchUser(@NonNull SwitchUserRequest request, int timeoutMs, in switchUser() argument
377 Objects.requireNonNull(request, "request cannot be null"); in switchUser()
378 if (DBG) Slog.d(TAG, "switchUser(" + request + ")"); in switchUser()
381 request.requestId = getNextRequestId(); in switchUser()
382 request.messageType = SwitchUserMessageType.ANDROID_SWITCH; in switchUser()
383 VehiclePropValue propRequest = UserHalHelper.toVehiclePropValue(request); in switchUser()
[all …]
DClusterHalService.java236 VehiclePropValue request = createVehiclePropValue(CLUSTER_REPORT_STATE); in reportState()
237 request.value.int32Values.add(onOff); in reportState()
238 request.value.int32Values.add(bounds.left); in reportState()
239 request.value.int32Values.add(bounds.top); in reportState()
240 request.value.int32Values.add(bounds.right); in reportState()
241 request.value.int32Values.add(bounds.bottom); in reportState()
242 request.value.int32Values.add(insets.left); in reportState()
243 request.value.int32Values.add(insets.top); in reportState()
244 request.value.int32Values.add(insets.right); in reportState()
245 request.value.int32Values.add(insets.bottom); in reportState()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DUserHalHelperTest.java426 UserIdentificationGetRequest request = new UserIdentificationGetRequest(); in testUserIdentificationGetRequestToVehiclePropValue_emptyRequest() local
429 () -> UserHalHelper.toVehiclePropValue(request)); in testUserIdentificationGetRequestToVehiclePropValue_emptyRequest()
434 UserIdentificationGetRequest request = new UserIdentificationGetRequest(); in testUserIdentificationGetRequestToVehiclePropValue_wrongNumberOfAssociations() local
435 request.numberAssociationTypes = 1; in testUserIdentificationGetRequestToVehiclePropValue_wrongNumberOfAssociations()
438 () -> UserHalHelper.toVehiclePropValue(request)); in testUserIdentificationGetRequestToVehiclePropValue_wrongNumberOfAssociations()
443 UserIdentificationGetRequest request = new UserIdentificationGetRequest(); in testUserIdentificationGetRequestToVehiclePropValue_invalidType() local
444 request.numberAssociationTypes = 1; in testUserIdentificationGetRequestToVehiclePropValue_invalidType()
445 request.associationTypes.add(CUSTOM_4 + 1); in testUserIdentificationGetRequestToVehiclePropValue_invalidType()
448 () -> UserHalHelper.toVehiclePropValue(request)); in testUserIdentificationGetRequestToVehiclePropValue_invalidType()
453 UserIdentificationGetRequest request = new UserIdentificationGetRequest(); in testUserIdentificationGetRequestToVehiclePropValue_missingRequestId() local
[all …]
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHalHelper.java446 @NonNull UserIdentificationGetRequest request) { in toVehiclePropValue()
447 Objects.requireNonNull(request, "request cannot be null"); in toVehiclePropValue()
448 checkArgument(request.numberAssociationTypes > 0, in toVehiclePropValue()
449 "invalid number of association types mismatch on %s", request); in toVehiclePropValue()
450 checkArgument(request.numberAssociationTypes == request.associationTypes.size(), in toVehiclePropValue()
451 "number of association types mismatch on %s", request); in toVehiclePropValue()
452 checkArgument(request.requestId > 0, "invalid requestId on %s", request); in toVehiclePropValue()
455 request.requestId); in toVehiclePropValue()
456 addUserInfo(propValue, request.userInfo); in toVehiclePropValue()
457 propValue.value.int32Values.add(request.numberAssociationTypes); in toVehiclePropValue()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java756 SwitchUserRequest request = createUserSwitchRequest(mUser10, null); in testPostSwitchResponse_noUsersInfo() local
757 request.requestId = 42; in testPostSwitchResponse_noUsersInfo()
759 () -> mUserHalService.postSwitchResponse(request)); in testPostSwitchResponse_noUsersInfo()
764 SwitchUserRequest request = createUserSwitchRequest(mUser10, mUsersInfo); in testPostSwitchResponse_HalCalledWithCorrectProp() local
765 request.requestId = 42; in testPostSwitchResponse_HalCalledWithCorrectProp()
766 mUserHalService.postSwitchResponse(request); in testPostSwitchResponse_HalCalledWithCorrectProp()
781 SwitchUserRequest request = new SwitchUserRequest(); in testLegacyUserSwitch_noMessageType() local
784 () -> mUserHalService.legacyUserSwitch(request)); in testLegacyUserSwitch_noMessageType()
789 SwitchUserRequest request = new SwitchUserRequest(); in testLegacyUserSwitch_noTargetUserInfo() local
790 request.messageType = SwitchUserMessageType.ANDROID_SWITCH; in testLegacyUserSwitch_noTargetUserInfo()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DCachingPipeline.java141 private String getType(RenderingRequest request) { in getType() argument
142 if (request.getType() == RenderingRequest.ICON_RENDERING) { in getType()
145 if (request.getType() == RenderingRequest.FILTERS_RENDERING) { in getType()
148 if (request.getType() == RenderingRequest.FULL_RENDERING) { in getType()
151 if (request.getType() == RenderingRequest.GEOMETRY_RENDERING) { in getType()
154 if (request.getType() == RenderingRequest.PARTIAL_RENDERING) { in getType()
157 if (request.getType() == RenderingRequest.HIGHRES_RENDERING) { in getType()
215 public void renderHighres(RenderingRequest request) { in renderHighres() argument
220 ImagePreset preset = request.getImagePreset(); in renderHighres()
232 request.setBitmap(bmp); in renderHighres()
[all …]
DImageSavingTask.java71 SaveRequest request = new SaveRequest(); in saveImage() local
72 request.sourceUri = sourceUri; in saveImage()
73 request.selectedUri = selectedUri; in saveImage()
74 request.destinationFile = destinationFile; in saveImage()
75 request.preset = preset; in saveImage()
76 request.flatten = flatten; in saveImage()
77 request.quality = quality; in saveImage()
78 request.sizeFactor = sizeFactor; in saveImage()
79 request.previewImage = previewImage; in saveImage()
80 request.exit = exit; in saveImage()
[all …]
DRenderingRequestTask.java32 RenderingRequest request; field in RenderingRequestTask.Render
36 RenderingRequest request; field in RenderingRequestTask.RenderResult
53 public void postRenderingRequest(RenderingRequest request) { in postRenderingRequest() argument
58 render.request = request; in postRenderingRequest()
64 RenderingRequest request = ((Render) message).request; in doInBackground() local
66 if (request.getType() == RenderingRequest.GEOMETRY_RENDERING) { in doInBackground()
67 mPreviewPipeline.renderGeometry(request); in doInBackground()
68 } else if (request.getType() == RenderingRequest.FILTERS_RENDERING) { in doInBackground()
69 mPreviewPipeline.renderFilters(request); in doInBackground()
71 mPreviewPipeline.render(request); in doInBackground()
[all …]
DFullresRenderingRequestTask.java16 RenderingRequest request; field in FullresRenderingRequestTask.Render
20 RenderingRequest request; field in FullresRenderingRequestTask.RenderResult
37 public void postRenderingRequest(RenderingRequest request) { in postRenderingRequest() argument
42 render.request = request; in postRenderingRequest()
48 RenderingRequest request = ((Render) message).request; in doInBackground() local
50 mFullresPipeline.render(request); in doInBackground()
52 result.request = request; in doInBackground()
61 RenderingRequest request = ((RenderResult) message).request; in onResult() local
62 request.markAvailable(); in onResult()
DRenderingRequest.java64 RenderingRequest request = new RenderingRequest(); in post() local
78 request.setBitmap(bitmap); in post()
80 request.setOriginalImagePreset(preset); in post()
81 request.setScaleFactor(PrimaryImage.getImage().getScaleFactor()); in post()
84 request.setBounds(bounds); in post()
85 request.setDestination(destination); in post()
89 request.setImagePreset(passedPreset); in post()
90 request.setType(type); in post()
91 request.setCaller(caller); in post()
92 request.post(context); in post()
[all …]
DHighresRenderingRequestTask.java36 RenderingRequest request; field in HighresRenderingRequestTask.Render
40 RenderingRequest request; field in HighresRenderingRequestTask.RenderResult
60 public void postRenderingRequest(RenderingRequest request) { in postRenderingRequest() argument
65 render.request = request; in postRenderingRequest()
71 RenderingRequest request = ((Render) message).request; in doInBackground() local
73 mHighresPreviewPipeline.renderHighres(request); in doInBackground()
75 result.request = request; in doInBackground()
84 RenderingRequest request = ((RenderResult) message).request; in onResult() local
85 request.markAvailable(); in onResult()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsObserversTest.java140 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 …]
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipp_print.c175 ipp_t *request = NULL; // IPP request object in _fill_job() local
182 request = ippNewRequest(ipp_op); in _fill_job()
183 if (request == NULL) { in _fill_job()
184 return request; in _fill_job()
187 if (set_ipp_version(request, printer_uri, NULL, IPP_VERSION_RESOLVED) != 0) { in _fill_job()
188 ippDelete(request); in _fill_job()
194 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL, in _fill_job()
197 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name", NULL, in _fill_job()
199 ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "job-name", NULL, job_params->job_name); in _fill_job()
229 ippAddCollection(request, IPP_TAG_OPERATION, "document-format-details", in _fill_job()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sip/
DSipUtils.java121 SIPRequest request = new SIPRequest(); in buildInvite() local
122 request.setMethod(Request.INVITE); in buildInvite()
125 request.setRequestURI(remoteUri); in buildInvite()
126 request.setFrom( in buildInvite()
130 request.setTo( in buildInvite()
137 request.setMaxForwards(sHeaderFactory.createMaxForwardsHeader(70)); in buildInvite()
138 request.setCSeq(sHeaderFactory.createCSeqHeader(1L, Request.INVITE)); in buildInvite()
142 request.setVia(ImmutableList.of(viaHeader)); in buildInvite()
148 request.setHeader(sessionExpires); in buildInvite()
151 request.setHeader(generateContactHeader(configuration)); in buildInvite()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java499 MainThreadRequest request; in handleMessage() local
508 request = (MainThreadRequest) msg.obj; in handleMessage()
509 final Phone phone = getPhoneFromRequest(request); in handleMessage()
510 Pair<String, ResultReceiver> ussdObject = (Pair) request.argument; in handleMessage()
514 if (!isUssdApiAllowed(request.subId)) { in handleMessage()
522 request.result = true; in handleMessage()
523 notifyRequester(request); in handleMessage()
528 request.result = phone != null in handleMessage()
531 request.result = false; in handleMessage()
534 notifyRequester(request); in handleMessage()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/
DSipDelegateControllerTest.java94 DelegateRequest request = getBaseDelegateRequest(); in testCreateDelegate() local
95 SipDelegateController controller = getTestDelegateController(request, in testCreateDelegate()
99 CompletableFuture<Boolean> future = controller.create(request.getFeatureTags(), in testCreateDelegate()
108 verify(mMockMessageTracker).openTransport(mMockSipDelegate, request.getFeatureTags(), in testCreateDelegate()
116 DelegateRequest request = getLargeDelegateRequest(); in testCreateDeniedFeatures() local
120 SipDelegateController controller = getTestDelegateController(request, in testCreateDeniedFeatures()
124 CompletableFuture<Boolean> future = controller.create(request.getFeatureTags(), in testCreateDeniedFeatures()
137 ArraySet<String> allowedTags = new ArraySet<>(request.getFeatureTags()); in testCreateDeniedFeatures()
147 DelegateRequest request = getBaseDelegateRequest(); in testCreateDelegateTransportDied() local
148 SipDelegateController controller = getTestDelegateController(request, in testCreateDelegateTransportDied()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedConnectionService.java44 final ConnectionRequest request) { in onCreateOutgoingConnection() argument
46 return createSelfManagedConnection(request, false, false /* isHandover */); in onCreateOutgoingConnection()
51 ConnectionRequest request) { in onCreateIncomingConnection() argument
52 return createSelfManagedConnection(request, true, false /* isHandover */); in onCreateIncomingConnection()
57 ConnectionRequest request) { in onCreateOutgoingHandoverConnection() argument
58 return createSelfManagedConnection(request, false, true /* isHandover */); in onCreateOutgoingHandoverConnection()
63 ConnectionRequest request) { in onCreateIncomingHandoverConnection() argument
64 return createSelfManagedConnection(request, true, true /* isHandover */); in onCreateIncomingHandoverConnection()
69 ConnectionRequest request) { in onCreateIncomingConnectionFailed() argument
70 mCallList.notifyCreateIncomingConnectionFailed(request); in onCreateIncomingConnectionFailed()
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.cpp39 createRunTimePoolInfos(const Request& request, const BufferTracker& bufferTracker, in createRunTimePoolInfos() argument
43 requestPoolInfos.reserve(request.pools.size()); in createRunTimePoolInfos()
44 bufferWrappers.reserve(request.pools.size()); in createRunTimePoolInfos()
45 for (uint32_t i = 0; i < request.pools.size(); ++i) { in createRunTimePoolInfos()
46 auto& pool = request.pools[i]; in createRunTimePoolInfos()
61 bufferWrapper->validateRequest(i, request, &preparedModel); in createRunTimePoolInfos()
81 ErrorStatus updateDeviceMemories(ErrorStatus status, const Request& request, in updateDeviceMemories() argument
85 for (uint32_t i = 0; i < request.outputs.size(); i++) { in updateDeviceMemories()
86 const uint32_t poolIndex = request.outputs[i].location.poolIndex; in updateDeviceMemories()
87 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/contactinfo/
DContactInfoCache.java156 private boolean queryContactInfo(ContactInfoRequest request) { in queryContactInfo() argument
160 LogUtil.sanitizePhoneNumber(request.number), in queryContactInfo()
161 request.type); in queryContactInfo()
163 if (request.isLocalRequest()) { in queryContactInfo()
164 info = contactInfoHelper.lookupNumber(request.number, request.countryIso); in queryContactInfo()
169 contactInfoHelper.updateFromCequintCallerId(cequintCallerIdManager, info, request.number); in queryContactInfo()
174 if (request.type == ContactInfoRequest.TYPE_LOCAL_AND_REMOTE) { in queryContactInfo()
177 request.number, in queryContactInfo()
178 request.countryIso, in queryContactInfo()
179 request.callLogInfo, in queryContactInfo()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/util/
DTetheringUtilsTest.java72 final TetheringRequestParcel request = new TetheringRequestParcel(); in makeTetheringRequestParcel() local
73 request.tetheringType = TETHERING_WIFI; in makeTetheringRequestParcel()
74 request.localIPv4Address = TEST_SERVER_ADDR; in makeTetheringRequestParcel()
75 request.staticClientAddress = TEST_CLIENT_ADDR; in makeTetheringRequestParcel()
76 request.exemptFromEntitlementCheck = false; in makeTetheringRequestParcel()
77 request.showProvisioningUi = true; in makeTetheringRequestParcel()
78 return request; in makeTetheringRequestParcel()
83 TetheringRequestParcel request = makeTetheringRequestParcel(); in testIsTetheringRequestEquals() local
86 assertTrue(TetheringUtils.isTetheringRequestEquals(mTetheringRequest, request)); in testIsTetheringRequestEquals()
91 request = makeTetheringRequestParcel(); in testIsTetheringRequestEquals()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceSystemTest.java116 final Action request = mWorker.getRequestsMade().get(0); in testChatActionSucceeds() local
117 assertTrue("Expect Test type", request instanceof TestChatAction); in testChatActionSucceeds()
123 request.markBackgroundWorkStarting(); in testChatActionSucceeds()
124 request.markBackgroundWorkQueued(); in testChatActionSucceeds()
126 request.markBackgroundWorkStarting(); in testChatActionSucceeds()
127 request.markBackgroundCompletionQueued(); in testChatActionSucceeds()
128 service.handleResponseFromBackgroundWorker(request, response); in testChatActionSucceeds()
164 final Action request = mWorker.getRequestsMade().get(0); in testChatActionFails() local
165 assertTrue("Expect Test type", request instanceof TestChatAction); in testChatActionFails()
169 request.markBackgroundWorkStarting(); in testChatActionFails()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailTranscriptionServiceGrpc.java121 …il(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request, in transcribeVoicemail() argument
132 …m.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request, in transcribeVoicemailAsync() argument
143 …anscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request, in getTranscript() argument
154 ….google.internal.communications.voicemailtranscription.v1.SendTranscriptionFeedbackRequest request, in sendTranscriptionFeedback() argument
219 …il(com.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailRequest request, in transcribeVoicemail() argument
222 … getChannel().newCall(METHOD_TRANSCRIBE_VOICEMAIL, getCallOptions()), request, responseObserver); in transcribeVoicemail() local
231 …m.google.internal.communications.voicemailtranscription.v1.TranscribeVoicemailAsyncRequest request, in transcribeVoicemailAsync() argument
234 …getChannel().newCall(METHOD_TRANSCRIBE_VOICEMAIL_ASYNC, getCallOptions()), request, responseObserv… in transcribeVoicemailAsync() local
243 …anscript(com.google.internal.communications.voicemailtranscription.v1.GetTranscriptRequest request, in getTranscript() argument
246 getChannel().newCall(METHOD_GET_TRANSCRIPT, getCallOptions()), request, responseObserver); in getTranscript() local
[all …]
/packages/modules/Connectivity/tests/unit/java/android/net/
DConnectivityManagerTest.java221 NetworkRequest request = makeRequest(1); in testCallbackRelease() local
229 anyInt(), anyInt(), any(), nullable(String.class))).thenReturn(request); in testCallbackRelease()
230 manager.requestNetwork(request, callback, handler); in testCallbackRelease()
233 captor.getValue().send(makeMessage(request, ConnectivityManager.CALLBACK_AVAILABLE)); in testCallbackRelease()
239 verify(mService, times(1)).releaseNetworkRequest(request); in testCallbackRelease()
242 captor.getValue().send(makeMessage(request, ConnectivityManager.CALLBACK_LOSING)); in testCallbackRelease()
292 NetworkRequest request = makeRequest(1); in noDoubleCallbackRegistration() local
300 anyInt(), any(), nullable(String.class))).thenReturn(request); in noDoubleCallbackRegistration()
303 manager.requestNetwork(request, callback, handler); in noDoubleCallbackRegistration()
307 expectThrowable(() -> manager.requestNetwork(request, callback), wantException); in noDoubleCallbackRegistration()
[all …]
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManager.java74 public static Uri getDefaultAvatarUriForContact(DefaultImageRequest request) { in getDefaultAvatarUriForContact() argument
76 if (request != null) { in getDefaultAvatarUriForContact()
77 if (!TextUtils.isEmpty(request.displayName)) { in getDefaultAvatarUriForContact()
78 builder.appendQueryParameter(DISPLAY_NAME_PARAM_KEY, request.displayName); in getDefaultAvatarUriForContact()
80 if (!TextUtils.isEmpty(request.identifier)) { in getDefaultAvatarUriForContact()
81 builder.appendQueryParameter(IDENTIFIER_PARAM_KEY, request.identifier); in getDefaultAvatarUriForContact()
83 if (request.contactType != LetterTileDrawable.TYPE_DEFAULT) { in getDefaultAvatarUriForContact()
84 builder.appendQueryParameter(CONTACT_TYPE_PARAM_KEY, String.valueOf(request.contactType)); in getDefaultAvatarUriForContact()
86 if (request.scale != SCALE_DEFAULT) { in getDefaultAvatarUriForContact()
87 builder.appendQueryParameter(SCALE_PARAM_KEY, String.valueOf(request.scale)); in getDefaultAvatarUriForContact()
[all …]

12345678910>>...17