Searched defs:modelId (Results 1 - 15 of 15) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DInflateMessageDocumentHolder.java49 public void bind(Cursor cursor, String modelId) { argument
H A DTransparentDividerDocumentHolder.java48 public void bind(Cursor cursor, String modelId) { argument
H A DFocusHandler.java44 void focusDocument(String modelId); argument
73 * @return The modelId of the last focused item. If no item is focused, this should return null.
H A DGridDirectoryHolder.java72 * @param modelId The model ID of the item.
76 public void bind(Cursor cursor, String modelId) { argument
79 this.mModelId = modelId;
H A DHeaderMessageDocumentHolder.java59 public void bind(Cursor cursor, String modelId) { argument
H A DGridDocumentHolder.java120 * @param modelId The model ID of the item.
124 public void bind(Cursor cursor, String modelId) { argument
127 mModelId = modelId;
H A DListDocumentHolder.java136 * @param modelId The model ID of the item.
140 public void bind(Cursor cursor, String modelId) { argument
143 mModelId = modelId;
H A DDocumentHolder.java88 * @param modelId
91 public abstract void bind(Cursor cursor, String modelId); argument
H A DDragStartListener.java120 @Nullable String modelId = mIdFinder.apply(view);
121 if (modelId == null) {
126 Selection selection = getSelectionToBeCopied(modelId, event);
150 * Given the InputEvent (for CTRL case) and modelId of the view associated with the
154 Selection getSelectionToBeCopied(String modelId, InputEvent event) { argument
158 if (event.isCtrlKeyDown() && !mSelectionMgr.getSelection().contains(modelId)
160 mSelectionMgr.toggleSelection(modelId);
163 if (mSelectionMgr.getSelection().contains(modelId)) {
166 selection.add(modelId);
H A DDirectoryFragment.java447 final String modelId = getModelId(v);
448 if (modelId == null) {
881 String modelId = mSelectionMgr.getSelection().iterator().next();
882 Cursor dstCursor = mModel.getItem(modelId);
884 Log.w(TAG, "Invalid destination. Can't obtain cursor for modelId: " + modelId);
994 Log.w(TAG, "Invalid destination. Can't obtain cursor for modelId: " + id);
1055 private boolean canSetSelectionState(String modelId, boolean nextState) { argument
1058 final Cursor cursor = mModel.getItem(modelId);
1060 Log.w(TAG, "Couldn't obtain cursor for modelId
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
H A DTestFocusHandler.java70 public void focusDocument(String modelId) { argument
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
H A DSelectionMetadata.java62 public void onItemStateChanged(String modelId, boolean selected) { argument
63 final Cursor cursor = mDocFinder.apply(modelId);
65 Log.w(TAG, "Model returned null cursor for document: " + modelId
H A DSelectionManager.java270 * @param modelId
272 public void toggleSelection(String modelId) { argument
273 assert(modelId != null);
275 final boolean changed = mSelection.contains(modelId)
276 ? attemptDeselect(modelId)
277 : attemptSelect(modelId);
378 * @param modelId
381 private boolean selectAndNotify(String modelId) { argument
382 boolean changed = mSelection.add(modelId);
384 notifyItemStateChanged(modelId, tru
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DModel.java185 public @Nullable Cursor getItem(String modelId) { argument
186 Integer pos = mPositions.get(modelId);
188 if (DEBUG) Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId);
194 "Unabled to move cursor to position " + pos + " for modelId: " + modelId);
213 public @Nullable DocumentInfo getDocument(String modelId) { argument
214 final Cursor cursor = getItem(modelId);
225 for (String modelId: selection) {
226 doc = loadDocument(modelId, filte
246 loadDocument(String modelId, Predicate<Cursor> filter) argument
262 getItemUri(String modelId) argument
[all...]
H A DFocusManager.java178 * Attempts to put focus on the document associated with the given modelId. If item does not
179 * exist yet in the layout, this sets a pending modelId to be used when {@code
183 public void focusDocument(String modelId) { argument
184 int pos = mScope.adapter.getModelIds().indexOf(modelId);
188 mScope.pendingFocusId = modelId;
554 String modelId = mScope.adapter.getModelId(i);
555 Cursor cursor = mScope.model.getItem(modelId);
556 if (modelId != null && cursor != null) {

Completed in 107 milliseconds