Home
last modified time | relevance | path

Searched refs:mDataSource (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoStoreManagerDataTest.java48 private @Mock WifiCarrierInfoStoreManagerData.DataSource mDataSource; field in WifiCarrierInfoStoreManagerDataTest
59 new WifiCarrierInfoStoreManagerData(mDataSource); in setUp()
118 InOrder inOrder = inOrder(mDataSource); in testDeserializeOnNewDeviceOrNewUser()
121 inOrder.verify(mDataSource).reset(); in testDeserializeOnNewDeviceOrNewUser()
122 verifyNoMoreInteractions(mDataSource); in testDeserializeOnNewDeviceOrNewUser()
127 InOrder inOrder = inOrder(mDataSource); in assertSerializeDeserialize()
129 when(mDataSource.toSerializeMergedCarrierNetworkOffloadMap()).thenReturn( in assertSerializeDeserialize()
131 when(mDataSource.toSerializeUnmergedCarrierNetworkOffloadMap()) in assertSerializeDeserialize()
136 inOrder.verify(mDataSource).serializeComplete(); in assertSerializeDeserialize()
141 verify(mDataSource) in assertSerializeDeserialize()
[all …]
DSoftApStoreDataTest.java247 @Mock SoftApStoreData.DataSource mDataSource; field in SoftApStoreDataTest
259 mSoftApStoreData = new SoftApStoreData(mContext, mSettingsMigrationDataHolder, mDataSource); in setUp()
312 verify(mDataSource, never()).fromDeserialized(any()); in deserializeEmptyStoreData()
357 when(mDataSource.toSerialize()).thenReturn(softApConfigBuilder.build()); in serializeSoftAp()
381 verify(mDataSource).fromDeserialized(softapConfigCaptor.capture()); in deserializeSoftAp()
424 verify(mDataSource).fromDeserialized(softapConfigCaptor.capture()); in deserializeOldSoftApXMLWhichShutdownTimeoutIsInt()
452 verify(mDataSource).fromDeserialized(softapConfigCaptor.capture()); in deserializeOldBandSoftAp()
474 verify(mDataSource).fromDeserialized(softapConfigCaptor.capture()); in deserializeNewBandSoftApButNoNewConfig()
499 when(mDataSource.toSerialize()).thenReturn(softApConfigBuilder.build()); in serializeDeserializeSoftAp()
506 verify(mDataSource).fromDeserialized(softapConfigCaptor.capture()); in serializeDeserializeSoftAp()
[all …]
DSsidSetStoreDataTest.java66 @Mock SsidSetStoreData.DataSource mDataSource; field in SsidSetStoreDataTest
72 mSsidSetStoreData = new SsidSetStoreData(TEST_NOTIFIER_NAME, mDataSource); in setUp()
113 when(mDataSource.getSsids()).thenReturn(new HashSet<String>()); in serializeEmptyConfigs()
126 verify(mDataSource, never()).setSsids(any(Set.class)); in deserializeEmptyStoreData()
151 when(mDataSource.getSsids()).thenReturn(ssidSet); in serializeSsidSet()
167 verify(mDataSource).setSsids(eq(ssidSet)); in deserializeSsidSet()
DImsiPrivacyProtectionExemptionStoreDataTest.java41 private @Mock ImsiPrivacyProtectionExemptionStoreData.DataSource mDataSource; field in ImsiPrivacyProtectionExemptionStoreDataTest
47 new ImsiPrivacyProtectionExemptionStoreData(mDataSource); in setUp()
98 when(mDataSource.toSerialize()).thenReturn(mImsiPrivacyProtectionExemptionMap); in assertSerializeDeserialize()
104 verify(mDataSource).fromDeserialized(deserializedNetworkSuggestionsMap.capture()); in assertSerializeDeserialize()
DNetworkSuggestionStoreDataTest.java248 private @Mock NetworkSuggestionStoreData.DataSource mDataSource; field in NetworkSuggestionStoreDataTest
254 mNetworkSuggestionStoreData = new NetworkSuggestionStoreData(mDataSource); in setUp()
429 verify(mDataSource, times(2)).fromDeserialized(deserializedNetworkSuggestionsMap.capture()); in deserializeFromPreRAndPostRFormat()
459 verify(mDataSource, times(2)).fromDeserialized(deserializedNetworkSuggestionsMap.capture()); in deserializeEmptySuggestion()
502 verify(mDataSource).fromDeserialized(any()); in testDeserializeNullData()
508 when(mDataSource.toSerialize()).thenReturn(networkSuggestionsMap); in assertSerializeDeserialize()
516 verify(mDataSource).fromDeserialized(deserializedNetworkSuggestionsMap.capture()); in assertSerializeDeserialize()
DNetworkRequestStoreDataTest.java68 private @Mock NetworkRequestStoreData.DataSource mDataSource; field in NetworkRequestStoreDataTest
74 mNetworkRequestStoreData = new NetworkRequestStoreData(mDataSource); in setUp()
202 when(mDataSource.toSerialize()).thenReturn(approvedAccessPointsMap); in assertSerializeDeserialize()
210 verify(mDataSource).fromDeserialized(deserializedApprovedAccessPointsMap.capture()); in assertSerializeDeserialize()
DWifiNetworkSuggestionsManagerTest.java185 private NetworkSuggestionStoreData.DataSource mDataSource; field in WifiNetworkSuggestionsManagerTest
303 mDataSource = dataSourceArgumentCaptor.getValue(); in setUp()
304 assertNotNull(mDataSource); in setUp()
305 mDataSource.fromDeserialized(Map.of()); in setUp()
442 mDataSource.reset(); in testAddRemoveSuggestionBeforeUserDataLoaded()
1950 assertTrue(mDataSource.hasNewDataToSerialize()); in testAddNetworkSuggestionsConfigStoreWrite()
1952 Map<String, PerAppInfo> networkSuggestionsMapToWrite = mDataSource.toSerialize(); in testAddNetworkSuggestionsConfigStoreWrite()
1970 assertFalse(mDataSource.hasNewDataToSerialize()); in testAddNetworkSuggestionsConfigStoreWrite()
1995 assertTrue(mDataSource.hasNewDataToSerialize()); in testRemoveNetworkSuggestionsConfigStoreWrite()
1998 Map<String, PerAppInfo> networkSuggestionsMapToWrite = mDataSource.toSerialize(); in testRemoveNetworkSuggestionsConfigStoreWrite()
[all …]
DWifiNetworkFactoryTest.java187 private NetworkRequestStoreData.DataSource mDataSource; field in WifiNetworkFactoryTest
269 mDataSource = dataSourceArgumentCaptor.getValue(); in setUp()
270 assertNotNull(mDataSource); in setUp()
271 mNetworkRequestStoreData = new NetworkRequestStoreData(mDataSource); in setUp()
3035 assertTrue(mDataSource.hasNewDataToSerialize()); in testNetworkSpecifierUserApprovalConfigStoreSave()
3037 Map<String, Set<AccessPoint>> approvedAccessPointsMapToWrite = mDataSource.toSerialize(); in testNetworkSpecifierUserApprovalConfigStoreSave()
3049 assertFalse(mDataSource.hasNewDataToSerialize()); in testNetworkSpecifierUserApprovalConfigStoreSave()
3065 mDataSource.fromDeserialized(approvedAccessPointsMapToRead); in testNetworkSpecifierUserApprovalConfigStoreLoad()
DWifiConfigStoreTest.java210 private @Mock WifiCarrierInfoStoreManagerData.DataSource mDataSource; field in WifiConfigStoreTest
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoStoreManagerData.java94 private final DataSource mDataSource; field in WifiCarrierInfoStoreManagerData
100 mDataSource = dataSource; in WifiCarrierInfoStoreManagerData()
107 integerMapToStringMap(mDataSource.toSerializeMergedCarrierNetworkOffloadMap())); in serializeData()
109 integerMapToStringMap(mDataSource.toSerializeUnmergedCarrierNetworkOffloadMap())); in serializeData()
110 mDataSource.serializeComplete(); in serializeData()
117 mDataSource.reset(); in deserializeData()
135 mDataSource.fromMergedCarrierNetworkOffloadMapDeserialized( in parseWifiCarrierInfoStoreMaps()
141 mDataSource.fromUnmergedCarrierNetworkOffloadMapDeserialized( in parseWifiCarrierInfoStoreMaps()
182 mDataSource.reset(); in resetData()
187 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
DSsidSetStoreData.java48 private final DataSource mDataSource; field in SsidSetStoreData
77 mDataSource = dataSource; in SsidSetStoreData()
84 Set<String> ssidSet = mDataSource.getSsids(); in serializeData()
86 XmlUtil.writeNextValue(out, XML_TAG_SSID_SET, mDataSource.getSsids()); in serializeData()
107 mDataSource.setSsids((Set<String>) value); in deserializeData()
118 mDataSource.setSsids(new HashSet<>()); in resetData()
DImsiPrivacyProtectionExemptionStoreData.java66 private final DataSource mDataSource; field in ImsiPrivacyProtectionExemptionStoreData
71 mDataSource = dataSource; in ImsiPrivacyProtectionExemptionStoreData()
76 Map<String, Boolean> dataToSerialize = integerMapToStringMap(mDataSource.toSerialize()); in serializeData()
87 mDataSource.fromDeserialized(parseCarrierImsiProtectionExemptionMap(in, outerTagDepth, in deserializeData()
143 mDataSource.reset(); in resetData()
147 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
DNetworkRequestStoreData.java85 private final DataSource mDataSource; field in NetworkRequestStoreData
88 mDataSource = dataSource; in NetworkRequestStoreData()
95 serializeApprovedAccessPointsMap(out, mDataSource.toSerialize()); in serializeData()
107 mDataSource.fromDeserialized(parseApprovedAccessPointsMap(in, outerTagDepth)); in deserializeData()
112 mDataSource.reset(); in resetData()
117 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
DSoftApStoreData.java73 private final DataSource mDataSource; field in SoftApStoreData
113 mDataSource = dataSource; in SoftApStoreData()
120 SoftApConfiguration softApConfig = mDataSource.toSerialize(); in serializeData()
343 mDataSource.fromDeserialized(softApConfigBuilder.setSsid(ssid).build()); in deserializeData()
348 mDataSource.reset(); in resetData()
353 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
DNetworkSuggestionStoreData.java111 private final DataSource mDataSource; field in NetworkSuggestionStoreData
114 mDataSource = dataSource; in NetworkSuggestionStoreData()
121 serializeNetworkSuggestionsMap(out, mDataSource.toSerialize(), encryptionUtil); in serializeData()
130 mDataSource.fromDeserialized(Collections.EMPTY_MAP); in deserializeData()
133 mDataSource.fromDeserialized( in deserializeData()
139 mDataSource.reset(); in resetData()
144 return mDataSource.hasNewDataToSerialize(); in hasNewDataToSerialize()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointConfigSharedStoreData.java54 private final DataSource mDataSource; field in PasspointConfigSharedStoreData
76 mDataSource = dataSource; in PasspointConfigSharedStoreData()
103 mDataSource.setProviderIndex(0); in resetData()
131 XmlUtil.writeNextValue(out, XML_TAG_PROVIDER_INDEX, mDataSource.getProviderIndex()); in serializeShareData()
152 mDataSource.setProviderIndex((long) value); in deserializeShareData()
DPasspointConfigUserStoreData.java84 private final DataSource mDataSource; field in PasspointConfigUserStoreData
110 mDataSource = dataSource; in PasspointConfigUserStoreData()
138 mDataSource.setProviders(new ArrayList<PasspointProvider>()); in resetData()
166 serializeProviderList(out, mDataSource.getProviders()); in serializeUserData()
238 mDataSource.setProviders(deserializeProviderList(in, outerTagDepth + 1)); in deserializeUserData()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointConfigSharedStoreDataTest.java47 @Mock PasspointConfigSharedStoreData.DataSource mDataSource; field in PasspointConfigSharedStoreDataTest
54 mConfigStoreData = new PasspointConfigSharedStoreData(mDataSource); in setUp()
99 when(mDataSource.getProviderIndex()).thenReturn(providerIndex); in serializeAndDeserializeShareStoreData()
104 verify(mDataSource).setProviderIndex(providerIndex); in serializeAndDeserializeShareStoreData()
116 verify(mDataSource, never()).setProviderIndex(anyLong()); in deserializeEmptyShareStoreData()
DPasspointConfigUserStoreDataTest.java82 @Mock PasspointConfigUserStoreData.DataSource mDataSource; field in PasspointConfigUserStoreDataTest
91 mDataSource, mClock); in setUp()
275 when(mDataSource.getProviders()).thenReturn(providerList); in serializeAndDeserializeUserStoreData()
281 verify(mDataSource).setProviders(providersCaptor.capture()); in serializeAndDeserializeUserStoreData()
294 verify(mDataSource, never()).setProviders(any(ArrayList.class)); in deserializeEmptyUserStoreData()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/launcher/
DMessageLauncherViewModel.java36 @NonNull private final DataModel mDataSource; field in MessageLauncherViewModel
43 mDataSource = AppFactory.get().getDataModel(); in MessageLauncherViewModel()
57 mDataSource.getAccounts(), in getAccountList()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java136 private TsDataSource mDataSource; field in MpegTsPlayer
238 mDataSource = source; in prepare()
253 return mDataSource; in getDataSource()
355 if (mDataSource != null) { in release()
356 mSourceManager.releaseDataSource(mDataSource); in release()
357 mDataSource = null; in release()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsPlayerV2.java123 private TsDataSource mDataSource; field in MpegTsPlayerV2
229 mDataSource = dataSource; in prepare()
235 return mDataSource; in getDataSource()
259 if (mDataSource != null) { in release()
260 mDataSource = null; in release()