/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | Model.java | 161 public @Nullable Cursor getItem(String modelId) { in getItem() argument 162 Integer pos = mPositions.get(modelId); in getItem() 165 Log.d(TAG, "Unabled to find cursor position for modelId: " + modelId); in getItem() 173 "Unabled to move cursor to position " + pos + " for modelId: " + modelId); in getItem() 189 public @Nullable DocumentInfo getDocument(String modelId) { in getDocument() argument 190 final Cursor cursor = getItem(modelId); in getDocument() 201 for (String modelId: selection) { in loadDocuments() 202 doc = loadDocument(modelId, filter); in loadDocuments() 211 for (String modelId: selection) { in hasDocuments() 212 if (loadDocument(modelId, filter) != null) { in hasDocuments() [all …]
|
D | DocsSelectionHelper.java | 99 public boolean select(String modelId) { in select() argument 100 return mDelegate.select(modelId); in select() 104 public boolean deselect(String modelId) { in deselect() argument 105 return mDelegate.deselect(modelId); in deselect()
|
D | FocusManager.java | 204 public void focusDocument(String modelId) { in focusDocument() argument 211 int pos = mScope.adapter.getAdapterPosition(modelId); in focusDocument() 215 mScope.pendingFocusId = modelId; in focusDocument() 588 String modelId = mScope.adapter.getStableId(i); in buildIndex() local 589 Cursor cursor = mScope.model.getItem(modelId); in buildIndex() 590 if (modelId != null && cursor != null) { in buildIndex()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DragStartListener.java | 114 @Nullable String modelId = mIdFinder.apply(view); in startDrag() local 115 if (modelId == null) { in startDrag() 122 Selection<String> selection = getSelectionToBeCopied(modelId, event); in startDrag() 148 MutableSelection<String> getSelectionToBeCopied(String modelId, MotionEvent event) { in getSelectionToBeCopied() argument 154 && !mSelectionMgr.isSelected(modelId)) { in getSelectionToBeCopied() 155 mSelectionMgr.select(modelId); in getSelectionToBeCopied() 158 if (mSelectionMgr.isSelected(modelId)) { in getSelectionToBeCopied() 161 selection.add(modelId); in getSelectionToBeCopied()
|
D | ModelBackedDocumentsAdapter.java | 137 String modelId = mModelIds.get(position); in onBindViewHolder() local 138 Cursor cursor = mEnv.getModel().getItem(modelId); in onBindViewHolder() 139 holder.bind(cursor, modelId); in onBindViewHolder() 146 boolean selected = mEnv.isSelected(modelId); in onBindViewHolder() 151 holder.setSelected(mEnv.isSelected(modelId), false); in onBindViewHolder() 188 public int getAdapterPosition(String modelId) { in getAdapterPosition() argument 189 return mModelIds.indexOf(modelId); in getAdapterPosition()
|
D | DocumentsAdapter.java | 54 public abstract int getAdapterPosition(String modelId); in getAdapterPosition() argument 76 String modelId = getStableIds().get(position); in isDirectory() local 77 Cursor cursor = model.getItem(modelId); in isDirectory()
|
D | SelectionMetadata.java | 67 public void onItemStateChanged(String modelId, boolean selected) { in onItemStateChanged() argument 68 final Cursor cursor = mDocFinder.apply(modelId); in onItemStateChanged() 70 Log.w(TAG, "Model returned null cursor for document: " + modelId in onItemStateChanged()
|
D | GridDirectoryHolder.java | 134 public void bind(Cursor cursor, String modelId) { in bind() argument 137 this.mModelId = modelId; in bind()
|
D | FocusHandler.java | 44 void focusDocument(String modelId); in focusDocument() argument
|
D | GridPhotoHolder.java | 176 public void bind(Cursor cursor, String modelId) { in bind() argument 179 mModelId = modelId; in bind()
|
D | TransparentDividerDocumentHolder.java | 49 public void bind(Cursor cursor, String modelId) { in bind() argument
|
D | DirectoryAddonsAdapter.java | 278 public int getAdapterPosition(String modelId) { 279 return toViewPosition(mDelegate.getAdapterPosition(modelId));
|
D | GridDocumentHolder.java | 189 public void bind(Cursor cursor, String modelId) { in bind() argument 192 mModelId = modelId; in bind()
|
D | ListDocumentHolder.java | 230 public void bind(Cursor cursor, String modelId) { in bind() argument 233 mModelId = modelId; in bind()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/ |
D | TestFocusHandler.java | 72 public void focusDocument(String modelId) { in focusDocument() argument 73 focusModelId = modelId; in focusDocument() 90 public void assertFocused(String modelId) { in assertFocused() argument 91 assertEquals(modelId, getFocusModelId()); in assertFocused()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/inference/ |
D | IsolatedModelServiceImpl.java | 102 ModelId modelId = inputParcel.getModelId(); in runTfliteInterpreter() local 103 ParcelFileDescriptor modelFd = fetchModel(binder, modelId); in runTfliteInterpreter() 167 private ParcelFileDescriptor fetchModel(IDataAccessService dataAccessService, ModelId modelId) { in fetchModel() argument 169 sLogger.d(TAG + ": Start fetch model %s %d", modelId.getKey(), modelId.getTableId()); in fetchModel() 172 params.putParcelable(Constants.EXTRA_MODEL_ID, modelId); in fetchModel()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/ |
D | DataAccessServiceImpl.java | 259 ModelId modelId = in onRequest() local 262 mInjector.getExecutor().execute(() -> getModelFileDescriptor(modelId, callback)); in onRequest() 454 ModelId modelId, @NonNull IDataAccessServiceCallback callback) { in getModelFileDescriptor() argument 457 switch (modelId.getTableId()) { in getModelFileDescriptor() 459 modelData = mVendorDataDao.readSingleVendorDataRow(modelId.getKey()); in getModelFileDescriptor() 462 modelData = mLocalDataDao.readSingleLocalDataRow(modelId.getKey()); in getModelFileDescriptor() 466 "Unsupported table name " + modelId.getTableId()); in getModelFileDescriptor() 470 sLogger.e(TAG + " Failed to find model data from database: " + modelId.getKey()); in getModelFileDescriptor() 476 modelId.getKey() + "_" + mInjector.getTimeMillis(), modelData); in getModelFileDescriptor() 484 sLogger.e(TAG + " Failed to find model data: " + modelId.getKey(), e); in getModelFileDescriptor()
|
/packages/modules/Connectivity/nearby/framework/java/android/nearby/ |
D | FastPairDevice.java | 100 @Nullable String modelId, in FastPairDevice() argument 105 this.mModelId = modelId; in FastPairDevice() 295 public Builder setModelId(@Nullable String modelId) { in setModelId() argument 296 mModelId = modelId; in setModelId()
|
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/ |
D | InferenceInputParcel.java | 119 @NonNull ModelId modelId, in InferenceInputParcel() 126 this.mModelId = modelId; in InferenceInputParcel() 226 ModelId modelId = (ModelId) in.readTypedObject(ModelId.CREATOR); in InferenceInputParcel() local 236 this.mModelId = modelId; in InferenceInputParcel()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestRecyclerView.java | 81 for (String modelId: modelIds) { in setItems() 91 for (String modelId: modelIds) { in create()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | DataAccessServiceImplTest.java | 497 ModelId modelId = in testGetModelFileDescriptor_remoteTable_success() local 502 params.putParcelable(Constants.EXTRA_MODEL_ID, modelId); in testGetModelFileDescriptor_remoteTable_success() 516 ModelId modelId = in testGetModelFileDescriptor_remoteTable_fail() local 521 params.putParcelable(Constants.EXTRA_MODEL_ID, modelId); in testGetModelFileDescriptor_remoteTable_fail() 533 ModelId modelId = in testGetModelFileDescriptor_localTable_success() local 538 params.putParcelable(Constants.EXTRA_MODEL_ID, modelId); in testGetModelFileDescriptor_localTable_success() 552 ModelId modelId = in testGetModelFileDescriptor_localTable_fail() local 557 params.putParcelable(Constants.EXTRA_MODEL_ID, modelId); in testGetModelFileDescriptor_localTable_fail()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/inference/ |
D | IsolatedModelServiceImplTest.java | 327 ModelId modelId = params.getParcelable(Constants.EXTRA_MODEL_ID, ModelId.class); in onRequest() local 331 + modelId.getKey()); in onRequest() 332 assertThat(modelId.getKey()).isEqualTo(MODEL_KEY); in onRequest() 333 assertThat(modelId.getTableId()).isEqualTo(ModelId.TABLE_ID_REMOTE_DATA); in onRequest()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AccessibilityTest.java | 75 public void bind(Cursor cursor, String modelId) { in testNullItemDetails_NoActionClick_PrivateSpaceEnabled() 96 public void bind(Cursor cursor, String modelId) { in testNullItemDetails_NoActionClick_PrivateSpaceDisabled()
|
D | DocumentHolderTest.java | 48 public void bind(Cursor cursor, String modelId) { in setUp()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | FastPairAdvertiser.java | 125 public void advertiseModelId(int modelId, Callbacks callback) { in advertiseModelId() argument 127 Slogf.d(TAG, "advertiseModelId(id=0x%s)", Integer.toHexString(modelId)); in advertiseModelId() 131 modelId); in advertiseModelId()
|