Home
last modified time | relevance | path

Searched refs:requests (Results 1 – 25 of 93) sorted by relevance

1234

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java86 Collection<ScanSettings> requests = Collections.emptyList(); in noRequest() local
88 mScheduler.updateSchedule(requests); in noRequest()
97 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequest() local
102 mScheduler.updateSchedule(requests); in singleRequest()
107 for (ScanSettings request : requests) { in singleRequest()
114 Collection<ScanSettings> requests = Collections.singleton(createRequest( in singleRequestWithoutPredefinedBucket() local
119 mScheduler.updateSchedule(requests); in singleRequestWithoutPredefinedBucket()
124 for (ScanSettings request : requests) { in singleRequestWithoutPredefinedBucket()
131 Collection<ScanSettings> requests = new ArrayList<>(); in fewRequests() local
132 requests.add(createRequest(WifiScanner.WIFI_BAND_BOTH, 30000, 0, 20, in fewRequests()
[all …]
/packages/modules/ExtServices/java/tests/src/android/ext/services/storage/
DCacheQuotaServiceImplTest.java91 ArrayList<CacheQuotaHint> requests = new ArrayList<>(); in testOneApp() local
93 requests.add(request); in testOneApp()
95 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testOneApp()
103 ArrayList<CacheQuotaHint> requests = new ArrayList<>(); in testTwoAppsOneVolume() local
104 requests.add(makeNewRequest("com.test", sTestVolUuid, 1001, 100L)); in testTwoAppsOneVolume()
105 requests.add(makeNewRequest("com.test2", sTestVolUuid, 1002, 99L)); in testTwoAppsOneVolume()
107 List<CacheQuotaHint> output = getService().onComputeCacheQuotaHints(requests); in testTwoAppsOneVolume()
118 ArrayList<CacheQuotaHint> requests = new ArrayList<>(); in testTwoAppsTwoVolumes() local
119 requests.add(makeNewRequest("com.test", sTestVolUuid, 1001, 100L)); in testTwoAppsTwoVolumes()
120 requests.add(makeNewRequest("com.test2", sSecondTestVolUuid, 1002, 99L)); in testTwoAppsTwoVolumes()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DAidlVehicleStubUnitTest.java294 GetValueRequests requests = (GetValueRequests) args[1]; in testGetAidlSmallData() local
295 assertThat(requests.payloads.length).isEqualTo(1); in testGetAidlSmallData()
296 GetValueRequest request = requests.payloads[0]; in testGetAidlSmallData()
301 GetValueResults results = createGetValueResults(StatusCode.OK, requests.payloads); in testGetAidlSmallData()
321 GetValueRequests requests = (GetValueRequests) args[1]; in testGetAidlLargeData() local
322 assertThat(requests.payloads.length).isEqualTo(0); in testGetAidlLargeData()
323 assertThat(requests.sharedMemoryFd).isNotNull(); in testGetAidlLargeData()
324 requests = (GetValueRequests) in testGetAidlLargeData()
326 requests, /*keepSharedMemory=*/false); in testGetAidlLargeData()
327 assertThat(requests.payloads.length).isEqualTo(1); in testGetAidlLargeData()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DDatabaseUpgradeHelper.java198 List<CreateTableRequest> requests = new ArrayList<>(); in getInitialCreateTableRequests() local
200 forEachInitialRecordHelper(helper -> requests.add(helper.getCreateTableRequest())); in getInitialCreateTableRequests()
202 requests.add(DeviceInfoHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
203 requests.add(AppInfoHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
204 requests.add(ActivityDateHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
205 requests.add(ChangeLogsHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
206 requests.add(ChangeLogsRequestHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
207 requests.add(HealthDataCategoryPriorityHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
208 requests.add(PreferenceHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
209 requests.add(AccessLogsHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DRecentLocationRequestPreferenceControllerTest.java86 final List<RecentLocationApps.Request> requests = createMockRequest(6); in updateState_whenAppListMoreThanThree_shouldDisplayTopThreeApps() local
87 when(mController.mRecentLocationApps.getAppListSorted(false)).thenReturn(requests); in updateState_whenAppListMoreThanThree_shouldDisplayTopThreeApps()
119 final List<RecentLocationApps.Request> requests = createMockRequest(6); in updateState_workProfile_shouldShowOnlyWorkProfileApps() local
120 when(mController.mRecentLocationApps.getAppListSorted(false)).thenReturn(requests); in updateState_workProfile_shouldShowOnlyWorkProfileApps()
135 final List<RecentLocationApps.Request> requests = createMockRequest(6); in updateState_Personal_shouldShowOnlyPersonalApps() local
136 when(mController.mRecentLocationApps.getAppListSorted(false)).thenReturn(requests); in updateState_Personal_shouldShowOnlyPersonalApps()
151 final List<RecentLocationApps.Request> requests = new ArrayList<>(); in createMockRequest() local
158 requests.add(request); in createMockRequest()
160 return requests; in createMockRequest()
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/
DRequestFactory.java79 JSONArray requests = new JSONArray(); in createAuthRequest() local
81 requests.put(makeAuthenticationRequest(null /*akaToken*/, null /*challengeResponse*/)); in createAuthRequest()
85 return requests; in createAuthRequest()
94 JSONArray requests = new JSONArray(); in createGetImsiPseudonymRequest() local
96 requests.put(makeAuthenticationRequest(akaToken, challengeResponse)); in createGetImsiPseudonymRequest()
97 requests.put(makeGetImsiPseudonymRequest()); in createGetImsiPseudonymRequest()
101 return requests; in createGetImsiPseudonymRequest()
/packages/services/Car/tests/CarServiceTest/src/com/android/car/
DCarVendorExtensionManagerTest.java314 public void getValues(IVehicleCallback callback, GetValueRequests requests) in getValues() argument
316 requests = (GetValueRequests) LargeParcelable.reconstructStableAIDLParcelable( in getValues()
317 requests, /* keepSharedMemory= */ false); in getValues()
320 int requestSize = requests.payloads.length; in getValues()
322 GetValueRequest request = requests.payloads[i]; in getValues()
339 for (int i = 0; i < requests.payloads.length; i++) { in getValues()
340 GetValueRequest request = requests.payloads[i]; in getValues()
381 public void setValues(IVehicleCallback callback, SetValueRequests requests) in setValues() argument
383 requests = (SetValueRequests) LargeParcelable.reconstructStableAIDLParcelable( in setValues()
384 requests, /* keepSharedMemory= */ false); in setValues()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DRecentLocationApps.java85 ArrayList<RecentLocationApps.Request> requests = new ArrayList<>(appOpsCount); in getAppList() local
133 requests.add(request); in getAppList()
137 return requests; in getAppList()
147 List<RecentLocationApps.Request> requests = getAppList(showSystemApps); in getAppListSorted() local
149 Collections.sort(requests, in getAppListSorted()
157 return requests; in getAppListSorted()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DRecentLocationAppsCompat.java77 ArrayList<Request> requests = new ArrayList<>(appOpsCount); in getAppList() local
125 requests.add(request); in getAppList()
129 return requests; in getAppList()
139 List<Request> requests = getAppList(showSystemApps); in getAppListSorted() local
141 Collections.sort(requests, Collections.reverseOrder(new Comparator<Request>() { in getAppListSorted()
147 return requests; in getAppListSorted()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DChangeLogsHelperTest.java102 List<UpsertTableRequest> requests = changeLogs.getUpsertTableRequests(); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize() local
104 assertThat(requests).hasSize(1); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize()
106 bytesToUuids((byte[]) requests.get(0).getContentValues().get(UUIDS_COLUMN_NAME)); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize()
118 List<UpsertTableRequest> requests = changeLogs.getUpsertTableRequests(); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize() local
120 assertThat(requests).hasSize(2); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
122 bytesToUuids((byte[]) requests.get(0).getContentValues().get(UUIDS_COLUMN_NAME)); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
125 bytesToUuids((byte[]) requests.get(1).getContentValues().get(UUIDS_COLUMN_NAME)); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/mediacognitionservices/
DMediaCognitionServiceTest.java105 List<MediaCognitionProcessingRequest> requests = in testProcessMedia() local
107 requests.add(new MediaCognitionProcessingRequest in testProcessMedia()
114 mPrimaryService.processMedia(requests, callback); in testProcessMedia()
128 List<MediaCognitionProcessingRequest> requests = in testProcessMediaLargeData() local
132 requests.add( in testProcessMediaLargeData()
141 mPrimaryService.processMedia(requests, callback); in testProcessMediaLargeData()
DTestMediaCognitionService.java45 public void onProcessMedia(@NonNull List<MediaCognitionProcessingRequest> requests, in onProcessMedia() argument
48 if (requests.size() == 0) { in onProcessMedia()
55 for (MediaCognitionProcessingRequest request: requests) { in onProcessMedia()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/
DMockedRecentsModelTestRule.kt44 val requests = mutableListOf<(List<GroupTask>) -> Unit>() in resolvePendingTaskRequests() constant
45 requests.addAll(modelHelper.taskRequests) in resolvePendingTaskRequests()
48 requests.forEach { it(recentTasks) } in resolvePendingTaskRequests()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DMediaRequestHandlerTest.java583 List<Long> requests = mMediaRequestHandler in getRequestsOwnedByApprover_notYetRegistered() local
586 expectWithMessage("Unregistered token requests").that(requests).isEmpty(); in getRequestsOwnedByApprover_notYetRegistered()
594 List<Long> requests = mMediaRequestHandler in getRequestsOwnedByApprover_afterRegistering() local
597 expectWithMessage("Registered token requests").that(requests).isEmpty(); in getRequestsOwnedByApprover_afterRegistering()
610 List<Long> requests = mMediaRequestHandler in getRequestsOwnedByApprover_afterApproval() local
614 .that(requests).contains(approvedRequestId); in getRequestsOwnedByApprover_afterApproval()
626 List<Long> requests = mMediaRequestHandler in getRequestsOwnedByApprover_afterRejection() local
629 expectWithMessage("Registered token requests after rejection").that(requests).isEmpty(); in getRequestsOwnedByApprover_afterRejection()
644 List<Long> requests = mMediaRequestHandler in getRequestsOwnedByApprover_afterApprovalThenCancel() local
647 expectWithMessage("Registered token requests after cancel").that(requests).isEmpty(); in getRequestsOwnedByApprover_afterApprovalThenCancel()
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DAndroidCameraCaptureSessionProxy.java106 … public int captureBurst(List<CaptureRequest> requests, CaptureCallback listener, Handler handler) in captureBurst() argument
109 return mSession.captureBurst(requests, new AndroidCaptureCallback(listener), handler); in captureBurst()
126 public int setRepeatingBurst(List<CaptureRequest> requests, CaptureCallback listener, in setRepeatingBurst() argument
129 … return mSession.setRepeatingBurst(requests, new AndroidCaptureCallback(listener), handler); in setRepeatingBurst()
/packages/services/Car/tests/CarServiceTest/dep/src/com/android/car/hal/test/
DAidlMockedVehicleHal.java250 public void getValues(IVehicleCallback callback, GetValueRequests requests) in getValues() argument
254 requests.sharedMemoryFd).isNull(); in getValues()
256 results.payloads = new GetValueResult[requests.payloads.length]; in getValues()
258 for (int i = 0; i < requests.payloads.length; i++) { in getValues()
259 GetValueRequest request = requests.payloads[i]; in getValues()
288 public void setValues(IVehicleCallback callback, SetValueRequests requests) in setValues() argument
294 requests.sharedMemoryFd).isNull(); in setValues()
295 results.payloads = new SetValueResult[requests.payloads.length]; in setValues()
296 for (int i = 0; i < requests.payloads.length; i++) { in setValues()
297 SetValueRequest request = requests.payloads[i]; in setValues()
/packages/modules/adb/docs/dev/
Dsync.md2 This file tries to document file-related requests a client can make
5 about the other requests that are possible.
19 packets to communicate. In this document these are called sync requests and sync
27 The following sync requests are accepted:
33 All of the sync requests above must be followed by "length": the number of
69 request (but not to chunk requests) with an "OKAY" sync response (length can
Dincremental-install.md18 - Block requests
37 what files are in the apk. This is where block requests enter the picture. The
38 Android device can issue requests which will make the `IS` bump the priority of
43 The block requests are not issued by Android Frameworks. Framework is completely
103 It allows the kernel to issue block requests. The arg format to describe the `IS`
113 requests. There is one arg for each file to be streamed.
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DMediaCognitionService.java166 public abstract void onProcessMedia(@NonNull List<MediaCognitionProcessingRequest> requests, in onProcessMedia() argument
191 public void processMedia(List<MediaCognitionProcessingRequest> requests,
193 onProcessMedia(requests, null, new ProcessMediaCallbackImpl(binderCallback));
/packages/modules/OnDevicePersonalization/
DCONTRIBUTING31 use GitHub pull requests for this purpose. Consult
32 [GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
33 information on using pull requests.
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DNetworkStackClientBase.java133 final ArrayList<Consumer<INetworkStackConnector>> requests; in onNetworkStackConnected() local
135 requests = new ArrayList<>(mPendingNetStackRequests); in onNetworkStackConnected()
139 for (Consumer<INetworkStackConnector> consumer : requests) { in onNetworkStackConnected()
/packages/modules/Virtualization/docs/
Dservice_vm.md25 The main functionality of the Service VM is to process requests from the host
26 and provide responses for each request. The requests and responses are
30 requests and responses.
32 processes the requests.
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java328 RangingRequest[] requests = new RangingRequest[numIter]; in testRangingFlow() local
333 requests[i] = RttTestUtils.getDummyRangingRequestMcOnly((byte) i, in testRangingFlow()
336 requests[i] = RttTestUtils.getDummyRangingRequest((byte) i); in testRangingFlow()
338 results.add(RttTestUtils.getDummyRangingResults(requests[i])); in testRangingFlow()
346 mDut.startRanging(mockIbinder, mPackageName, mFeatureId, null, requests[i], in testRangingFlow()
354 verify(mockRttControllerHal).rangeRequest(mIntCaptor.capture(), eq(requests[i])); in testRangingFlow()
374 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(requests[i])); in testRangingFlow()
375 verify(mockMetrics).recordResult(eq(requests[i]), eq(results.get(i).second), in testRangingFlow()
581 RangingRequest[] requests = new RangingRequest[numIter]; in testRangingFlowHalFailure() local
585 requests[i] = RttTestUtils.getDummyRangingRequest((byte) i); in testRangingFlowHalFailure()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DSeriesRecordHelper.java61 List<UpsertTableRequest> requests = new ArrayList<>(samples.size()); in getChildTableUpsertRequests() local
66 requests.add( in getChildTableUpsertRequests()
71 return requests; in getChildTableUpsertRequests()
DExerciseRouteRecordHelper.java71 List<UpsertTableRequest> requests = new ArrayList<>(route.getRouteLocations().size()); in getRouteUpsertRequests() local
77 requests.add( in getRouteUpsertRequests()
82 return requests; in getRouteUpsertRequests()

1234