Home
last modified time | relevance | path

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

1234567

/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarAudioFocusTest.java195 int[] request = mAudioFocusPropertyHandler.waitForAudioFocusRequest(TIMEOUT_MS); in testMediaNavFocus() local
196 assertEquals(VehicleAudioFocusRequest.VEHICLE_AUDIO_FOCUS_REQUEST_GAIN, request[0]); in testMediaNavFocus()
197 assertEquals(0x1 << VehicleAudioStream.VEHICLE_AUDIO_STREAM0, request[1]); in testMediaNavFocus()
198 assertEquals(0, request[2]); in testMediaNavFocus()
199 assertEquals(VehicleAudioContextFlag.VEHICLE_AUDIO_CONTEXT_MUSIC_FLAG, request[3]); in testMediaNavFocus()
202 request[1], in testMediaNavFocus()
213 request = mAudioFocusPropertyHandler.waitForAudioFocusRequest(TIMEOUT_MS); in testMediaNavFocus()
214 assertEquals(VehicleAudioFocusRequest.VEHICLE_AUDIO_FOCUS_REQUEST_GAIN, request[0]); in testMediaNavFocus()
215 assertEquals(0x3, request[1]); in testMediaNavFocus()
216 assertEquals(0, request[2]); in testMediaNavFocus()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsIntentResolver.java52 ContactsRequest request = new ContactsRequest(); in resolveIntent() local
59 request.setActionCode(ContactsRequest.ACTION_DEFAULT); in resolveIntent()
61 request.setActionCode(ContactsRequest.ACTION_ALL_CONTACTS); in resolveIntent()
63 request.setActionCode(ContactsRequest.ACTION_CONTACTS_WITH_PHONES); in resolveIntent()
65 request.setActionCode(ContactsRequest.ACTION_STARRED); in resolveIntent()
67 request.setActionCode(ContactsRequest.ACTION_FREQUENT); in resolveIntent()
69 request.setActionCode(ContactsRequest.ACTION_STREQUENT); in resolveIntent()
71 request.setActionCode(ContactsRequest.ACTION_GROUP); in resolveIntent()
76 request.setActionCode(ContactsRequest.ACTION_PICK_CONTACT); in resolveIntent()
78 request.setActionCode(ContactsRequest.ACTION_PICK_CONTACT); in resolveIntent()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
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 …]
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 …]
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()
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()
DRenderingRequest.java64 RenderingRequest request = new RenderingRequest(); in post() local
78 request.setBitmap(bitmap); in post()
80 request.setOriginalImagePreset(preset); in post()
81 request.setScaleFactor(MasterImage.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 …]
DProcessingService.java90 public void postRenderingRequest(RenderingRequest request) { in postRenderingRequest() argument
91 mRenderingRequestTask.postRenderingRequest(request); in postRenderingRequest()
96 RenderingRequest request = new RenderingRequest(); in postHighresRenderingRequest() local
99 request.setOriginalImagePreset(preset); in postHighresRenderingRequest()
100 request.setScaleFactor(scaleFactor); in postHighresRenderingRequest()
101 request.setImagePreset(passedPreset); in postHighresRenderingRequest()
102 request.setType(RenderingRequest.HIGHRES_RENDERING); in postHighresRenderingRequest()
103 request.setCaller(caller); in postHighresRenderingRequest()
104 mHighresRenderingRequestTask.postRenderingRequest(request); in postHighresRenderingRequest()
110 RenderingRequest request = new RenderingRequest(); in postFullresRenderingRequest() local
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java243 MainThreadRequest request; in handleMessage() local
251 request = (MainThreadRequest) msg.obj; in handleMessage()
252 final Phone phone = getPhoneFromRequest(request); in handleMessage()
253 request.result = phone != null ? in handleMessage()
254 getPhoneFromRequest(request).handlePinMmi((String) request.argument) in handleMessage()
257 synchronized (request) { in handleMessage()
258 request.notifyAll(); in handleMessage()
264 request = (MainThreadRequest) msg.obj; in handleMessage()
266 request); in handleMessage()
272 request = (MainThreadRequest) ar.userObj; in handleMessage()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DContactResolver.java119 public void add(final ContactRequest request, final ContactDrawableInterface drawable) { in add() argument
120 mBatch.add(new ContactRequestHolder(request, drawable)); in add()
124 public void remove(final ContactRequest request, final ContactDrawableInterface drawable) { in remove() argument
125 mBatch.remove(new ContactRequestHolder(request, drawable)); in remove()
178 for (ContactRequestHolder request : mContactRequests) { in doInBackground()
179 final String email = request.getEmail(); in doInBackground()
189 for (ContactRequestHolder request : mContactRequests) { in doInBackground()
191 final String email = request.getEmail(); in doInBackground()
195 publishProgress(new Result(request, null)); in doInBackground()
213 publishProgress(new Result(request, null)); in doInBackground()
[all …]
/packages/apps/Settings/src/com/android/settings/
DChooseLockSettingsHelper.java67 public boolean launchConfirmationActivity(int request, CharSequence title) { in launchConfirmationActivity() argument
68 return launchConfirmationActivity(request, title, null, null, false, false); in launchConfirmationActivity()
80 boolean launchConfirmationActivity(int request, CharSequence title, boolean returnCredentials) { in launchConfirmationActivity() argument
81 return launchConfirmationActivity(request, title, null, null, returnCredentials, false); in launchConfirmationActivity()
94 public boolean launchConfirmationActivity(int request, CharSequence title, in launchConfirmationActivity() argument
96 return launchConfirmationActivity(request, title, null, null, in launchConfirmationActivity()
114 boolean launchConfirmationActivity(int request, @Nullable CharSequence title, in launchConfirmationActivity() argument
117 return launchConfirmationActivity(request, title, header, description, in launchConfirmationActivity()
136 boolean launchConfirmationActivity(int request, @Nullable CharSequence title, in launchConfirmationActivity() argument
139 return launchConfirmationActivity(request, title, header, description, in launchConfirmationActivity()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceSystemTest.java117 final Action request = mWorker.getRequestsMade().get(0); in testChatActionSucceeds() local
118 assertTrue("Expect Test type", request instanceof TestChatAction); in testChatActionSucceeds()
124 request.markBackgroundWorkStarting(); in testChatActionSucceeds()
125 request.markBackgroundWorkQueued(); in testChatActionSucceeds()
127 request.markBackgroundWorkStarting(); in testChatActionSucceeds()
128 request.markBackgroundCompletionQueued(); in testChatActionSucceeds()
129 service.handleResponseFromBackgroundWorker(request, response); in testChatActionSucceeds()
169 final Action request = mWorker.getRequestsMade().get(0); in testChatActionFails() local
170 assertTrue("Expect Test type", request instanceof TestChatAction); in testChatActionFails()
174 request.markBackgroundWorkStarting(); in testChatActionFails()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DContactPhotoManager.java152 public static Uri getDefaultAvatarUriForContact(DefaultImageRequest request) { in getDefaultAvatarUriForContact() argument
154 if (request != null) { in getDefaultAvatarUriForContact()
155 if (!TextUtils.isEmpty(request.displayName)) { in getDefaultAvatarUriForContact()
156 builder.appendQueryParameter(DISPLAY_NAME_PARAM_KEY, request.displayName); in getDefaultAvatarUriForContact()
158 if (!TextUtils.isEmpty(request.identifier)) { in getDefaultAvatarUriForContact()
159 builder.appendQueryParameter(IDENTIFIER_PARAM_KEY, request.identifier); in getDefaultAvatarUriForContact()
161 if (request.contactType != TYPE_DEFAULT) { in getDefaultAvatarUriForContact()
163 String.valueOf(request.contactType)); in getDefaultAvatarUriForContact()
165 if (request.scale != SCALE_DEFAULT) { in getDefaultAvatarUriForContact()
166 builder.appendQueryParameter(SCALE_PARAM_KEY, String.valueOf(request.scale)); in getDefaultAvatarUriForContact()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraCaptureSessionProxy.java42 public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, in onCaptureStarted() argument
44 mCallback.onCaptureStarted(AndroidCameraCaptureSessionProxy.this, request, timestamp, in onCaptureStarted()
49 public void onCaptureProgressed(CameraCaptureSession session, CaptureRequest request, in onCaptureProgressed() argument
51 mCallback.onCaptureProgressed(AndroidCameraCaptureSessionProxy.this, request, in onCaptureProgressed()
56 public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, in onCaptureCompleted() argument
58 mCallback.onCaptureCompleted(AndroidCameraCaptureSessionProxy.this, request, result); in onCaptureCompleted()
62 public void onCaptureFailed(CameraCaptureSession session, CaptureRequest request, in onCaptureFailed() argument
64 mCallback.onCaptureFailed(AndroidCameraCaptureSessionProxy.this, request, failure); in onCaptureFailed()
96 public int capture(CaptureRequest request, CaptureCallback listener, Handler handler) in capture() argument
99 return mSession.capture(request, new AndroidCaptureCallback(listener), handler); in capture()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsService.java266 public static void startRequest(final Context context, final MmsRequest request) { in startRequest() argument
268 request.setUseWakeLock(useWakeLock); in startRequest()
270 intent.putExtra(EXTRA_REQUEST, request); in startRequest()
324 final MmsRequest request = intent.getParcelableExtra(EXTRA_REQUEST); in onStartCommand() local
325 if (request != null) { in onStartCommand()
327 retainService(request, new Runnable() { in onStartCommand()
331 request.execute( in onStartCommand()
340 if (request.getUseWakeLock()) { in onStartCommand()
352 request.returnResult(this, SmsManager.MMS_ERROR_UNSPECIFIED, in onStartCommand()
354 if (request.getUseWakeLock()) { in onStartCommand()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DVCardImportExportListener.java24 void onImportProcessed(ImportRequest request, int jobId, int sequence); in onImportProcessed() argument
25 void onImportParsed(ImportRequest request, int jobId, VCardEntry entry, int currentCount, in onImportParsed() argument
27 void onImportFinished(ImportRequest request, int jobId, Uri uri); in onImportFinished() argument
28 void onImportFailed(ImportRequest request); in onImportFailed() argument
29 void onImportCanceled(ImportRequest request, int jobId); in onImportCanceled() argument
31 void onExportProcessed(ExportRequest request, int jobId); in onExportProcessed() argument
32 void onExportFailed(ExportRequest request); in onExportFailed() argument
34 void onCancelRequest(CancelRequest request, int type); in onCancelRequest() argument
DVCardService.java163 for (ImportRequest request : requests) { in handleImportRequest()
164 uris.add(request.uri.toString()); in handleImportRequest()
165 displayNames.add(request.displayName); in handleImportRequest()
173 ImportRequest request = requests.get(i); in handleImportRequest() local
175 if (tryExecute(new ImportProcessor(this, listener, request, mCurrentJobId))) { in handleImportRequest()
177 listener.onImportProcessed(request, mCurrentJobId, i); in handleImportRequest()
182 listener.onImportFailed(request); in handleImportRequest()
190 public synchronized void handleExportRequest(ExportRequest request, in handleExportRequest() argument
192 if (tryExecute(new ExportProcessor(this, request, mCurrentJobId, mCallingActivity))) { in handleExportRequest()
193 final String path = request.destUri.getEncodedPath(); in handleExportRequest()
[all …]
DNotificationImportExportListener.java70 public void onImportProcessed(ImportRequest request, int jobId, int sequence) { in onImportProcessed() argument
74 if (request.displayName != null) { in onImportProcessed()
75 displayName = request.displayName; in onImportProcessed()
97 public void onImportParsed(ImportRequest request, int jobId, VCardEntry entry, int currentCount, in onImportParsed() argument
114 jobId, request.displayName, totalCount, currentCount); in onImportParsed()
119 public void onImportFinished(ImportRequest request, int jobId, Uri createdUri) { in onImportFinished() argument
121 request.displayName); in onImportFinished()
142 public void onImportFailed(ImportRequest request) { in onImportFailed() argument
150 public void onImportCanceled(ImportRequest request, int jobId) { in onImportCanceled() argument
152 request.displayName); in onImportCanceled()
[all …]
DImportProcessor.java68 final ImportRequest request, final int jobId) { in ImportProcessor() argument
73 mImportRequest = request; in ImportProcessor()
124 final ImportRequest request = mImportRequest; in runInternal() local
126 Log.i(LOG_TAG, "Canceled before actually handling parameter (" + request.uri + ")"); in runInternal()
130 if (request.vcardVersion == ImportVCardActivity.VCARD_VERSION_AUTO_DETECT) { in runInternal()
141 request.vcardVersion in runInternal()
145 final Uri uri = request.uri; in runInternal()
146 final Account account = request.account; in runInternal()
147 final int estimatedVCardType = request.estimatedVCardType; in runInternal()
148 final String estimatedCharset = request.estimatedCharset; in runInternal()
[all …]
DNfcImportVCardActivity.java66 ImportRequest request = createImportRequest(); in doInBackground() local
67 if (request == null) { in doInBackground()
72 requests.add(request); in doInBackground()
74 return request; in doInBackground()
83 public void onPostExecute(ImportRequest request) { in onPostExecute() argument
214 public void onImportProcessed(ImportRequest request, int jobId, int sequence) { in onImportProcessed() argument
219 public void onImportParsed(ImportRequest request, int jobId, VCardEntry entry, int currentCount, in onImportParsed() argument
225 public void onImportFinished(ImportRequest request, int jobId, Uri uri) { in onImportFinished() argument
240 public void onImportFailed(ImportRequest request) { in onImportFailed() argument
249 public void onImportCanceled(ImportRequest request, int jobId) { in onImportCanceled() argument
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java101 final ConnectionRequest request) { in onCreateOutgoingConnection() argument
102 Log.i(this, "onCreateOutgoingConnection, request: " + request); in onCreateOutgoingConnection()
104 Uri handle = request.getAddress(); in onCreateOutgoingConnection()
118 final Phone phone = getPhoneForAccount(request.getAccountHandle(), false); in onCreateOutgoingConnection()
155 final Phone phone = getPhoneForAccount(request.getAccountHandle(), false); in onCreateOutgoingConnection()
181 final Phone phone = getPhoneForAccount(request.getAccountHandle(), isEmergencyNumber); in onCreateOutgoingConnection()
285 if (VideoProfile.isVideo(request.getVideoState()) && isTtyModeEnabled(context) && in onCreateOutgoingConnection()
298 createConnectionFor(phone, null, true /* isOutgoing */, request.getAccountHandle(), in onCreateOutgoingConnection()
299 request.getTelecomCallId(), request.getAddress()); in onCreateOutgoingConnection()
308 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DTagDispatchCaptureSession.java57 public void onCaptureStarted(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureStarted() argument
59 Object tag = request.getTag(); in onCaptureStarted()
64 public void onCaptureProgressed(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureProgressed() argument
66 Object tag = request.getTag(); in onCaptureProgressed()
71 public void onCaptureCompleted(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureCompleted() argument
73 Object tag = request.getTag(); in onCaptureCompleted()
78 public void onCaptureFailed(CameraCaptureSessionProxy session, CaptureRequest request, in onCaptureFailed() argument
80 Object tag = request.getTag(); in onCaptureFailed()
141 for (Request request : burstRequests) { in submitRequest()
144 tagListenerMap.put(tag, request.getResponseListener()); in submitRequest()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java67 final ConnectionRequest request) { in onCreateOutgoingConnection() argument
68 if (VERBOSE) log("onCreateOutgoingConnection, request: " + request); in onCreateOutgoingConnection()
70 Bundle extras = request.getExtras(); in onCreateOutgoingConnection()
77 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateOutgoingConnection()
85 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in onCreateOutgoingConnection()
122 createConnectionForProfile(profile, request); in onCreateOutgoingConnection()
142 ConnectionRequest request) { in onCreateIncomingConnection() argument
143 if (VERBOSE) log("onCreateIncomingConnection, request: " + request); in onCreateIncomingConnection()
145 if (request.getExtras() == null) { in onCreateIncomingConnection()
151 Intent sipIntent = (Intent) request.getExtras().getParcelable( in onCreateIncomingConnection()
[all …]
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewBrowserActivity.java214 public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { in createAndInitializeWebView()
215 String url = request.getUrl().toString(); in createAndInitializeWebView()
221 boolean allowLaunchingApps = request.hasGesture() || request.isRedirect(); in createAndInitializeWebView()
246 public void onPermissionRequest(PermissionRequest request) { in createAndInitializeWebView()
247 WebViewBrowserActivity.this.requestPermissionsForPage(request); in createAndInitializeWebView()
267 private void requestPermissionsForPage(PermissionRequest request) { in requestPermissionsForPage() argument
269 for (String webkitPermission : request.getResources()) { in requestPermissionsForPage()
272 request.deny(); in requestPermissionsForPage()
278 request.grant(request.getResources()); in requestPermissionsForPage()
284 for (String webkitPermission : request.getResources()) { in requestPermissionsForPage()
[all …]

1234567