/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | ConfigStoreTest.java | 42 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 …]
|
D | TranscodeHelperTest.java | 45 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/ |
D | DirectoryAddonsAdapter.java | 55 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);
|
D | ModelBackedDocumentsAdapter.java | 56 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()
|
D | Message.java | 87 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()
|
D | AppsRowManager.java | 56 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()
|
D | DocumentHolder.java | 65 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/ |
D | PickerSyncControllerTest.java | 142 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 …]
|
D | PickerDataLayerTest.java | 116 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/ |
D | SettingsViewModel.java | 42 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/ |
D | PhotoPickerTestActivity.java | 35 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/ |
D | PhotoPickerActivity.java | 131 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 …]
|
D | PickerDataLayer.java | 102 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/ |
D | SettingsCloudMediaViewModelTest.java | 84 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/ |
D | MediaProviderShellCommand.java | 46 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/ |
D | PickerViewModel.java | 169 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 …]
|
D | BannerManager.java | 70 private ConfigStore mConfigStore; field in BannerManager 84 mConfigStore = configStore; in BannerManager() 101 mConfigStore = configStore; in createBannerController() 106 if (mConfigStore.isPrivateSpaceInPhotoPickerEnabled() && SdkLevel.isAtLeastS()) { in getCurrentUserProfileId()
|
D | BannerController.java | 76 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/ |
D | ProfileTabs.java | 61 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()
|
D | NavigationViewManager.java | 71 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()
|
D | UserManagerState.java | 125 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/ |
D | PickerSyncManagerTest.java | 65 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/ |
D | PickerViewModelTest.java | 128 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/ |
D | PickerSyncManager.java | 119 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/ |
D | PickActivity.java | 174 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()
|