Home
last modified time | relevance | path

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

12345678910>>...37

/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/native/services/inputflinger/tests/
DFocusResolver_test.cpp69 FocusRequest request; in TEST() local
70 request.displayId = 42; in TEST()
71 request.token = focusableWindowToken; in TEST()
74 focusResolver.setFocusedWindow(request, windows); in TEST()
76 ASSERT_EQ(request.displayId, changes->displayId); in TEST()
79 request.token = invisibleWindowToken; in TEST()
80 changes = focusResolver.setFocusedWindow(request, windows); in TEST()
86 request.token = unfocusableWindowToken; in TEST()
87 changes = focusResolver.setFocusedWindow(request, windows); in TEST()
97 FocusRequest request; in TEST() local
[all …]
/frameworks/base/services/core/java/com/android/server/rotationresolver/
DRemoteRotationResolverService.java76 public void resolveRotation(RotationRequest request) { in resolveRotation() argument
77 final RotationResolutionRequest remoteRequest = request.mRemoteRequest; in resolveRotation()
78 post(service -> service.resolveRotation(request.mIRotationResolverCallback, remoteRequest)); in resolveRotation()
82 synchronized (request.mLock) { in resolveRotation()
83 if (!request.mIsFulfilled) { in resolveRotation()
84 request.mCallbackInternal.onFailure(ROTATION_RESULT_FAILURE_TIMED_OUT); in resolveRotation()
86 request.cancelInternal(); in resolveRotation()
89 }, request.mRemoteRequest.getTimeoutMillis()); in resolveRotation()
118 RotationResolutionRequest request, @NonNull CancellationSignal cancellationSignal, in RotationRequest() argument
121 mRemoteRequest = request; in RotationRequest()
[all …]
/frameworks/av/camera/ndk/include/camera/
DNdkCaptureRequest.h124 camera_status_t ACaptureRequest_addTarget(ACaptureRequest* request,
139 camera_status_t ACaptureRequest_removeTarget(ACaptureRequest* request,
160 …const ACaptureRequest* request, uint32_t tag, ACameraMetadata_const_entry* entry) __INTRODUCED_IN(…
181 …const ACaptureRequest* request, /*out*/int32_t* numTags, /*out*/const uint32_t** tags) __INTRODUCE…
200 … ACaptureRequest* request, uint32_t tag, uint32_t count, const uint8_t* data) __INTRODUCED_IN(24);
219 … ACaptureRequest* request, uint32_t tag, uint32_t count, const int32_t* data) __INTRODUCED_IN(24);
238 … ACaptureRequest* request, uint32_t tag, uint32_t count, const float* data) __INTRODUCED_IN(24);
257 … ACaptureRequest* request, uint32_t tag, uint32_t count, const int64_t* data) __INTRODUCED_IN(24);
276 … ACaptureRequest* request, uint32_t tag, uint32_t count, const double* data) __INTRODUCED_IN(24);
295 ACaptureRequest* request, uint32_t tag, uint32_t count,
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DOptionsRequestCoordinator.java17 package com.android.ims.rcs.uce.request;
26 import com.android.ims.rcs.uce.request.UceRequestManager.RequestManagerCallback;
139 OptionsRequest request = (OptionsRequest) getUceRequest(taskId); in onRequestUpdated()
140 if (request == null) { in onRequestUpdated()
150 handleRequestError(request); in onRequestUpdated()
153 handleCommandError(request); in onRequestUpdated()
156 handleNetworkResponse(request); in onRequestUpdated()
159 handleCachedCapabilityUpdated(request); in onRequestUpdated()
162 handleNoNeedRequestFromNetwork(request); in onRequestUpdated()
165 handleRequestTimeout(request); in onRequestUpdated()
[all …]
DSubscribeRequestCoordinator.java17 package com.android.ims.rcs.uce.request;
32 import com.android.ims.rcs.uce.request.SubscriptionTerminatedHelper.TerminatedResult;
33 import com.android.ims.rcs.uce.request.UceRequestManager.RequestManagerCallback;
194 SubscribeRequest request = (SubscribeRequest) getUceRequest(taskId); in onRequestUpdated()
195 if (request == null) { in onRequestUpdated()
205 handleRequestError(request); in onRequestUpdated()
208 handleCommandError(request); in onRequestUpdated()
211 handleNetworkResponse(request); in onRequestUpdated()
214 handleCapabilitiesUpdated(request); in onRequestUpdated()
217 handleResourceTerminated(request); in onRequestUpdated()
[all …]
/frameworks/libs/net/common/device/android/net/
DNetworkFactoryImpl.java116 public void onNetworkNeeded(@NonNull final NetworkRequest request) {
117 handleAddRequest(request);
121 public void onNetworkUnneeded(@NonNull final NetworkRequest request) {
122 handleRemoveRequest(request);
159 public void onNetworkRequested(@NonNull NetworkRequest request, int score, in register()
161 handleAddRequest(request); in register()
165 public void onNetworkRequestWithdrawn(@NonNull NetworkRequest request) { in register()
166 handleRemoveRequest(request); in register()
217 @NonNull public final NetworkRequest request; field in NetworkFactoryImpl.NetworkRequestInfo
220 NetworkRequestInfo(@NonNull final NetworkRequest request) { in NetworkRequestInfo() argument
[all …]
DNetworkFactoryLegacyImpl.java130 public void onNetworkRequested(@NonNull NetworkRequest request, int score, in register()
132 handleAddRequest(request, score, servingProviderId); in register()
136 public void onNetworkRequestWithdrawn(@NonNull NetworkRequest request) { in register()
137 handleRemoveRequest(request); in register()
183 public final NetworkRequest request; field in NetworkFactoryLegacyImpl.NetworkRequestInfo
188 NetworkRequestInfo(NetworkRequest request, int score, int providerId) { in NetworkRequestInfo() argument
189 this.request = request; in NetworkRequestInfo()
197 return "{" + request + ", score=" + score + ", requested=" + requested + "}"; in toString()
211 protected void handleAddRequest(NetworkRequest request, int score, int servingProviderId) { in handleAddRequest() argument
212 NetworkRequestInfo n = mNetworkRequests.get(request); in handleAddRequest()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DIccLogicalChannelRequestTest.java60 IccLogicalChannelRequest request = in testConstructor_withValidParmas_shouldReturnValidValues() local
64 assertThat(request.subId).isEqualTo(SUB_ID); in testConstructor_withValidParmas_shouldReturnValidValues()
65 assertThat(request.slotIndex).isEqualTo(SLOT_INDEX); in testConstructor_withValidParmas_shouldReturnValidValues()
66 assertThat(request.portIndex).isEqualTo(PORT_INDEX); in testConstructor_withValidParmas_shouldReturnValidValues()
67 assertThat(request.callingPackage).isEqualTo(CALLING_PKG); in testConstructor_withValidParmas_shouldReturnValidValues()
68 assertThat(request.aid).isEqualTo(AID); in testConstructor_withValidParmas_shouldReturnValidValues()
69 assertThat(request.p2).isEqualTo(P2); in testConstructor_withValidParmas_shouldReturnValidValues()
70 assertThat(request.channel).isEqualTo(CHANNEL); in testConstructor_withValidParmas_shouldReturnValidValues()
71 assertThat(request.binder).isEqualTo(BINDER); in testConstructor_withValidParmas_shouldReturnValidValues()
119 IccLogicalChannelRequest request = new IccLogicalChannelRequest(); in createIccLogicalChannelRequest() local
[all …]
DSignalStrengthUpdateRequestTest.java93 SignalStrengthUpdateRequest request = new SignalStrengthUpdateRequest.Builder() in testPublicConstructorWithValidParam() local
95 assertFalse(request.isReportingRequestedWhileIdle()); in testPublicConstructorWithValidParam()
96 assertFalse(request.isSystemThresholdReportingRequestedWhileIdle()); in testPublicConstructorWithValidParam()
97 assertEquals(infos, request.getSignalThresholdInfos()); in testPublicConstructorWithValidParam()
104 SignalStrengthUpdateRequest request = new SignalStrengthUpdateRequest.Builder() in testParcel() local
108 request.writeToParcel(p, 0); in testParcel()
113 assertThat(newRequest).isEqualTo(request); in testParcel()
148 SignalStrengthUpdateRequest request = new SignalStrengthUpdateRequest.Builder() in testMultipleSignalMeasurementTypeOnSameRan() local
151 assertFalse(request.isReportingRequestedWhileIdle()); in testMultipleSignalMeasurementTypeOnSameRan()
152 assertFalse(request.isSystemThresholdReportingRequestedWhileIdle()); in testMultipleSignalMeasurementTypeOnSameRan()
[all …]
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/request/
DRemoteOptionsRequestTest.java17 package com.android.ims.rcs.uce.request;
40 import com.android.ims.rcs.uce.request.RemoteOptionsRequest.RemoteOptResponse;
42 import com.android.ims.rcs.uce.request.UceRequestManager.RequestManagerCallback;
95 RemoteOptionsRequest request = getRequest(); in testRequestCapabilities() local
97 request.setRemoteFeatureTags(featureTags); in testRequestCapabilities()
98 request.setIsRemoteNumberBlocked(false); in testRequestCapabilities()
100 request.executeRequest(); in testRequestCapabilities()
104 RemoteOptResponse response = request.getRemoteOptResponse(); in testRequestCapabilities()
114 RemoteOptionsRequest request = getRequest(); in testRequestCapabilitiesWhenBlocked() local
116 request.setRemoteFeatureTags(featureTags); in testRequestCapabilitiesWhenBlocked()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/install/
DRequestThrottleTest.kt48 val request = RequestThrottle(handler) { in simpleThrottle() constant
54 request.schedule() in simpleThrottle()
55 val thread = startThread { request.schedule() } in simpleThrottle()
56 request.schedule() in simpleThrottle()
72 val request = RequestThrottle(handler) { in exceptionInRequest() constant
81 request.schedule() in exceptionInRequest()
82 val thread = startThread { request.schedule() } in exceptionInRequest()
83 request.schedule() in exceptionInRequest()
105 val request = RequestThrottle(handler) { in scheduleWhileRunning() constant
113 request.schedule() in scheduleWhileRunning()
[all …]
/frameworks/base/cmds/incidentd/src/
DReporter.cpp101 StreamingFilterFd(uint8_t privacyPolicy, int fd, const sp<ReportRequest>& request);
110 const sp<ReportRequest>& request) in StreamingFilterFd() argument
112 mRequest(request) { in StreamingFilterFd()
230 sp<ReportRequest> request = found->second; in addPersistedReport() local
231 request->args.merge(args); in addPersistedReport()
261 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachStreamingRequest() local
262 request != mStreamingRequests.end(); request++) { in forEachStreamingRequest()
263 func(*request); in forEachStreamingRequest()
276 for (vector<sp<ReportRequest>>::iterator request = mStreamingRequests.begin(); in forEachListener() local
277 request != mStreamingRequests.end(); request++) { in forEachListener()
[all …]
/frameworks/base/core/java/android/app/
DInstantAppResolverService.java230 public void onGetInstantAppResolveInfo(@NonNull InstantAppRequestInfo request, in onGetInstantAppResolveInfo() argument
233 onGetInstantAppResolveInfo(request.getIntent(), request.getHostDigestPrefix(), in onGetInstantAppResolveInfo()
234 request.getUserHandle(), request.getToken(), callback); in onGetInstantAppResolveInfo()
247 public void onGetInstantAppIntentFilter(@NonNull InstantAppRequestInfo request, in onGetInstantAppIntentFilter() argument
250 onGetInstantAppIntentFilter(request.getIntent(), request.getHostDigestPrefix(), in onGetInstantAppIntentFilter()
251 request.getUserHandle(), request.getToken(), callback); in onGetInstantAppIntentFilter()
271 public void getInstantAppResolveInfoList(InstantAppRequestInfo request, int sequence, in onBind()
274 Slog.v(TAG, "[" + request.getToken() + "] Phase1 called; posting"); in onBind()
277 args.arg1 = request; in onBind()
284 public void getInstantAppIntentFilterList(InstantAppRequestInfo request, in onBind() argument
[all …]
/frameworks/base/core/java/android/ddm/
DDdmHandleProfiling.java77 public Chunk handleChunk(Chunk request) { in handleChunk() argument
79 Log.v("ddm-heap", "Handling " + name(request.type) + " chunk"); in handleChunk()
80 int type = request.type; in handleChunk()
83 return handleMPRS(request); in handleChunk()
85 return handleMPRE(request); in handleChunk()
87 return handleMPSS(request); in handleChunk()
89 return handleMPSEOrSPSE(request, "Method"); in handleChunk()
91 return handleMPRQ(request); in handleChunk()
93 return handleSPSS(request); in handleChunk()
95 return handleMPSEOrSPSE(request, "Sample"); in handleChunk()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsDispatchersController.java299 public void addRequest(@NonNull PendingRequest request) { in addRequest() argument
300 mPendingRequests.add(request); in addRequest()
1013 @NonNull PendingRequest request, @NonNull String logTag) { in sendSmsUsingDomainSelection() argument
1017 holder.addRequest(request); in sendSmsUsingDomainSelection()
1124 @NonNull PendingRequest request) { in sendData() argument
1126 mImsSmsDispatcher.sendData(request.callingPackage, request.destAddr, request.scAddr, in sendData()
1127 request.destPort, request.data, request.sentIntents.get(0), in sendData()
1128 request.deliveryIntents.get(0), request.isForVvm); in sendData()
1130 mCdmaDispatcher.sendData(request.callingPackage, request.destAddr, request.scAddr, in sendData()
1131 request.destPort, request.data, request.sentIntents.get(0), in sendData()
[all …]
DCellBroadcastConfigTracker.java179 Request request = (Request) msg.obj; in processMessage() local
181 logd("IdleState handle EVENT_REQUEST with request:" + request); in processMessage()
182 mLocalLog.log("IdleState handle EVENT_REQUEST with request:" + request in processMessage()
186 if (!mCbRanges3gpp.equals(request.get3gppRanges())) { in processMessage()
188 setGsmConfig(request.get3gppRanges(), request); in processMessage() local
190 } else if (!mCbRanges3gpp2.equals(request.get3gpp2Ranges())) { in processMessage()
193 setCdmaConfig(request.get3gpp2Ranges(), request); in processMessage() local
197 request.getCallback().accept( in processMessage()
227 Request request = (Request) ar.userObj; in processMessage() local
230 + request); in processMessage()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DSystemTextClassifier.java86 public TextSelection suggestSelection(TextSelection.Request request) { in suggestSelection() argument
87 Objects.requireNonNull(request); in suggestSelection()
90 request.setSystemTextClassifierMetadata(mSystemTcMetadata); in suggestSelection()
93 mManagerService.onSuggestSelection(mSessionId, request, callback); in suggestSelection()
101 return mFallback.suggestSelection(request); in suggestSelection()
109 public TextClassification classifyText(TextClassification.Request request) { in classifyText() argument
110 Objects.requireNonNull(request); in classifyText()
113 request.setSystemTextClassifierMetadata(mSystemTcMetadata); in classifyText()
116 mManagerService.onClassifyText(mSessionId, request, callback); in classifyText()
124 return mFallback.classifyText(request); in classifyText()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/model/
DBiometricPromptRequestTest.kt27 val request = in biometricRequestFromPromptInfo() constant
35 assertThat(request.title).isEqualTo(title) in biometricRequestFromPromptInfo()
36 assertThat(request.subtitle).isEqualTo(subtitle) in biometricRequestFromPromptInfo()
37 assertThat(request.description).isEqualTo(description) in biometricRequestFromPromptInfo()
38 assertThat(request.userInfo).isEqualTo(BiometricUserInfo(USER_ID)) in biometricRequestFromPromptInfo()
39 assertThat(request.operationInfo).isEqualTo(BiometricOperationInfo(OPERATION_ID)) in biometricRequestFromPromptInfo()
40 assertThat(request.modalities) in biometricRequestFromPromptInfo()
88 for (request in toCheck) { in credentialRequestFromPromptInfo() constant
89 assertThat(request.title).isEqualTo(title) in credentialRequestFromPromptInfo()
90 assertThat(request.subtitle).isEqualTo(subtitle) in credentialRequestFromPromptInfo()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/view/
DAbsCaptureHelperTest.java169 Rect request = new Rect(0, -CAPTURE_HEIGHT, WINDOW_WIDTH, 0); in onScrollRequested_up_fromTop() local
170 ScrollResult result = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_up_fromTop()
178 Rect request = new Rect(0, WINDOW_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT + CAPTURE_HEIGHT); in onScrollRequested_down_fromTop() local
179 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_down_fromTop()
181 assertThat(scrollResult.requestedArea).isEqualTo(request); in onScrollRequested_down_fromTop()
182 assertThat(scrollResult.availableArea).isEqualTo(request); in onScrollRequested_down_fromTop()
192 Rect request = new Rect(0, -CAPTURE_HEIGHT, WINDOW_WIDTH, 0); in onScrollRequested_up_fromMiddle() local
193 ScrollResult scrollResult = requestScrollSync(mHelper, mScrollBounds, request); in onScrollRequested_up_fromMiddle()
195 assertThat(scrollResult.requestedArea).isEqualTo(request); in onScrollRequested_up_fromMiddle()
196 assertThat(scrollResult.availableArea).isEqualTo(request); in onScrollRequested_up_fromMiddle()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotData.kt34 fun fromRequest(request: ScreenshotRequest): ScreenshotData { in fromRequest()
36 request.type, in fromRequest()
37 request.source, in fromRequest()
38 if (request.userId >= 0) UserHandle.of(request.userId) else null, in fromRequest()
39 request.topComponent, in fromRequest()
40 request.boundsInScreen, in fromRequest()
41 request.taskId, in fromRequest()
42 request.insets, in fromRequest()
43 request.bitmap, in fromRequest()
/frameworks/base/core/java/android/service/quickaccesswallet/
DQuickAccessWalletService.java227 @NonNull GetWalletCardsRequest request,
229 mHandler.post(() -> onWalletCardsRequestedInternal(request, callback));
233 public void onWalletCardSelected(@NonNull SelectWalletCardRequest request) {
234 mHandler.post(() -> QuickAccessWalletService.this.onWalletCardSelected(request));
251 @NonNull WalletServiceEventListenerRequest request,
253 mHandler.post(() -> registerDismissWalletListenerInternal(request, callback));
257 @NonNull WalletServiceEventListenerRequest request) {
258 mHandler.post(() -> unregisterDismissWalletListenerInternal(request));
263 GetWalletCardsRequest request, in onWalletCardsRequestedInternal() argument
266 request, new GetWalletCardsCallbackImpl(request, callback, mHandler, this)); in onWalletCardsRequestedInternal()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java100 /* package */ boolean cancelRequest(UsbRequest request) { in cancelRequest() argument
106 return request.cancelIfOpen(); in cancelRequest()
114 /* package */ boolean queueRequest(UsbRequest request, ByteBuffer buffer, int length) { in queueRequest() argument
120 return request.queueIfConnectionOpen(buffer, length); in queueRequest()
128 /* package */ boolean queueRequest(UsbRequest request, @Nullable ByteBuffer buffer) { in queueRequest() argument
134 return request.queueIfConnectionOpen(buffer); in queueRequest()
240 public int controlTransfer(int requestType, int request, int value, in controlTransfer() argument
242 return controlTransfer(requestType, request, value, index, buffer, 0, length, timeout); in controlTransfer()
265 public int controlTransfer(int requestType, int request, int value, int index, in controlTransfer() argument
268 return native_control_request(requestType, request, value, index, in controlTransfer()
[all …]
/frameworks/base/services/core/java/com/android/server/logcat/
DLogcatManagerService.java257 LogAccessRequest request = (LogAccessRequest) msg.obj; in handleMessage() local
258 mService.onLogAccessRequested(request); in handleMessage()
272 LogAccessRequest request = (LogAccessRequest) msg.obj; in handleMessage() local
273 mService.onLogAccessFinished(request); in handleMessage()
339 private LogAccessClient getClientForRequest(LogAccessRequest request) { in getClientForRequest() argument
340 final String packageName = getPackageName(request); in getClientForRequest()
345 return new LogAccessClient(request.mUid, packageName); in getClientForRequest()
353 private String getPackageName(LogAccessRequest request) { in getPackageName() argument
361 String[] packageNames = pm.getPackagesForUid(request.mUid); in getPackageName()
369 int pid = request.mPid; in getPackageName()
[all …]

12345678910>>...37