Home
last modified time | relevance | path

Searched refs:modelId (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/DocumentsUI/src/com/android/documentsui/
DModel.java161 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 …]
DDocsSelectionHelper.java99 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()
DFocusManager.java204 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/
DDragStartListener.java114 @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()
DModelBackedDocumentsAdapter.java137 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()
DDocumentsAdapter.java54 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()
DSelectionMetadata.java67 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()
DGridDirectoryHolder.java134 public void bind(Cursor cursor, String modelId) { in bind() argument
137 this.mModelId = modelId; in bind()
DFocusHandler.java44 void focusDocument(String modelId); in focusDocument() argument
DGridPhotoHolder.java176 public void bind(Cursor cursor, String modelId) { in bind() argument
179 mModelId = modelId; in bind()
DTransparentDividerDocumentHolder.java49 public void bind(Cursor cursor, String modelId) { in bind() argument
DDirectoryAddonsAdapter.java278 public int getAdapterPosition(String modelId) {
279 return toViewPosition(mDelegate.getAdapterPosition(modelId));
DGridDocumentHolder.java189 public void bind(Cursor cursor, String modelId) { in bind() argument
192 mModelId = modelId; in bind()
DListDocumentHolder.java230 public void bind(Cursor cursor, String modelId) { in bind() argument
233 mModelId = modelId; in bind()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/dirlist/
DTestFocusHandler.java72 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/
DIsolatedModelServiceImpl.java102 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/
DDataAccessServiceImpl.java259 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/
DFastPairDevice.java100 @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/
DInferenceInputParcel.java119 @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/
DTestRecyclerView.java81 for (String modelId: modelIds) { in setItems()
91 for (String modelId: modelIds) { in create()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImplTest.java497 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/
DIsolatedModelServiceImplTest.java327 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/
DAccessibilityTest.java75 public void bind(Cursor cursor, String modelId) { in testNullItemDetails_NoActionClick_PrivateSpaceEnabled()
96 public void bind(Cursor cursor, String modelId) { in testNullItemDetails_NoActionClick_PrivateSpaceDisabled()
DDocumentHolderTest.java48 public void bind(Cursor cursor, String modelId) { in setUp()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairAdvertiser.java125 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()

12