Home
last modified time | relevance | path

Searched refs:dataList (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java72 final List<DataItem> dataList = new ArrayList<>(values.length); in createDataItemsAndCollapse() local
76 dataList.add(data); in createDataItemsAndCollapse()
78 Collapser.collapseList(dataList, getContext()); in createDataItemsAndCollapse()
79 return dataList; in createDataItemsAndCollapse()
96 final List<DataItem> dataList = createDataItemsAndCollapse(kind, mValues1, mValues2); in testDataItemCollapsing_genericDataItemFields() local
98 assertEquals(1, dataList.size()); in testDataItemCollapsing_genericDataItemFields()
99 assertEquals(true, dataList.get(0).isSuperPrimary()); in testDataItemCollapsing_genericDataItemFields()
100 assertEquals(true, dataList.get(0).isPrimary()); in testDataItemCollapsing_genericDataItemFields()
101 assertEquals(1, dataList.get(0).getKindTypeColumn(kind)); in testDataItemCollapsing_genericDataItemFields()
122 final List<DataItem> dataList = in testDataItemCollapsing_email() local
[all …]
/packages/services/Car/cpp/telemetry/cartelemetryd/tests/
DTelemetryServerTest.cpp95 MOCK_METHOD(ScopedAStatus, onCarDataReceived, (const std::vector<CarDataInternal>& dataList),
141 std::vector<CarData> dataList = {buildCarData(101, {1})}; in TEST_F() local
143 auto status = mTelemetry->write(dataList); in TEST_F()
223 std::vector<CarData> dataList = {buildCarData(101, {1})}; in TEST_F() local
224 mTelemetry->write(dataList); in TEST_F()
275 std::vector<CarData> dataList = {buildCarData(101, {1})}; in TEST_F() local
278 mTelemetry->write(dataList); in TEST_F()
285 std::vector<CarData> dataList = {buildCarData(101, {1})}; in TEST_F() local
286 mTelemetry->write(dataList); in TEST_F()
317 std::vector<CarData> dataList = {buildCarData(101, {1})}; in TEST_F() local
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppSpecificDataUsageManagerTest.java82 List<NetworkCycleDataForUid> dataList = new ArrayList<>(); in callback_onLoadFinished_listenerOnDataLoadedCalled() local
84 mCallbacksArgumentCaptor.getValue().onLoadFinished(null, dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
86 verify(mCallback1).onDataLoaded(dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
87 verify(mCallback2).onDataLoaded(dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
96 List<NetworkCycleDataForUid> dataList = new ArrayList<>(); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled() local
98 mCallbacksArgumentCaptor.getValue().onLoadFinished(null, dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
100 verify(mCallback1).onDataLoaded(dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
101 verify(mCallback2, never()).onDataLoaded(dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
110 List<NetworkCycleDataForUid> dataList = new ArrayList<>(); in callback_notLoaded_listenerOnDataLoadedNotCalled() local
112 verify(mCallback1, never()).onDataLoaded(dataList); in callback_notLoaded_listenerOnDataLoadedNotCalled()
[all …]
DDataUsageCycleManagerTest.java79 List<NetworkCycleChartData> dataList = new ArrayList<>(); in callback_onLoadFinished_listenerOnDataLoadedCalled() local
81 mCallbacksArgumentCaptor.getValue().onLoadFinished(null, dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
83 verify(mCallback1).onDataLoaded(dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
84 verify(mCallback2).onDataLoaded(dataList); in callback_onLoadFinished_listenerOnDataLoadedCalled()
93 List<NetworkCycleChartData> dataList = new ArrayList<>(); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled() local
95 mCallbacksArgumentCaptor.getValue().onLoadFinished(null, dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
97 verify(mCallback1).onDataLoaded(dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
98 verify(mCallback2, never()).onDataLoaded(dataList); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
107 List<NetworkCycleChartData> dataList = new ArrayList<>(); in callback_notLoaded_listenerOnDataLoadedNotCalled() local
109 verify(mCallback1, never()).onDataLoaded(dataList); in callback_notLoaded_listenerOnDataLoadedNotCalled()
[all …]
DDataUsageCyclePreferenceControllerTest.java89 List<NetworkCycleChartData> dataList = new ArrayList<>(); in createDataList() local
95 dataList.add(networkCycleChartData1); in createDataList()
102 dataList.add(networkCycleChartData2); in createDataList()
104 return dataList; in createDataList()
DAppSpecificDataUsageCyclePreferenceControllerTest.java93 List<NetworkCycleDataForUid> dataList = new ArrayList<>(); in createDataList() local
102 dataList.add(networkCycleDataForUid1); in createDataList()
112 dataList.add(networkCycleDataForUid2); in createDataList()
114 return dataList; in createDataList()
DDataUsageCycleBasePreferenceControllerTest.java148 List<NetworkCycleData> dataList = new ArrayList<>(); in createDataList() local
154 dataList.add(networkCycleData1); in createDataList()
161 dataList.add(networkCycleData2); in createDataList()
163 return dataList; in createDataList()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/privacysources/
DTextStorageRepositoryTest.kt71 val dataList = storageRepository.readData(creator) in <lambda>() constant
72 Assert.assertTrue(dataList.isEmpty()) in <lambda>()
80 val dataList = storageRepository.readData(creator) in <lambda>() constant
81 Assert.assertEquals(1, dataList.size) in <lambda>()
82 Assert.assertEquals(component.toStorageData(), dataList[0].toStorageData()) in <lambda>()
95 val dataList = storageRepository.readData(creator) in <lambda>() constant
96 Assert.assertEquals(3, dataList.size) in <lambda>()
112 val dataList = storageRepository.readData(creator) in <lambda>() constant
113 Assert.assertEquals(3, dataList.size) in <lambda>()
125 val dataList: List<TestPrivacySourceComponent> = storageRepository.readData(creator) in <lambda>() constant
[all …]
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/reset/
DResetDataTaskTest.java100 List<VendorData> dataList = new ArrayList<>(); in addTestData() local
101 dataList.add(new VendorData.Builder().setKey("key").setData(new byte[10]).build()); in addTestData()
102 dataList.add(new VendorData.Builder().setKey("key2").setData(new byte[10]).build()); in addTestData()
103 dataList.add(new VendorData.Builder().setKey("large").setData(new byte[111111]).build()); in addTestData()
104 dataList.add(new VendorData.Builder().setKey("large2").setData(new byte[111111]).build()); in addTestData()
105 dataList.add(new VendorData.Builder().setKey("xlarge").setData(new byte[5555555]).build()); in addTestData()
113 assertTrue(mDao.batchUpdateOrInsertVendorDataTransaction(dataList, retainedKeys, in addTestData()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/vendor/
DOnDevicePersonalizationVendorDataDaoTest.java97 List<VendorData> dataList = new ArrayList<>(); in testBatchInsert() local
98 dataList.add(new VendorData.Builder().setKey("key3").setData(new byte[10]).build()); in testBatchInsert()
99 dataList.add(new VendorData.Builder().setKey("key4").setData(new byte[10]).build()); in testBatchInsert()
106 assertTrue(mDao.batchUpdateOrInsertVendorDataTransaction(dataList, retainedKeys, in testBatchInsert()
245 List<VendorData> dataList = new ArrayList<>(); in addTestData() local
246 dataList.add(new VendorData.Builder().setKey("key").setData(new byte[10]).build()); in addTestData()
247 dataList.add(new VendorData.Builder().setKey("key2").setData(new byte[10]).build()); in addTestData()
248 dataList.add(new VendorData.Builder().setKey("large").setData(new byte[111111]).build()); in addTestData()
249 dataList.add(new VendorData.Builder().setKey("large2").setData(new byte[111111]).build()); in addTestData()
250 dataList.add(new VendorData.Builder().setKey("xlarge").setData(new byte[5555555]).build()); in addTestData()
[all …]
/packages/apps/Settings/src/com/android/settings/spa/network/
DPrimarySimRepository.kt31 val dataList: List<ListPreferenceOption>, constant in com.android.settings.spa.network.PrimarySimRepository.PrimarySimInfo
41 val dataList = mutableListOf<ListPreferenceOption>() in getPrimarySimInfo() constant
49 dataList += item in getPrimarySimInfo()
56 return PrimarySimInfo(callsAndSmsList, dataList) in getPrimarySimInfo()
/packages/modules/Wifi/framework/java/android/net/wifi/
DParcelUtil.java174 List<OuiKeyedData> dataList = new ArrayList<>(); in readOuiKeyedDataList() local
176 in.readList(dataList, OuiKeyedData.class.getClassLoader(), OuiKeyedData.class); in readOuiKeyedDataList()
178 in.readList(dataList, OuiKeyedData.class.getClassLoader()); in readOuiKeyedDataList()
180 return dataList; in readOuiKeyedDataList()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pDiscoveryConfig.java117 List<OuiKeyedData> dataList = new ArrayList<>(); in readOuiKeyedDataList() local
119 in.readList(dataList, OuiKeyedData.class.getClassLoader(), OuiKeyedData.class); in readOuiKeyedDataList()
121 in.readList(dataList, OuiKeyedData.class.getClassLoader()); in readOuiKeyedDataList()
123 return dataList; in readOuiKeyedDataList()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DCarTelemetrydPublisher.java67 @NonNull final CarDataInternal[] dataList) throws RemoteException {
70 "Received " + dataList.length + " CarData from cartelemetryd");
73 mTelemetryHandler.post(() -> onCarDataListReceived(dataList));
302 private void onCarDataListReceived(@NonNull CarDataInternal[] dataList) { in onCarDataListReceived() argument
303 for (CarDataInternal data : dataList) { in onCarDataListReceived()
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DFakeCreativeWallpaperInteractor.kt47 val dataList = in <lambda>() constant
52 return dataList in <lambda>()
DFakeCategoryInteractor.kt47 val dataList = in <lambda>() constant
67 return dataList in <lambda>()
/packages/services/Car/cpp/telemetry/cartelemetryd/src/
DCarTelemetryImpl.cpp34 ndk::ScopedAStatus CarTelemetryImpl::write(const std::vector<CarData>& dataList) { in write() argument
36 mTelemetryServer->writeCarData(dataList, publisherUid); in write()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/maintenance/
DOnDevicePersonalizationMaintenanceJobServiceTest.java109 List<VendorData> dataList = new ArrayList<>(); in addTestData() local
110 dataList.add(new VendorData.Builder().setKey("key").setData(new byte[10]).build()); in addTestData()
111 dataList.add(new VendorData.Builder().setKey("key2").setData(new byte[10]).build()); in addTestData()
112 dataList.add(new VendorData.Builder().setKey("large").setData(new byte[111111]).build()); in addTestData()
113 dataList.add(new VendorData.Builder().setKey("large2").setData(new byte[111111]).build()); in addTestData()
119 assertTrue(dao.batchUpdateOrInsertVendorDataTransaction(dataList, retainedKeys, in addTestData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/privacysources/
DTextStorageRepository.kt32 override fun persistData(dataList: List<PrivacySourceData>) { in <lambda>()
34 writeLines(dataList.map { it.toStorageData() }) in <lambda>()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DPmkCacheManager.java188 List<ArrayList<Byte>> dataList = new ArrayList<>(); in get() local
191 dataList.add(pmkData.data); in get()
194 return dataList; in get()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java1499 int propId, int zoneId, List<String> dataList, long timestamp) { in createPropValueForInjecting() argument
1504 boolean boolValue = Boolean.parseBoolean(dataList.get(0)); in createPropValueForInjecting()
1509 long[] longValues = new long[dataList.size()]; in createPropValueForInjecting()
1510 for (int i = 0; i < dataList.size(); i++) { in createPropValueForInjecting()
1511 longValues[i] = Long.decode(dataList.get(i)); in createPropValueForInjecting()
1517 int[] intValues = new int[dataList.size()]; in createPropValueForInjecting()
1518 for (int i = 0; i < dataList.size(); i++) { in createPropValueForInjecting()
1519 intValues[i] = Integer.decode(dataList.get(i)); in createPropValueForInjecting()
1525 float[] floatValues = new float[dataList.size()]; in createPropValueForInjecting()
1526 for (int i = 0; i < dataList.size(); i++) { in createPropValueForInjecting()
[all …]
/packages/services/Car/cpp/telemetry/cartelemetryd/aidl/aidl_api/android.automotive.telemetry.internal/current/android/automotive/telemetry/internal/
DICarDataListener.aidl36 void onCarDataReceived(in android.automotive.telemetry.internal.CarDataInternal[] dataList); in onCarDataReceived() argument
/packages/services/Car/cpp/telemetry/cartelemetryd/aidl/aidl_api/android.automotive.telemetry.internal/2/android/automotive/telemetry/internal/
DICarDataListener.aidl36 void onCarDataReceived(in android.automotive.telemetry.internal.CarDataInternal[] dataList); in onCarDataReceived() argument
/packages/services/Car/cpp/telemetry/cartelemetryd/aidl/aidl_api/android.automotive.telemetry.internal/1/android/automotive/telemetry/internal/
DICarDataListener.aidl36 void onCarDataReceived(in android.automotive.telemetry.internal.CarDataInternal[] dataList); in onCarDataReceived() argument
/packages/services/Car/cpp/telemetry/cartelemetryd/aidl/android/automotive/telemetry/internal/
DICarDataListener.aidl36 void onCarDataReceived(in CarDataInternal[] dataList); in onCarDataReceived() argument

12