Home
last modified time | relevance | path

Searched refs:req (Results 1 – 25 of 33) sorted by relevance

12

/packages/providers/MediaProvider/jni/
DFuseDaemon.cpp359 static struct fuse* get_fuse(fuse_req_t req) { in get_fuse() argument
360 return reinterpret_cast<struct fuse*>(fuse_req_userdata(req)); in get_fuse()
402 static node* make_node_entry(fuse_req_t req, node* parent, const string& name, const string& path, in make_node_entry() argument
404 struct fuse* fuse = get_fuse(req); in make_node_entry()
405 const struct fuse_ctx* ctx = fuse_req_ctx(req); in make_node_entry()
441 TRACE_NODE(node, req); in make_node_entry()
520 static node* do_lookup(fuse_req_t req, fuse_ino_t parent, const char* name, in do_lookup() argument
522 struct fuse* fuse = get_fuse(req); in do_lookup()
531 … if (!fuse->IsRoot(parent_node) && !is_app_accessible_path(fuse->mp, parent_path, req->ctx.uid)) { in do_lookup()
538 TRACE_NODE(parent_node, req); in do_lookup()
[all …]
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java162 final LoadRequest req = (LoadRequest) msg.obj; in handleMessage() local
165 if (req.src == null) { in handleMessage()
175 req.result = new DrawableTileSource(this, in handleMessage()
180 req.src.loadInBackground(new InBitmapProvider() { in handleMessage()
217 req.result = new BitmapRegionTileSource(WallpaperCropActivity.this, req.src, in handleMessage()
219 loadSuccess = req.src.getLoadingState() == BitmapSource.State.LOADED; in handleMessage()
226 if (req == mCurrentLoadRequest) { in handleMessage()
227 onLoadRequestComplete(req, loadSuccess); in handleMessage()
229 addReusableBitmap(req.result); in handleMessage()
267 protected void onLoadRequestComplete(LoadRequest req, boolean success) { in onLoadRequestComplete() argument
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java106 for (ScanRequest req : mPending.values()) { in hasPendingScans()
107 if (nowRealtime < req.requestRealtime + SCAN_TIMEOUT) { in hasPendingScans()
122 public void requestScan(ScanRequest req) { in requestScan() argument
123 if (LOGV) Log.v(TAG, "requestScan() for " + req.path); in requestScan()
125 mPending.put(req.path, req); in requestScan()
128 req.exec(mConnection); in requestScan()
142 for (ScanRequest req : mPending.values()) { in onMediaScannerConnected()
143 req.exec(mConnection); in onMediaScannerConnected()
150 final ScanRequest req; in onScanCompleted() local
152 req = mPending.remove(path); in onScanCompleted()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DBlobCache.java442 public boolean lookup(LookupRequest req) throws IOException { in lookup() argument
444 if (lookupInternal(req.key, mActiveHashStart)) { in lookup()
445 if (getBlob(mActiveDataFile, mFileOffset, req)) { in lookup()
456 if (lookupInternal(req.key, mInactiveHashStart)) { in lookup()
457 if (getBlob(mInactiveDataFile, mFileOffset, req)) { in lookup()
460 if (mActiveBytes + BLOB_HEADER_SIZE + req.length > mMaxBytes in lookup()
467 insertInternal(req.key, req.buffer, req.length); in lookup()
489 LookupRequest req) throws IOException { in getBlob() argument
502 if (blobKey != req.key) { in getBlob()
517 if (req.buffer == null || req.buffer.length < length) { in getBlob()
[all …]
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java322 UsbRequest req = mUsbConnection.requestWait(); in drainRequests() local
323 if (req == null) { in drainRequests()
327 req.close(); in drainRequests()
348 UsbRequest req = mUsbConnection.requestWait(); in writeBufferSize() local
349 if (req == null) { in writeBufferSize()
353 req.close(); in writeBufferSize()
395 UsbRequest req = mUsbConnection.requestWait(); in run() local
396 if (req == null) { in run()
400 req.close(); in run()
/packages/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/
DEmbmsTestDownloadApp.java305 DownloadRequest req = (DownloadRequest) downloadRequestSpinner.getSelectedItem(); in onCreate() local
306 if (req == null) { in onCreate()
311 mDownloadManager.addProgressListener(req, sInstance.getMainThreadHandler()::post, in onCreate()
333 DownloadRequest req = (DownloadRequest) downloadRequestSpinner.getSelectedItem(); in onCreate() local
334 if (req == null) { in onCreate()
339 mDownloadManager.addStatusListener(req, sInstance.getMainThreadHandler()::post, in onCreate()
359 DownloadRequest req = (DownloadRequest) downloadRequestSpinner.getSelectedItem(); in onCreate() local
360 if (req == null) { in onCreate()
366 mDownloadManager.addStatusListener(req, sInstance.getMainThreadHandler()::post, in onCreate()
377 mDownloadManager.addProgressListener(req, sInstance.getMainThreadHandler()::post, in onCreate()
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
DNetlinkSocketTest.java62 final byte[] req = RtNetlinkNeighborMessage.newGetNeighborsRequest(TEST_SEQNO); in testBasicWorkingGetNeighborsQuery()
63 assertNotNull(req); in testBasicWorkingGetNeighborsQuery()
66 assertEquals(req.length, NetlinkSocket.sendMessage(fd, req, 0, req.length, TIMEOUT)); in testBasicWorkingGetNeighborsQuery()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java1004 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local
1005 switch (req.exchangeSubtype) { in processStateMessage()
1219 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local
1220 switch (req.exchangeSubtype) { in processStateMessage()
1225 req.requestPayloads, mCurrentChildSaRecord)) { in processStateMessage()
1248 + req.exchangeSubtype)); in processStateMessage()
1266 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local
1267 if (req.exchangeSubtype == IKE_EXCHANGE_SUBTYPE_DELETE_CHILD) { in processStateMessage()
1268 handleDeleteSessionRequest(req.requestPayloads); in processStateMessage()
1470 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local
[all …]
DIkeSessionStateMachine.java1147 private void executeLocalRequest(LocalRequest req, Message message) { in executeLocalRequest() argument
1148 req.releaseWakeLock(); in executeLocalRequest()
1150 if (!isRequestForCurrentSa(req)) { in executeLocalRequest()
1156 switch (req.procedureType) { in executeLocalRequest()
1175 "Invalid local request procedure type: " + req.procedureType)); in executeLocalRequest()
1184 ChildLocalRequest req = (ChildLocalRequest) localRequest; in isRequestForCurrentSa() local
1185 if (req.remoteSpi == IkeLocalRequestScheduler.SPI_NOT_INCLUDED in isRequestForCurrentSa()
1186 || mRemoteSpiToChildSessionMap.get(req.remoteSpi) != null) { in isRequestForCurrentSa()
1190 IkeLocalRequest req = (IkeLocalRequest) localRequest; in isRequestForCurrentSa() local
1191 if (req.remoteSpi == IkeLocalRequestScheduler.SPI_NOT_INCLUDED in isRequestForCurrentSa()
[all …]
DIkeLocalRequestScheduler.java94 for (LocalRequest req : mRequestQueue) { in releaseAllLocalRequestWakeLocks()
95 req.releaseWakeLock(); in releaseAllLocalRequestWakeLocks()
/packages/modules/NetworkStack/jni/
Dnetwork_stack_utils_jni.cpp60 arpreq req = {}; in network_stack_utils_addArpEntry() local
61 sockaddr_in& netAddrStruct = *reinterpret_cast<sockaddr_in*>(&req.arp_pa); in network_stack_utils_addArpEntry()
62 sockaddr& ethAddrStruct = req.arp_ha; in network_stack_utils_addArpEntry()
82 env->GetStringUTFRegion(ifname, 0, ifLen, req.arp_dev); in network_stack_utils_addArpEntry()
84 req.arp_flags = ATF_COM; // Completed entry (ha valid) in network_stack_utils_addArpEntry()
91 if (ioctl(fd, SIOCSARP, &req)) { in network_stack_utils_addArpEntry()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java1531 private void assertInitialUserInfoSetRequest(VehiclePropValue req, int requestType) { in assertInitialUserInfoSetRequest() argument
1532 assertThat(req.value.int32Values.get(1)).isEqualTo(requestType); in assertInitialUserInfoSetRequest()
1533 assertUsersInfo(req, mUsersInfo, 2); in assertInitialUserInfoSetRequest()
1536 private void assertHalSetSwitchUserRequest(VehiclePropValue req, int messageType, in assertHalSetSwitchUserRequest() argument
1538 assertThat(req.prop).isEqualTo(SWITCH_USER); in assertHalSetSwitchUserRequest()
1539 assertWithMessage("wrong request Id on %s", req).that(req.value.int32Values.get(0)) in assertHalSetSwitchUserRequest()
1541 assertThat(req.value.int32Values.get(1)).isEqualTo(messageType); in assertHalSetSwitchUserRequest()
1542 assertWithMessage("targetuser.id mismatch on %s", req).that(req.value.int32Values.get(2)) in assertHalSetSwitchUserRequest()
1544 assertWithMessage("targetuser.flags mismatch on %s", req).that(req.value.int32Values.get(3)) in assertHalSetSwitchUserRequest()
1546 assertUsersInfo(req, mUsersInfo, 4); in assertHalSetSwitchUserRequest()
[all …]
/packages/services/Car/evs/manager/1.1/
DHalCamera.cpp212 FrameRequest req; in requestNewFrame() local
213 req.client = client; in requestNewFrame()
214 req.timestamp = lastTimestamp; in requestNewFrame()
217 mNextRequests->push_back(req); in requestNewFrame()
367 auto req = mCurrentRequests->front(); mCurrentRequests->pop_front(); in deliverFrame_1_1() local
368 sp<VirtualCamera> vCam = req.client.promote(); in deliverFrame_1_1()
372 } else if (timestamp - req.timestamp < kThreshold) { in deliverFrame_1_1()
375 mNextRequests->push_back(req); in deliverFrame_1_1()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DPublicApiFunctionalTest.java472 RecordedRequest req; in testEtagChanged() local
477 req = takeRequest(); in testEtagChanged()
478 assertNull(getHeaderValue(req, "Range")); in testEtagChanged()
479 assertNull(getHeaderValue(req, "If-Match")); in testEtagChanged()
485 req = takeRequest(); in testEtagChanged()
486 assertEquals("bytes=2-", getHeaderValue(req, "Range")); in testEtagChanged()
487 assertEquals(A, getHeaderValue(req, "If-Match")); in testEtagChanged()
786 private static String getHeaderValue(RecordedRequest req, String header) { in getHeaderValue() argument
788 for (String h : req.getHeaders()) { in getHeaderValue()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientPhotoManager.java69 final BindableMediaRequest<ImageResource> req = descriptor.buildAsyncMediaRequest( in populatePhotoBytesAsync()
90 req.bind(IMAGE_BYTES_REQUEST_STATIC_BINDING_ID); in populatePhotoBytesAsync()
92 Factory.get().getMediaResourceManager().requestMediaResourceAsync(req); in populatePhotoBytesAsync()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java689 public void startProvisioning(ProvisioningConfigurationParcelable req) { in startProvisioning() argument
691 IpClient.this.startProvisioning(ProvisioningConfiguration.fromStableParcelable(req)); in startProvisioning()
799 public void startProvisioning(ProvisioningConfiguration req) { in startProvisioning() argument
800 if (!req.isValid()) { in startProvisioning()
805 final ScanResultInfo scanResultInfo = req.mScanResultInfo; in startProvisioning()
816 if (req.mLayer2Info != null) { in startProvisioning()
817 mL2Key = req.mLayer2Info.mL2Key; in startProvisioning()
818 mCluster = req.mLayer2Info.mCluster; in startProvisioning()
820 sendMessage(CMD_START, new android.net.shared.ProvisioningConfiguration(req)); in startProvisioning()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java2473 final SendReq req = new SendReq();
2477 req.setFrom(new EncodedStringValue(lineNumber));
2482 req.setTo(encodedNumbers);
2486 req.setSubject(new EncodedStringValue(message.getMmsSubject()));
2489 req.setDate(timestampMillis / 1000L);
2492 req.setBody(bodyInfo.mPduBody);
2494 req.setMessageSize(bodyInfo.mMessageSize);
2496 req.setMessageClass(PduHeaders.MESSAGE_CLASS_PERSONAL_STR.getBytes());
2498 req.setExpiry(expiryTime);
2500 req.setPriority(priority);
[all …]
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DAoapServiceManager.java287 private void send(Messenger messenger, int req, Bundle data) { in send() argument
288 Message msg = Message.obtain(null, req, null); in send()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/ip/
DIIpClient.aidl7 oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req); in startProvisioning() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/2/android/net/ip/
DIIpClient.aidl7 oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req); in startProvisioning() argument
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ip/
DIIpClient.aidl30 void startProvisioning(in ProvisioningConfigurationParcelable req); in startProvisioning() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/4/android/net/ip/
DIIpClient.aidl7 oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req); in startProvisioning() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/3/android/net/ip/
DIIpClient.aidl24 oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req); in startProvisioning() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/5/android/net/ip/
DIIpClient.aidl25 oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req); in startProvisioning() argument
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/7/android/net/ip/
DIIpClient.aidl25 oneway void startProvisioning(in android.net.ProvisioningConfigurationParcelable req); in startProvisioning() argument

12