/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareNativeApi.java | 468 android.hardware.wifi.V1_4.NanEnableRequest req = in enableAndConfigure() local 471 req.operateInBand[NanBandIndex.NAN_BAND_24GHZ] = true; in enableAndConfigure() 472 req.operateInBand[NanBandIndex.NAN_BAND_5GHZ] = configRequest.mSupport5gBand; in enableAndConfigure() 473 req.operateInBand[android.hardware.wifi.V1_4.NanBandIndex.NAN_BAND_6GHZ] = in enableAndConfigure() 475 req.hopCountMax = 2; in enableAndConfigure() 476 req.configParams.masterPref = (byte) configRequest.mMasterPreference; in enableAndConfigure() 477 req.configParams.disableDiscoveryAddressChangeIndication = in enableAndConfigure() 479 req.configParams.disableStartedClusterIndication = !notifyIdentityChange; in enableAndConfigure() 480 req.configParams.disableJoinedClusterIndication = !notifyIdentityChange; in enableAndConfigure() 481 req.configParams.includePublishServiceIdsInBeacon = true; in enableAndConfigure() [all …]
|
/packages/providers/MediaProvider/jni/ |
D | FuseDaemon.cpp | 380 static struct fuse* get_fuse(fuse_req_t req) { in get_fuse() argument 381 return reinterpret_cast<struct fuse*>(fuse_req_userdata(req)); in get_fuse() 452 const std::string& path, const std::string& name, fuse_req_t req, int* error_code, in validate_node_path() argument 454 struct fuse* fuse = get_fuse(req); in validate_node_path() 455 const struct fuse_ctx* ctx = fuse_req_ctx(req); in validate_node_path() 494 fuse->mp->FileLookup(path, req->ctx.uid, req->ctx.pid); in validate_node_path() 513 static node* make_node_entry(fuse_req_t req, node* parent, const string& name, const string& path, in make_node_entry() argument 515 struct fuse* fuse = get_fuse(req); in make_node_entry() 516 const struct fuse_ctx* ctx = fuse_req_ctx(req); in make_node_entry() 522 validate_node_path(path, name, req, error_code, e, op); in make_node_entry() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperCropActivity.java | 162 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/modules/Connectivity/Tethering/jni/ |
D | com_android_networkstack_tethering_BpfUtils.cpp | 49 static void sendAndProcessNetlinkResponse(JNIEnv* env, const void* req, int len) { in sendAndProcessNetlinkResponse() argument 82 int rv = send(fd, req, len, 0); in sendAndProcessNetlinkResponse() 230 } req = { in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() local 233 .nlmsg_len = sizeof(req), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 251 .nla_len = sizeof(req.kind), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 260 .nla_len = sizeof(req.options), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 267 .nla_len = sizeof(req.options.fd), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 276 .nla_len = sizeof(req.options.name), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 287 .nla_len = sizeof(req.options.flags), in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() 295 snprintf(req.options.name.str, sizeof(req.options.name.str), "%s:[*fsobj]", in com_android_networkstack_tethering_BpfUtils_tcFilterAddDevBpf() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadScanner.java | 106 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/modules/adb/client/ |
D | usb_osx.cpp | 238 IOUSBDevRequest req; in AndroidInterfaceAdded() local 244 req.bmRequestType = in AndroidInterfaceAdded() 246 req.bRequest = kUSBRqGetDescriptor; in AndroidInterfaceAdded() 247 req.wValue = (kUSBStringDesc << 8) | 0; in AndroidInterfaceAdded() 248 req.wIndex = 0; in AndroidInterfaceAdded() 249 req.pData = languages; in AndroidInterfaceAdded() 250 req.wLength = sizeof(languages); in AndroidInterfaceAdded() 251 kr = (*dev)->DeviceRequest(dev, &req); in AndroidInterfaceAdded() 253 if (kr == kIOReturnSuccess && req.wLenDone > 0) { in AndroidInterfaceAdded() 255 int langCount = (req.wLenDone - 2) / 2, lang; in AndroidInterfaceAdded() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TestConnectivityManager.java | 193 static boolean looksLikeDefaultRequest(NetworkRequest req) { in looksLikeDefaultRequest() argument 194 return req.hasCapability(NET_CAPABILITY_INTERNET) in looksLikeDefaultRequest() 195 && !req.hasCapability(NET_CAPABILITY_DUN) in looksLikeDefaultRequest() 196 && !req.hasTransport(TRANSPORT_CELLULAR); in looksLikeDefaultRequest() 200 public void requestNetwork(NetworkRequest req, NetworkCallback cb, Handler h) { in requestNetwork() argument 203 if (looksLikeDefaultRequest(req)) { in requestNetwork() 207 mAllCallbacks.put(cb, new NetworkRequestInfo(req, h)); in requestNetwork() 209 mRequested.put(cb, new NetworkRequestInfo(req, h)); in requestNetwork() 223 public void requestNetwork(NetworkRequest req, NetworkCallback cb) { in requestNetwork() argument 228 public void requestNetwork(NetworkRequest req, in requestNetwork() argument [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BlobCache.java | 442 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/apps/Car/DebuggingRestrictionController/server/ |
D | genkey.sh | 40 req="$folder/token_signing-${date}.req" 56 openssl req -nodes -newkey rsa:2048 -sha256 -keyout "${key}" -out "${req}" 59 openssl x509 -req \ 60 -in "$req" -out "$signed" -CA "$ca_cert" -CAkey "$ca_key" \
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | ChildSessionParamsTest.java | 219 for (TunnelModeChildConfigRequest req : childParams.getConfigurationRequests()) { in verifySpecificV4AddrConfigReq() 220 if (req instanceof ConfigRequestIpv4Address in verifySpecificV4AddrConfigReq() 221 && ((ConfigRequestIpv4Address) req).getAddress() != null) { in verifySpecificV4AddrConfigReq() 222 Inet4Address address = ((ConfigRequestIpv4Address) req).getAddress(); in verifySpecificV4AddrConfigReq() 235 for (TunnelModeChildConfigRequest req : childParams.getConfigurationRequests()) { in verifySpecificV6AddrConfigReq() 236 if (req instanceof ConfigRequestIpv6Address in verifySpecificV6AddrConfigReq() 237 && ((ConfigRequestIpv6Address) req).getAddress() != null) { in verifySpecificV6AddrConfigReq() 238 ConfigRequestIpv6Address ipv6AddrReq = (ConfigRequestIpv6Address) req; in verifySpecificV6AddrConfigReq()
|
D | IkeSessionParamsTest.java | 273 for (IkeConfigRequest req : sessionParams.getConfigurationRequests()) { in testSetPcscfConfigRequests() 274 if (req instanceof ConfigRequestIpv4PcscfServer in testSetPcscfConfigRequests() 275 && ((ConfigRequestIpv4PcscfServer) req).getAddress() != null) { in testSetPcscfConfigRequests() 276 resultAddresses.add(((ConfigRequestIpv4PcscfServer) req).getAddress()); in testSetPcscfConfigRequests() 277 } else if (req instanceof ConfigRequestIpv6PcscfServer in testSetPcscfConfigRequests() 278 && ((ConfigRequestIpv6PcscfServer) req).getAddress() != null) { in testSetPcscfConfigRequests() 279 resultAddresses.add(((ConfigRequestIpv6PcscfServer) req).getAddress()); in testSetPcscfConfigRequests()
|
D | IkeTunUtils.java | 102 byte[] req = in awaitReqAndInjectResp() 112 reqList.add(req); in awaitReqAndInjectResp() 118 byte[] req = in awaitReqAndInjectResp() 129 reqList.add(req); in awaitReqAndInjectResp()
|
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/ |
D | SpeedMeasurementController.java | 322 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/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceRequest.java | 226 WifiP2pServiceRequest req = (WifiP2pServiceRequest)o; in equals() local 232 if ((req.mProtocolType != mProtocolType) || in equals() 233 (req.mLength != mLength)) { in equals() 237 if (req.mQuery == null && mQuery == null) { in equals() 239 } else if (req.mQuery != null) { in equals() 240 return req.mQuery.equals(mQuery); in equals()
|
D | WifiP2pServiceResponse.java | 304 WifiP2pServiceResponse req = (WifiP2pServiceResponse)o; in equals() local 306 return (req.mServiceType == mServiceType) && in equals() 307 (req.mStatus == mStatus) && in equals() 308 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) && in equals() 309 Arrays.equals(req.mData, mData); in equals()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | ChildSessionStateMachine.java | 1122 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local 1123 switch (req.exchangeSubtype) { in processStateMessage() 1357 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local 1358 switch (req.exchangeSubtype) { in processStateMessage() 1363 req.requestPayloads, mCurrentChildSaRecord)) { in processStateMessage() 1386 + req.exchangeSubtype)); in processStateMessage() 1404 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local 1405 if (req.exchangeSubtype == IKE_EXCHANGE_SUBTYPE_DELETE_CHILD) { in processStateMessage() 1406 handleDeleteSessionRequest(req.requestPayloads); in processStateMessage() 1461 ReceivedRequest req = (ReceivedRequest) message.obj; in processStateMessage() local [all …]
|
D | IkeSessionStateMachine.java | 1394 private void executeLocalRequest(LocalRequest req, Message message) { in executeLocalRequest() argument 1395 req.releaseWakeLock(); in executeLocalRequest() 1397 if (!isRequestForCurrentSa(req)) { in executeLocalRequest() 1403 switch (req.procedureType) { in executeLocalRequest() 1426 "Invalid local request procedure type: " + req.procedureType)); in executeLocalRequest() 1435 ChildLocalRequest req = (ChildLocalRequest) localRequest; in isRequestForCurrentSa() local 1436 if (req.remoteSpi == IkeLocalRequestScheduler.SPI_NOT_INCLUDED in isRequestForCurrentSa() 1437 || mRemoteSpiToChildSessionMap.get(req.remoteSpi) != null) { in isRequestForCurrentSa() 1441 IkeLocalRequest req = (IkeLocalRequest) localRequest; in isRequestForCurrentSa() local 1442 if (req.remoteSpi == IkeLocalRequestScheduler.SPI_NOT_INCLUDED in isRequestForCurrentSa() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/ |
D | NetlinkSocketTest.java | 62 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/services/Telephony/testapps/EmbmsTestDownloadApp/src/com/android/phone/testapps/embmsdownload/ |
D | EmbmsTestDownloadApp.java | 305 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/jni/ |
D | network_stack_utils_jni.cpp | 64 arpreq req = {}; in network_stack_utils_addArpEntry() local 65 sockaddr_in& netAddrStruct = *reinterpret_cast<sockaddr_in*>(&req.arp_pa); in network_stack_utils_addArpEntry() 66 sockaddr& ethAddrStruct = req.arp_ha; in network_stack_utils_addArpEntry() 86 env->GetStringUTFRegion(ifname, 0, ifLen, req.arp_dev); in network_stack_utils_addArpEntry() 88 req.arp_flags = ATF_COM; // Completed entry (ha valid) in network_stack_utils_addArpEntry() 95 if (ioctl(fd, SIOCSARP, &req)) { in network_stack_utils_addArpEntry()
|
/packages/services/Car/cpp/evs/manager/1.1/ |
D | HalCamera.cpp | 213 FrameRequest req; in requestNewFrame() local 214 req.client = client; in requestNewFrame() 215 req.timestamp = lastTimestamp; in requestNewFrame() 218 mNextRequests->push_back(req); in requestNewFrame() 357 auto req = mCurrentRequests->front(); mCurrentRequests->pop_front(); in deliverFrame_1_1() local 358 sp<VirtualCamera> vCam = req.client.promote(); in deliverFrame_1_1() 362 } else if (timestamp - req.timestamp < kThreshold) { in deliverFrame_1_1() 365 mNextRequests->push_back(req); in deliverFrame_1_1()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 1560 private void assertInitialUserInfoSetRequest(VehiclePropValue req, int requestType) { in assertInitialUserInfoSetRequest() argument 1561 assertThat(req.value.int32Values.get(1)).isEqualTo(requestType); in assertInitialUserInfoSetRequest() 1562 assertUsersInfo(req, mUsersInfo, 2); in assertInitialUserInfoSetRequest() 1565 private void assertHalSetSwitchUserRequest(VehiclePropValue req, int messageType, in assertHalSetSwitchUserRequest() argument 1567 assertThat(req.prop).isEqualTo(SWITCH_USER); in assertHalSetSwitchUserRequest() 1568 assertWithMessage("wrong request Id on %s", req).that(req.value.int32Values.get(0)) in assertHalSetSwitchUserRequest() 1570 assertThat(req.value.int32Values.get(1)).isEqualTo(messageType); in assertHalSetSwitchUserRequest() 1571 assertWithMessage("targetuser.id mismatch on %s", req).that(req.value.int32Values.get(2)) in assertHalSetSwitchUserRequest() 1573 assertWithMessage("targetuser.flags mismatch on %s", req).that(req.value.int32Values.get(3)) in assertHalSetSwitchUserRequest() 1575 assertUsersInfo(req, mUsersInfo, 4); in assertHalSetSwitchUserRequest() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientPhotoManager.java | 69 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/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | PublicApiFunctionalTest.java | 472 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() 787 private static String getHeaderValue(RecordedRequest req, String header) { in getHeaderValue() argument 789 for (String h : req.getHeaders()) { in getHeaderValue()
|
/packages/modules/SdkExtensions/derive_sdk/ |
D | derive_sdk_test.cpp | 49 ExtensionVersion_ModuleRequirement* req = sdk->add_requirements(); in AddExtensionVersion() local 50 req->set_module(pair.first); in AddExtensionVersion() 51 req->mutable_version()->set_version(pair.second); in AddExtensionVersion()
|