Home
last modified time | relevance | path

Searched refs:GridOption (Results 1 – 11 of 11) sorted by relevance

/packages/apps/ThemePicker/src/com/android/customization/model/grid/
DGridOptionsManager.java33 public class GridOptionsManager implements CustomizationManager<GridOption> {
49 public void apply(GridOption option, Callback callback) { in apply()
60 public void fetchOptions(OptionsFetchedListener<GridOption> callback, boolean reload) { in fetchOptions()
74 private static class FetchTask extends AsyncTask<Void, Void, Pair<List<GridOption>, String>> {
76 @Nullable private final OptionsFetchedListener<GridOption> mCallback;
79 @Nullable OptionsFetchedListener<GridOption> callback) { in FetchTask()
85 protected Pair<List<GridOption>, String> doInBackground(Void[] params) { in doInBackground()
90 protected void onPostExecute(Pair<List<GridOption>, String> gridOptionsResult) { in onPostExecute() argument
DGridOption.java32 public class GridOption implements CustomizationOption<GridOption> { class
43 public GridOption(String title, String name, boolean isCurrent, int rows, int cols, in GridOption() method in GridOption
71 public boolean isActive(CustomizationManager<GridOption> manager) { in isActive()
DLauncherGridOptionsProvider.java60 private List<GridOption> mOptions;
83 Pair<List<GridOption>, String> fetch(boolean reload) { in fetch()
104 mOptions.add(new GridOption(title, name, isSet, rows, cols, in fetch()
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
DGridOptionsProvider.java16 import com.android.launcher3.InvariantDeviceProfile.GridOption;
72 for (GridOption gridOption : parseAllGridOptions()) { in query()
84 private List<GridOption> parseAllGridOptions() { in parseAllGridOptions()
85 List<GridOption> result = new ArrayList<>(); in parseAllGridOptions()
92 && GridOption.TAG_NAME.equals(parser.getName())) { in parseAllGridOptions()
93 result.add(new GridOption(getContext(), Xml.asAttributeSet(parser))); in parseAllGridOptions()
126 GridOption match = null; in update()
127 for (GridOption option : parseAllGridOptions()) { in update()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/
DGridFragment.java44 import com.android.customization.model.grid.GridOption;
94 private OptionSelectorController<GridOption> mOptionsController;
96 private GridOption mSelectedOption;
200 mGridManager.fetchOptions(new OptionsFetchedListener<GridOption>() { in setUpOptions()
202 public void onOptionsLoaded(List<GridOption> options) { in setUpOptions()
207 mSelectedOption = (GridOption) selected; in setUpOptions()
212 for (GridOption option : options) { in setUpOptions()
323 GridPreviewAdapter(GridOption gridOption) { in GridPreviewAdapter()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java244 GridOption closestProfile = displayOption.grid; in initGrid()
386 && GridOption.TAG_NAME.equals(parser.getName())) { in getPredefinedDeviceProfiles()
388 GridOption gridOption = new GridOption(context, Xml.asAttributeSet(parser)); in getPredefinedDeviceProfiles()
484 GridOption closestOption = points.get(0).grid; in invDistWeightedInterpolate()
570 public static final class GridOption { class in InvariantDeviceProfile
591 public GridOption(Context context, AttributeSet attrs) { in GridOption() method in InvariantDeviceProfile.GridOption
620 private final GridOption grid;
632 DisplayOption(GridOption grid, Context context, AttributeSet attrs) { in DisplayOption()
659 DisplayOption(GridOption grid) { in DisplayOption()
/packages/apps/ThemePicker/src/com/android/customization/module/
DThemesUserEventLogger.java19 import com.android.customization.model.grid.GridOption;
36 void logGridSelected(GridOption grid); in logGridSelected()
38 void logGridApplied(GridOption grid); in logGridApplied()
DStatsLogUserEventLogger.java28 import com.android.customization.model.grid.GridOption;
144 public void logGridSelected(GridOption grid) { in logGridSelected()
152 public void logGridApplied(GridOption grid) { in logGridApplied()
/packages/apps/ThemePicker/tests/src/com/android/customization/testing/
DTestThemesUserEventLogger.java4 import com.android.customization.model.grid.GridOption;
35 public void logGridSelected(GridOption grid) { in logGridSelected()
40 public void logGridApplied(GridOption grid) { in logGridApplied()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/grid/
DGridOptionsManagerTest.java53 GridOption grid = new GridOption("testTitle", gridName, false, 2, 2, null, 1, ""); in testApply()
/packages/apps/ThemePicker/src/com/android/customization/picker/
DCustomizationPickerActivity.java43 import com.android.customization.model.grid.GridOption;
487 private class GridSection extends CustomizationSection<GridOption> {