Home
last modified time | relevance | path

Searched refs:requests (Results 1 – 25 of 78) 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.java272 GetValueRequests requests = (GetValueRequests) args[1]; in testGetAidlSmallData() local
273 assertThat(requests.payloads.length).isEqualTo(1); in testGetAidlSmallData()
274 GetValueRequest request = requests.payloads[0]; in testGetAidlSmallData()
279 GetValueResults results = createGetValueResults(StatusCode.OK, requests.payloads); in testGetAidlSmallData()
298 GetValueRequests requests = (GetValueRequests) args[1]; in testGetAidlLargeData() local
299 assertThat(requests.payloads.length).isEqualTo(0); in testGetAidlLargeData()
300 assertThat(requests.sharedMemoryFd).isNotNull(); in testGetAidlLargeData()
301 requests = (GetValueRequests) in testGetAidlLargeData()
303 requests, /*keepSharedMemory=*/false); in testGetAidlLargeData()
304 assertThat(requests.payloads.length).isEqualTo(1); in testGetAidlLargeData()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DDatabaseUpgradeHelper.java143 List<CreateTableRequest> requests = new ArrayList<>(); in getInitialCreateTableRequests() local
152 .forEach(entry -> requests.add(entry.getValue().getCreateTableRequest())); in getInitialCreateTableRequests()
154 requests.add(DeviceInfoHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
155 requests.add(AppInfoHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
156 requests.add(ActivityDateHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
157 requests.add(ChangeLogsHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
158 requests.add(ChangeLogsRequestHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
159 requests.add(HealthDataCategoryPriorityHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
160 requests.add(PreferenceHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
161 requests.add(AccessLogsHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DChangeLogsHelperTest.java43 List<UpsertTableRequest> requests = changeLogs.getUpsertTableRequests(); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize() local
45 assertThat(requests).hasSize(1); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize()
47 bytesToUuids((byte[]) requests.get(0).getContentValues().get(UUIDS_COLUMN_NAME)); in changeLogs_getUpsertTableRequests_listLessThanDefaultPageSize()
59 List<UpsertTableRequest> requests = changeLogs.getUpsertTableRequests(); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize() local
61 assertThat(requests).hasSize(2); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
63 bytesToUuids((byte[]) requests.get(0).getContentValues().get(UUIDS_COLUMN_NAME)); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
66 bytesToUuids((byte[]) requests.get(1).getContentValues().get(UUIDS_COLUMN_NAME)); in changeLogs_getUpsertTableRequests_listMoreThanDefaultPageSize()
/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/carservice_test/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/modules/Virtualization/service_vm/
DREADME.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
29 - [./comm](./comm) contains the definitions for the requests and responses.
30 - [./requests](./requests) contains the library that processes the requests.
/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/providers/MediaProvider/tests/src/com/android/providers/media/mediacognitionservices/
DMediaCognitionServiceTest.java101 List<MediaCognitionProcessingRequest> requests = in testProcessMedia() local
103 requests.add(new MediaCognitionProcessingRequest in testProcessMedia()
110 mPrimaryService.processMedia(requests, callback); in testProcessMedia()
124 List<MediaCognitionProcessingRequest> requests = in testProcessMediaLargeData() local
128 requests.add( in testProcessMediaLargeData()
137 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/services/Car/tests/carservice_test/src/com/android/car/hal/test/
DAidlMockedVehicleHal.java235 public void getValues(IVehicleCallback callback, GetValueRequests requests) in getValues() argument
239 requests.sharedMemoryFd).isNull(); in getValues()
241 results.payloads = new GetValueResult[requests.payloads.length]; in getValues()
243 for (int i = 0; i < requests.payloads.length; i++) { in getValues()
244 GetValueRequest request = requests.payloads[i]; in getValues()
274 public void setValues(IVehicleCallback callback, SetValueRequests requests) in setValues() argument
280 requests.sharedMemoryFd).isNull(); in setValues()
281 results.payloads = new SetValueResult[requests.payloads.length]; in setValues()
282 for (int i = 0; i < requests.payloads.length; i++) { in setValues()
283 SetValueRequest request = requests.payloads[i]; in setValues()
/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/modules/adb/
DSYNC.TXT1 This file tries to document file-related requests a client can make
4 about the other requests that are possible.
18 packets to communicate. In this document these are called sync requests and sync
26 The following sync requests are accepted:
32 All of the sync requests above must be followed by "length": the number of
68 request (but not to chunk requests) with an "OKAY" sync response (length can
/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/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DNetworkStackClientBase.java132 final ArrayList<Consumer<INetworkStackConnector>> requests; in onNetworkStackConnected() local
134 requests = new ArrayList<>(mPendingNetStackRequests); in onNetworkStackConnected()
138 for (Consumer<INetworkStackConnector> consumer : requests) { in onNetworkStackConnected()
/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/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java313 RangingRequest[] requests = new RangingRequest[numIter]; in testRangingFlow() local
318 requests[i] = RttTestUtils.getDummyRangingRequestMcOnly((byte) i, in testRangingFlow()
321 requests[i] = RttTestUtils.getDummyRangingRequest((byte) i); in testRangingFlow()
323 results.add(RttTestUtils.getDummyRangingResults(requests[i])); in testRangingFlow()
331 mDut.startRanging(mockIbinder, mPackageName, mFeatureId, null, requests[i], in testRangingFlow()
339 verify(mockRttControllerHal).rangeRequest(mIntCaptor.capture(), eq(requests[i])); in testRangingFlow()
359 verify(mockMetrics).recordRequest(eq(mDefaultWs), eq(requests[i])); in testRangingFlow()
360 verify(mockMetrics).recordResult(eq(requests[i]), eq(results.get(i).second), in testRangingFlow()
513 RangingRequest[] requests = new RangingRequest[numIter]; in testRangingFlowHalFailure() local
517 requests[i] = RttTestUtils.getDummyRangingRequest((byte) i); in testRangingFlowHalFailure()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DSeriesRecordHelper.java62 List<UpsertTableRequest> requests = new ArrayList<>(samples.size()); in getChildTableUpsertRequests() local
67 requests.add( in getChildTableUpsertRequests()
72 return requests; in getChildTableUpsertRequests()
DExerciseLapRecordHelper.java63 List<UpsertTableRequest> requests = new ArrayList<>(laps.size()); in getLapsUpsertRequests() local
68 requests.add( in getLapsUpsertRequests()
72 return requests; in getLapsUpsertRequests()
DExerciseRouteRecordHelper.java72 List<UpsertTableRequest> requests = new ArrayList<>(route.getRouteLocations().size()); in getRouteUpsertRequests() local
78 requests.add( in getRouteUpsertRequests()
83 return requests; in getRouteUpsertRequests()
DPreferenceHelper.java83 List<UpsertTableRequest> requests = new ArrayList<>(); in insertOrReplacePreferencesTransaction() local
86 requests.add( in insertOrReplacePreferencesTransaction()
91 TransactionManager.getInitialisedInstance().insertOrReplaceAll(requests); in insertOrReplacePreferencesTransaction()

1234