/packages/apps/ThemePicker/src/com/android/customization/model/grid/ |
D | GridOption.java | 34 public class GridOption implements CustomizationOption<GridOption>, Parcelable { class 35 public static final Creator<GridOption> CREATOR = new Creator<GridOption>() { 37 public GridOption createFromParcel(Parcel in) { 38 return new GridOption(in); 42 public GridOption[] newArray(int size) { 43 return new GridOption[size]; 57 public GridOption(String title, String name, boolean isCurrent, int rows, int cols, in GridOption() method in GridOption 74 protected GridOption(Parcel in) { in GridOption() method in GridOption 97 public boolean isActive(CustomizationManager<GridOption> manager) { in isActive() 107 if (obj instanceof GridOption) { in equals() [all …]
|
D | GridOptionsManager.java | 41 public class GridOptionsManager implements CustomizationManager<GridOption> { 78 List<GridOption> gridOptions = mProvider.fetch(/* reload= */true); in isAvailable() 89 public void apply(GridOption option, Callback callback) { in apply() 100 public void preview(GridOption option) { in preview() 105 public void fetchOptions(OptionsFetchedListener<GridOption> callback, boolean reload) { in fetchOptions() 107 List<GridOption> gridOptions = mProvider.fetch(reload); in fetchOptions()
|
D | LauncherGridOptionsProvider.java | 60 private List<GridOption> mOptions; 79 List<GridOption> fetch(boolean reload) { in fetch() 99 mOptions.add(new GridOption(title, name, isSet, rows, cols, in fetch()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/data/repository/ |
D | GridRepository.kt | 23 import com.android.customization.model.grid.GridOption in <lambda>() 42 fun getSelectedOption(): GridOption? in <lambda>() 62 private val selectedOption = MutableStateFlow<GridOption?>(null) 64 private var appliedOption: GridOption? = null 72 object : CustomizationManager.OptionsFetchedListener<GridOption> { in getSelectedOption() 73 override fun onOptionsLoaded(options: MutableList<GridOption>?) { in getSelectedOption() 104 private fun toModel(option: GridOption): GridOptionItemModel { in toModel() 122 private suspend fun onSelected(option: GridOption) { in onSelected() 178 private fun GridOption?.key(): String? { in isSelectedOptionApplied() method
|
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ui/section/ |
D | GridSectionController.java | 30 import com.android.customization.model.grid.GridOption; 105 new OptionsFetchedListener<GridOption>() { in updateUi() 107 public void onOptionsLoaded(List<GridOption> options) { in updateUi() 124 private GridOption getActiveOption(List<GridOption> options) { in getActiveOption()
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
D | GridCustomizationsProvider.java | 40 import com.android.launcher3.InvariantDeviceProfile.GridOption; 105 for (GridOption gridOption : idp.parseAllGridOptions(getContext())) { in query() 149 GridOption match = null; in update() 150 for (GridOption option : idp.parseAllGridOptions(getContext())) { in update()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 368 GridOption closestProfile = displayOption.grid; in initGrid() 534 && GridOption.TAG_NAME.equals(parser.getName())) { in getPredefinedDeviceProfiles() 536 GridOption gridOption = new GridOption(context, Xml.asAttributeSet(parser)); in getPredefinedDeviceProfiles() 583 public GridOption getGridOptionFromFileName(Context context, String fileName) { in getGridOptionFromFileName() 610 public GridOption getGridOptionFromName(Context context, String gridName) { in getGridOptionFromName() 620 public List<GridOption> parseAllGridOptions(Context context) { in parseAllGridOptions() 630 public static List<GridOption> parseAllDefinedGridOptions(Context context) { in parseAllDefinedGridOptions() 631 List<GridOption> result = new ArrayList<>(); in parseAllDefinedGridOptions() 639 && GridOption.TAG_NAME.equals(parser.getName())) { in parseAllDefinedGridOptions() 640 result.add(new GridOption(context, Xml.asAttributeSet(parser))); in parseAllDefinedGridOptions() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/module/logging/ |
D | ThemesUserEventLogger.kt | 20 import com.android.customization.model.grid.GridOption 28 fun logGridApplied(grid: GridOption) in logThemeColorApplied()
|
D | ThemesUserEventLoggerImpl.kt | 52 import com.android.customization.model.grid.GridOption 180 override fun logGridApplied(grid: GridOption) { in logGridApplied() 241 private fun GridOption.getLauncherGridInt(): Int { in GridOption() method
|
/packages/apps/ThemePicker/tests/common/src/com/android/customization/module/logging/ |
D | TestThemesUserEventLogger.kt | 19 import com.android.customization.model.grid.GridOption 45 override fun logGridApplied(grid: GridOption) {} in logGridApplied()
|
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/ |
D | GridOptionsManagerTest.java | 53 GridOption grid = new GridOption("testTitle", gridName, false, 2, 2, null, 1, ""); in testApply()
|
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/data/repository/ |
D | FakeGridRepository.kt | 21 import com.android.customization.model.grid.GridOption in <lambda>() 57 override fun getSelectedOption(): GridOption? = null in <lambda>()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/domain/interactor/ |
D | GridInteractor.kt | 21 import com.android.customization.model.grid.GridOption in <lambda>() 78 fun getSelectOptionNonSuspend(): GridOption? = repository.getSelectedOption() in <lambda>()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | RestoreDbTask.java | 148 InvariantDeviceProfile.GridOption oldPhoneGridOption = idp.getGridOptionFromFileName( in trySettingPreviousGidAsCurrent()
|