Home
last modified time | relevance | path

Searched refs:requestId (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/startop/iorap/tests/src/com/google/android/startop/iorap/
DIIorapIntegrationTest.kt47 override fun onProgress(requestId: RequestId?, result: TaskResult?) { in <lambda>()
50 override fun onComplete(requestId: RequestId?, result: TaskResult?) { in <lambda>()
63 val requestId = RequestId.nextValueForSequence()!! in <lambda>() constant
66 func(requestId) in <lambda>()
74 .onProgress(eq(requestId), argThat { it!!.state == TaskResult.STATE_BEGAN }) in <lambda>()
76 .onProgress(eq(requestId), argThat { it!!.state == TaskResult.STATE_ONGOING }) in <lambda>()
78 .onComplete(eq(requestId), argThat { it!!.state == TaskResult.STATE_COMPLETED }) in <lambda>()
100 testAnyMethod { requestId: RequestId -> in <lambda>() method
101 iorapService.onAppIntentEvent(requestId, AppIntentEvent.createDefaultIntentChanged( in <lambda>()
109 testAnyMethod { requestId: RequestId -> in <lambda>() method
[all …]
DParcelablesTest.kt88 private fun cloneRequestId(requestId: RequestId): RequestId { in <lambda>()
89 val constructor = requestId::class.java.declaredConstructors[0] in <lambda>()
91 return constructor.newInstance(requestId.requestId) as RequestId in <lambda>()
/frameworks/base/core/java/android/net/
DDataUsageRequest.java42 public final int requestId; field in DataUsageRequest
54 public DataUsageRequest(int requestId, NetworkTemplate template, long thresholdInBytes) { in DataUsageRequest() argument
55 this.requestId = requestId; in DataUsageRequest()
67 dest.writeInt(requestId); in writeToParcel()
76 int requestId = in.readInt();
79 DataUsageRequest result = new DataUsageRequest(requestId, template,
92 return "DataUsageRequest [ requestId=" + requestId in toString()
101 return that.requestId == this.requestId in equals()
108 return Objects.hash(requestId, template, thresholdInBytes); in hashCode()
DNetworkRequest.java56 public final int requestId; field in NetworkRequest
126 requestId = rId; in NetworkRequest()
137 requestId = that.requestId; in NetworkRequest()
380 dest.writeInt(requestId); in writeToParcel()
389 int requestId = in.readInt();
391 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type);
522 return "NetworkRequest [ " + type + " id=" + requestId + in toString()
549 proto.write(NetworkRequestProto.REQUEST_ID, requestId); in writeToProto()
560 that.requestId == this.requestId && in equals()
566 return Objects.hash(requestId, legacyType, networkCapabilities, type); in hashCode()
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DRequestId.java39 public final long requestId; field in RequestId
60 private RequestId(long requestId) { in RequestId() argument
61 this.requestId = requestId; in RequestId()
67 if (requestId < 0) { in checkConstructorArguments()
74 return String.format("{requestId: %d}", requestId); in toString()
88 return requestId == other.requestId; in equals()
95 out.writeLong(requestId); in writeToParcel()
99 requestId = in.readLong(); in RequestId()
DIorapForwardingService.java341 public void onProgress(RequestId requestId, TaskResult result) throws RemoteException {
344 String.format("RemoteTaskListener#onProgress(%s, %s)", requestId, result));
351 public void onComplete(RequestId requestId, TaskResult result) throws RemoteException {
354 String.format("RemoteTaskListener#onComplete(%s, %s)", requestId, result));
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestQueue.java102 public synchronized long stopRepeating(int requestId) { in stopRepeating() argument
104 if (mRepeatingRequest != null && mRepeatingRequest.getRequestId() == requestId) { in stopRepeating()
111 Log.e(TAG, "cancel failed: no repeating request exists for request id: " + requestId); in stopRepeating()
143 int requestId = mCurrentRequestId++; in submit() local
144 BurstHolder burst = new BurstHolder(requestId, repeating, requests, mJpegSurfaceIds); in submit()
158 SubmitInfo info = new SubmitInfo(requestId, lastFrame); in submit()
162 private long calculateLastFrame(int requestId) { in calculateLastFrame() argument
166 if (b.getRequestId() == requestId) { in calculateLastFrame()
DBurstHolder.java41 public BurstHolder(int requestId, boolean repeating, CaptureRequest[] requests, in BurstHolder() argument
46 mRequestBuilders.add(new RequestHolder.Builder(requestId, /*subsequenceId*/i, in BurstHolder()
51 mRequestId = requestId; in BurstHolder()
DRequestHolder.java72 public Builder(int requestId, int subsequenceId, CaptureRequest request, in Builder() argument
75 mRequestId = requestId; in Builder()
160 private RequestHolder(int requestId, int subsequenceId, CaptureRequest request, in RequestHolder() argument
165 mRequestId = requestId; in RequestHolder()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCaptureResultExtras.java25 private int requestId; field in CaptureResultExtras
51 public CaptureResultExtras(int requestId, int subsequenceId, int afTriggerId, in CaptureResultExtras() argument
55 this.requestId = requestId; in CaptureResultExtras()
72 dest.writeInt(requestId); in writeToParcel()
88 requestId = in.readInt(); in readFromParcel()
106 return requestId; in getRequestId()
DCameraDeviceImpl.java952 final int requestId, final long lastFrameNumber, in checkEarlyTriggerSequenceComplete() argument
958 int index = mCaptureCallbackMap.indexOfKey(requestId); in checkEarlyTriggerSequenceComplete()
966 requestId, lastFrameNumber)); in checkEarlyTriggerSequenceComplete()
983 requestId)); in checkEarlyTriggerSequenceComplete()
987 requestId); in checkEarlyTriggerSequenceComplete()
1000 requestId)); in checkEarlyTriggerSequenceComplete()
1005 mRequestLastFrameNumbersList.add(new RequestLastFrameNumbersHolder(requestId, in checkEarlyTriggerSequenceComplete()
1132 int requestId = mRepeatingRequestId; in stopRepeating() local
1139 lastFrameNumber = mRemoteDevice.cancelRequest(requestId); in stopRepeating()
1142 … Log.v(TAG, "Repeating request was already stopped for request " + requestId); in stopRepeating()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattServerCallback.java57 public void onCharacteristicReadRequest(BluetoothDevice device, int requestId, in onCharacteristicReadRequest() argument
75 public void onCharacteristicWriteRequest(BluetoothDevice device, int requestId, in onCharacteristicWriteRequest() argument
92 public void onDescriptorReadRequest(BluetoothDevice device, int requestId, in onDescriptorReadRequest() argument
110 public void onDescriptorWriteRequest(BluetoothDevice device, int requestId, in onDescriptorWriteRequest() argument
126 public void onExecuteWrite(BluetoothDevice device, int requestId, boolean execute) { in onExecuteWrite() argument
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java190 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()
380 NetworkRequest existing = mNetworkRequests.get(networkRequest.requestId); in addRequest()
389 mNetworkRequests.put(networkRequest.requestId, networkRequest); in addRequest()
397 public void removeRequest(int requestId) { in removeRequest() argument
398 NetworkRequest existing = mNetworkRequests.get(requestId); in removeRequest()
401 mNetworkRequests.remove(requestId); in removeRequest()
547 if (mLingerTimerForRequest.get(request.requestId) != null) { in lingerRequest()
551 Log.wtf(TAG, toShortString() + ": request " + request.requestId + " already lingered"); in lingerRequest()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java596 int requestId = 12; in doSuccessfulSingleScan() local
608 sendSingleScanRequest(controlChannel, requestId, requestSettings, workSource); in doSuccessfulSingleScan()
612 verifySuccessfulResponse(order, handler, requestId); in doSuccessfulSingleScan()
620 verifyScanResultsReceived(order, handler, requestId, results.getScanData()); in doSuccessfulSingleScan()
621 verifySingleScanCompletedReceived(order, handler, requestId); in doSuccessfulSingleScan()
624 assertDumpContainsRequestLog("addSingleScanRequest", requestId); in doSuccessfulSingleScan()
625 assertDumpContainsCallbackLog("singleScanResults", requestId, in doSuccessfulSingleScan()
699 int requestId = 33; in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp() local
718 sendSingleScanRequest(controlChannel, requestId, requestSettings, null); in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp()
724 verifyFailedResponse(order, handler, requestId, in sendSingleScanRequestWithPrivilegedTypeParamsSetFromNonPrivilegedApp()
[all …]
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java138 assertTrue(request.requestId > 0); in testRegister_thresholdTooLow_setsDefaultThreshold()
151 assertTrue(request.requestId > 0); in testRegister_highThreshold_accepted()
163 assertTrue(request1.requestId > 0); in testRegister_twoRequests_twoIds()
169 assertTrue(request2.requestId > request1.requestId); in testRegister_twoRequests_twoIds()
189 assertTrue(request.requestId > 0); in testUnregister_knownRequest_releasesCaller()
207 assertTrue(request.requestId > 0); in testUnregister_knownRequest_invalidUid_doesNotUnregister()
234 assertTrue(request.requestId > 0); in testUpdateStats_initialSample_doesNotNotify()
258 assertTrue(request.requestId > 0); in testUpdateStats_belowThreshold_doesNotNotify()
288 assertTrue(request.requestId > 0); in testUpdateStats_deviceAccess_notifies()
319 assertTrue(request.requestId > 0); in testUpdateStats_defaultAccess_notifiesSameUid()
[all …]
/frameworks/base/core/java/android/service/restrictions/
DRestrictionsReceiver.java64 String packageName, String requestType, String requestId, PersistableBundle request); in onRequestPermission() argument
78 String requestId = intent.getStringExtra(RestrictionsManager.EXTRA_REQUEST_ID); in onReceive() local
81 onRequestPermission(context, packageName, requestType, requestId, request); in onReceive()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DSession.java317 final int requestId = receiverExtras.getInt(EXTRA_REQUEST_ID);
320 Slog.v(TAG, "New structure for requestId " + requestId + ": " + structure);
374 mContexts.add(new FillContext(requestId, structure, mCurrentViewId));
385 request = new FillRequest(requestId, contexts, mClientState, flags);
590 int requestId; in requestNewFillResponseLocked() local
593 requestId = sIdCounter.getAndIncrement(); in requestNewFillResponseLocked()
594 } while (requestId == INVALID_REQUEST_ID); in requestNewFillResponseLocked()
603 mRequestLogs.put(requestId, log); in requestNewFillResponseLocked()
606 Slog.v(TAG, "Requesting structure for request #" + ordinal + " ,requestId=" + requestId in requestNewFillResponseLocked()
619 receiverExtras.putInt(EXTRA_REQUEST_ID, requestId); in requestNewFillResponseLocked()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DClientWakelockTracker.java38 public void startTracking(String clientId, int requestId, int token, int numRequestsInQueue) { in startTracking() argument
41 client.startAttributingWakelock(requestId, token, numRequestsInQueue, uptime); in startTracking()
51 public void stopTracking(String clientId, int requestId, int token, int numRequestsInQueue) { in stopTracking() argument
54 client.stopAttributingWakelock(requestId, token, uptime); in stopTracking()
/frameworks/base/telephony/java/android/telephony/
DClientRequestStats.java125 public void updateRequestHistograms(int requestId, int time) { in updateRequestHistograms() argument
127 TelephonyHistogram entry = mRequestHistograms.get(requestId); in updateRequestHistograms()
130 requestId, REQUEST_HISTOGRAM_BUCKET_COUNT); in updateRequestHistograms()
131 mRequestHistograms.put(requestId, entry); in updateRequestHistograms()
/frameworks/base/core/java/android/service/autofill/
DFillCallback.java40 public FillCallback(IFillCallback callback, int requestId) { in FillCallback() argument
42 mRequestId = requestId; in FillCallback()
/frameworks/base/core/java/android/hardware/camera2/utils/
DSubmitInfo.java41 public SubmitInfo(int requestId, long lastFrameNumber) { in SubmitInfo() argument
42 mRequestId = requestId; in SubmitInfo()
/frameworks/base/core/java/android/service/contentsuggestions/
DContentSuggestionsService.java111 public void notifyInteraction(String requestId, Bundle interaction) {
114 ContentSuggestionsService.this, requestId, interaction));
161 @NonNull String requestId, @NonNull Bundle interaction); in onNotifyInteraction()
/frameworks/av/camera/include/camera/
DCaptureResult.h39 int32_t requestId; member
83 : requestId(-1), in CaptureResultExtras()
/frameworks/base/core/java/com/android/ims/internal/uce/presence/
DPresCmdStatus.java97 public void setRequestId(int requestId) { in setRequestId() argument
98 this.mRequestId = requestId; in setRequestId()
/frameworks/base/core/java/com/android/ims/internal/uce/options/
DOptionsSipResponse.java63 public void setRequestId(int requestId) { in setRequestId() argument
64 this.mRequestId = requestId; in setRequestId()

1234