Home
last modified time | relevance | path

Searched refs:mConfigStore (Results 1 – 25 of 40) sorted by relevance

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DConfigStoreTest.java42 ConfigStore mConfigStore = new ConfigStore() { field in ConfigStoreTest
64 assertTrue(mConfigStore.getAllowedCloudProviderPackages().isEmpty()); in test_defaultValueConfigStore_allCorrect_TPlus()
65 assertNull(mConfigStore.getDefaultCloudProviderPackage()); in test_defaultValueConfigStore_allCorrect_TPlus()
66 assertEquals(60000, mConfigStore.getTranscodeMaxDurationMs()); in test_defaultValueConfigStore_allCorrect_TPlus()
67 assertTrue(mConfigStore.isCloudMediaInPhotoPickerEnabled()); in test_defaultValueConfigStore_allCorrect_TPlus()
68 assertFalse(mConfigStore.isGetContentTakeOverEnabled()); in test_defaultValueConfigStore_allCorrect_TPlus()
69 assertTrue(mConfigStore.isPickerChoiceManagedSelectionEnabled()); in test_defaultValueConfigStore_allCorrect_TPlus()
70 assertFalse(mConfigStore.isStableUrisForExternalVolumeEnabled()); in test_defaultValueConfigStore_allCorrect_TPlus()
71 assertFalse(mConfigStore.isStableUrisForInternalVolumeEnabled()); in test_defaultValueConfigStore_allCorrect_TPlus()
72 assertTrue(mConfigStore.isTranscodeEnabled()); in test_defaultValueConfigStore_allCorrect_TPlus()
[all …]
DTranscodeHelperTest.java45 private final ConfigStore mConfigStore = new TestConfigStore(); field in TranscodeHelperTest
49 return mConfigStore;
54 InstrumentationRegistry.getTargetContext(), mDefaultMediaProvider, mConfigStore);
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java55 private final ConfigStore mConfigStore; field in DirectoryAddonsAdapter
68 mConfigStore = configStore; in DirectoryAddonsAdapter()
71 mHeaderMessage = new HeaderMessage(environment, this::onDismissHeaderMessage, mConfigStore); in DirectoryAddonsAdapter()
72 if (mConfigStore.isPrivateSpaceInDocsUIEnabled()) { in DirectoryAddonsAdapter()
74 sourceUserId, selectedUserId, userIdLabelMap, userManager, mConfigStore); in DirectoryAddonsAdapter()
77 mConfigStore); in DirectoryAddonsAdapter()
122 holder = new TransparentDividerDocumentHolder(mEnv.getContext(), mConfigStore);
126 holder = new HeaderMessageDocumentHolder(mEnv.getContext(), parent, mConfigStore);
130 holder = new InflateMessageDocumentHolder(mEnv.getContext(), parent, mConfigStore);
DModelBackedDocumentsAdapter.java56 private final ConfigStore mConfigStore; field in ModelBackedDocumentsAdapter
71 mConfigStore = configStore; in ModelBackedDocumentsAdapter()
100 mEnv.getContext(), parent, mIconHelper, mConfigStore); in onCreateViewHolder()
105 mConfigStore) in onCreateViewHolder()
107 mConfigStore); in onCreateViewHolder()
115 mEnv.getContext(), parent, mIconHelper, mFileTypeLookup, mConfigStore); in onCreateViewHolder()
155 if (mConfigStore.isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) { in onBindViewHolder()
DMessage.java87 protected ConfigStore mConfigStore; field in Message
92 mConfigStore = configStore; in Message()
244 if (SdkLevel.isAtLeastV() && mConfigStore.isPrivateSpaceInDocsUIEnabled()) { in setCanModifyQuietMode()
291 if (mConfigStore.isPrivateSpaceInDocsUIEnabled()) { in updateToQuietModeErrorMessage()
297 buttonText = mConfigStore.isPrivateSpaceInDocsUIEnabled() in updateToQuietModeErrorMessage()
306 update(mConfigStore.isPrivateSpaceInDocsUIEnabled() in updateToQuietModeErrorMessage()
329 return mConfigStore.isPrivateSpaceInDocsUIEnabled() in getCrossProfileNoPermissionErrorTitle()
333 return mConfigStore.isPrivateSpaceInDocsUIEnabled() in getCrossProfileNoPermissionErrorTitle()
383 return mConfigStore.isPrivateSpaceInDocsUIEnabled() in getCrossProfileNoPermissionErrorMessage()
387 return mConfigStore.isPrivateSpaceInDocsUIEnabled() in getCrossProfileNoPermissionErrorMessage()
DAppsRowManager.java56 private final ConfigStore mConfigStore; field in AppsRowManager
65 mConfigStore = configStore; in AppsRowManager()
75 mConfigStore = configStore; in AppsRowManager()
155 if (mConfigStore.isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) { in getUserIds()
DDocumentHolder.java65 protected final ConfigStore mConfigStore; field in DocumentHolder
83 mConfigStore = configStore; in DocumentHolder()
205 if (mConfigStore.isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) { in getPreviewIconContentDescription()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPickerSyncControllerTest.java142 private TestConfigStore mConfigStore; field in PickerSyncControllerTest
170 mConfigStore = new TestConfigStore(); in setUp()
171 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages(PACKAGE_NAME); in setUp()
174 mContext, mFacade, mConfigStore, mLockManager, LOCAL_PROVIDER_AUTHORITY); in setUp()
187 if (mConfigStore != null) { in tearDown()
188 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages(PACKAGE_NAME); in tearDown()
891 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages(PACKAGE_NAME); in testGetSupportedCloudProviders_useAllowList()
893 mContext, mFacade, mConfigStore, mLockManager, LOCAL_PROVIDER_AUTHORITY); in testGetSupportedCloudProviders_useAllowList()
903 mConfigStore.clearDefaultCloudProviderPackage(); in testNotifyPackageRemoval_NoDefaultCloudProviderPackage()
925 mConfigStore.setDefaultCloudProviderPackage(PACKAGE_NAME); in testNotifyPackageRemoval_NoDefaultCloudProviderPackage()
[all …]
DPickerDataLayerTest.java116 private TestConfigStore mConfigStore; field in PickerDataLayerTest
139 mConfigStore = new TestConfigStore(); in setUp()
140 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages(PACKAGE_NAME); in setUp()
143 mContext, mFacade, mConfigStore, lockManager, LOCAL_PROVIDER_AUTHORITY); in setUp()
148 workManager, mContext, mConfigStore, /* schedulePeriodicSyncs */ false); in setUp()
149 mDataLayer = new PickerDataLayer(mContext, mFacade, mController, mConfigStore, syncManager); in setUp()
718 mConfigStore.setAllowedCloudProviderPackages(new String[] {}); in testCloudPackageAllowlistListenerRemovesActiveThatIsNowInvalid()
736 mConfigStore.setAllowedCloudProviderPackages( in testCloudPackageAllowlistListenerDoesNotChangeAllowedProvider()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/settings/
DSettingsViewModel.java42 private ConfigStore mConfigStore; field in SettingsViewModel
49 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in SettingsViewModel()
60 mConfigStore = MediaApplication.getConfigStore(); in initConfigStore()
67 return mConfigStore; in getConfigStore()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DPhotoPickerTestActivity.java35 private final TestConfigStore mConfigStore = new TestConfigStore(); field in PhotoPickerTestActivity
45 mConfigStore.enablePickerChoiceManagedSelectionEnabled(); in getOrCreateViewModel()
47 pickerViewModel.setConfigStore(mConfigStore); in getOrCreateViewModel()
57 return mConfigStore; in getConfigStore()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java131 private ConfigStore mConfigStore; field in PhotoPickerActivity
193 mConfigStore = mPickerViewModel.getConfigStore(); in onCreate()
590 if (!(mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS())) { in createBottomSheetCallBack()
883 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in getCurrentUserId()
1183 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastV()) { in CrossProfileListeners()
1211 if (!(mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS())
1217 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastV()) {
1241 if (!(mConfigStore.isPrivateSpaceInPhotoPickerEnabled()
1250 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled()
1253 } else if (!(mConfigStore.isPrivateSpaceInPhotoPickerEnabled()
[all …]
DPickerDataLayer.java102 private final ConfigStore mConfigStore; field in PickerDataLayer
112 mConfigStore = requireNonNull(configStore); in PickerDataLayer()
116 mConfigStore.addOnChangeListener( in PickerDataLayer()
624 return !mConfigStore.isCloudMediaInPhotoPickerEnabled(); in shouldSyncBeforePickerQuery()
634 List<String> currentAllowlist = mConfigStore.getAllowedCloudProviderPackages(); in validateCurrentCloudProviderOnAllowlistChange()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/
DSettingsCloudMediaViewModelTest.java84 private ConfigStore mConfigStore; field in SettingsCloudMediaViewModelTest
113 doReturn(true).when(mConfigStore).isCloudMediaInPhotoPickerEnabled(); in setUp()
122 mCloudMediaViewModel.loadData(mConfigStore); in testLoadDataWithMultipleProviders()
149 mCloudMediaViewModel.loadData(mConfigStore); in testLoadDataWithNoProvider()
176 mCloudMediaViewModel.loadData(mConfigStore); in testUpdateProvider()
201 mCloudMediaViewModel.loadData(mConfigStore); in testLoadDataWithAllowListedProviders()
333 doReturn(true).when(mConfigStore).shouldEnforceCloudProviderAllowlist(); in setUpAllowedCloudPackages()
334 doReturn(allowlistedPackages).when(mConfigStore).getAllowedCloudProviderPackages(); in setUpAllowedCloudPackages()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProviderShellCommand.java46 private final @NonNull ConfigStore mConfigStore; field in MediaProviderShellCommand
57 mConfigStore = configStore; in MediaProviderShellCommand()
115 final List<String> allowlist = mConfigStore.getAllowedCloudProviderPackages(); in runCloudProviderList()
127 cloudProviders = getAllAvailableCloudProviders(mAppContext, mConfigStore); in runCloudProviderList()
129 cloudProviders = getAvailableCloudProviders(mAppContext, mConfigStore); in runCloudProviderList()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModel.java169 private ConfigStore mConfigStore; field in PickerViewModel
214 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in PickerViewModel()
246 if (mEmptyPageDisplayed && mConfigStore.isCloudMediaInPhotoPickerEnabled()) { in onNotificationReceived()
274 mConfigStore = MediaApplication.getConfigStore(); in initConfigStore()
318 mConfigStore = configStore; in setConfigStore()
329 return mConfigStore; in getConfigStore()
448 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in resetToGivenUserProfile()
610 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in getCurrentUserProfileId()
1102 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in parseValuesFromIntent()
1155 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in initBannerManager()
[all …]
DBannerManager.java70 private ConfigStore mConfigStore; field in BannerManager
84 mConfigStore = configStore; in BannerManager()
101 mConfigStore = configStore; in createBannerController()
106 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in getCurrentUserProfileId()
DBannerController.java76 private final ConfigStore mConfigStore; field in BannerController
112 mConfigStore = configStore; in BannerController()
249 return !getAvailableCloudProviders(mContext, mConfigStore, mUserHandle).isEmpty(); in areCloudProviderOptionsAvailable()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DProfileTabs.java61 private final ConfigStore mConfigStore; field in ProfileTabs
88 mConfigStore = configStore; in ProfileTabs()
89 if (mConfigStore.isPrivateSpaceInDocsUIEnabled()) { in ProfileTabs()
183 if (mConfigStore.isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) { in updateTabsIfNeeded()
193 if (mConfigStore.isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) { in getUserIds()
DNavigationViewManager.java71 private final ConfigStore mConfigStore; field in NavigationViewManager
122 mConfigStore = configStore; in NavigationViewManager()
165 return mConfigStore.isPrivateSpaceInDocsUIEnabled() in getProfileTabs()
167 mConfigStore) in getProfileTabs()
169 mConfigStore); in getProfileTabs()
DUserManagerState.java125 private final ConfigStore mConfigStore; field in UserManagerState.RuntimeUserManagerState
183 mConfigStore = configStore; in RuntimeUserManagerState()
188 if (SdkLevel.isAtLeastV() && mConfigStore.isPrivateSpaceInDocsUIEnabled()) { in RuntimeUserManagerState()
273 mConfigStore.isPrivateSpaceInDocsUIEnabled()) != null) { in onProfileActionStatusChange()
599 mConfigStore.isPrivateSpaceInDocsUIEnabled()) != null) { in getCanForwardToProfileIdMapInternal()
650 mContext, mConfigStore.isPrivateSpaceInDocsUIEnabled()) in getCanForwardToProfileIdMapPreV()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/
DPickerSyncManagerTest.java65 private TestConfigStore mConfigStore; field in PickerSyncManagerTest
89 mConfigStore = new TestConfigStore(); in setUp()
90 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages( in setUp()
151 mConfigStore.disableCloudMediaFeature(); in testPeriodicWorkIsScheduledOnDeviceConfigChanges()
162 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages( in testPeriodicWorkIsScheduledOnDeviceConfigChanges()
201 mConfigStore.disableCloudMediaFeature(); in testPeriodicWorkIsScheduledOnDeviceConfigChanges()
415 mConfigStore, schedulePeriodicSyncs); in setupPickerSyncManager()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/
DPickerViewModelTest.java128 private TestConfigStore mConfigStore; field in PickerViewModelTest
151 mConfigStore = new TestConfigStore(); in setUp()
152 mConfigStore.enableCloudMediaFeatureAndSetAllowedCloudProviderPackages(TEST_PACKAGE_NAME); in setUp()
153 mConfigStore.enablePickerChoiceManagedSelectionEnabled(); in setUp()
155 mConfigStore.enablePrivateSpaceInPhotoPicker(); in setUp()
157 mConfigStore.disablePrivateSpaceInPhotoPicker(); in setUp()
164 setConfigStore(mConfigStore); in setUp()
172 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in setUp()
177 sTargetContext, userManagerState, mConfigStore); in setUp()
183 sTargetContext, userIdManager, mConfigStore); in setUp()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/sync/
DPickerSyncManager.java119 private final ConfigStore mConfigStore; field in PickerSyncManager
127 mConfigStore = requireNonNull(configStore); in PickerSyncManager()
138 mConfigStore.addOnChangeListener(BackgroundThread.getExecutor(), this::setUpPeriodicWork); in PickerSyncManager()
147 if (mConfigStore.isCloudMediaInPhotoPickerEnabled()) { in setUpPeriodicWork()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java174 return mConfigStore.isPrivateSpaceInDocsUIEnabled() in getAppsRowManager()
176 mUserManagerState, mConfigStore) in getAppsRowManager()
178 mUserIdManager, mConfigStore); in getAppsRowManager()
234 if (mConfigStore.isPrivateSpaceInDocsUIEnabled() && SdkLevel.isAtLeastS()) { in setupLayout()
239 mConfigStore.isPrivateSpaceInDocsUIEnabled()) != null) { in setupLayout()

12