Home
last modified time | relevance | path

Searched refs:ModelId (Results 1 – 14 of 14) sorted by relevance

/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DModelId.java31 public final class ModelId implements Parcelable { class
83 /* package-private */ ModelId(@TABLE int tableId, @NonNull String key) { in ModelId() method in ModelId
112 ModelId that = (ModelId) o; in equals()
148 /* package-private */ ModelId(@NonNull android.os.Parcel in) { in ModelId() method in ModelId
164 public static final @NonNull Parcelable.Creator<ModelId> CREATOR =
165 new Parcelable.Creator<ModelId>() {
167 public ModelId[] newArray(int size) {
168 return new ModelId[size];
172 public ModelId createFromParcel(@NonNull android.os.Parcel in) {
173 return new ModelId(in);
[all …]
DInferenceInputParcel.java37 @NonNull private ModelId mModelId;
72 new ModelId.Builder() in InferenceInputParcel()
119 @NonNull ModelId modelId, in InferenceInputParcel()
147 public @NonNull ModelId getModelId() { in getModelId()
226 ModelId modelId = (ModelId) in.readTypedObject(ModelId.CREATOR); in InferenceInputParcel()
DRemoteDataImpl.java143 return ModelId.TABLE_ID_REMOTE_DATA; in getTableId()
DLocalDataImpl.java138 return ModelId.TABLE_ID_LOCAL_DATA; in getTableId()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImplTest.java35 import android.adservices.ondevicepersonalization.ModelId;
497 ModelId modelId = in testGetModelFileDescriptor_remoteTable_success()
498 new ModelId.Builder() in testGetModelFileDescriptor_remoteTable_success()
499 .setTableId(ModelId.TABLE_ID_REMOTE_DATA) in testGetModelFileDescriptor_remoteTable_success()
516 ModelId modelId = in testGetModelFileDescriptor_remoteTable_fail()
517 new ModelId.Builder() in testGetModelFileDescriptor_remoteTable_fail()
518 .setTableId(ModelId.TABLE_ID_REMOTE_DATA) in testGetModelFileDescriptor_remoteTable_fail()
533 ModelId modelId = in testGetModelFileDescriptor_localTable_success()
534 new ModelId.Builder() in testGetModelFileDescriptor_localTable_success()
535 .setTableId(ModelId.TABLE_ID_LOCAL_DATA) in testGetModelFileDescriptor_localTable_success()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DModelId.java12 public class ModelId { class
18 return ModelId.build(UserId.of(getCursorInt(cursor, RootCursorWrapper.COLUMN_USER_ID)), in build()
DDirectoryResult.java99 modelIds[pos] = ModelId.build(mCursor); in loadDataFromCursor()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEnv.java28 import com.android.documentsui.ModelId;
194 ModelId.build(model.mUserId, TestProvidersAccess.HOME.authority, "1")); in populateStack()
215 ids.add(ModelId.build(info.userId, info.authority, info.documentId)); in selectDocument()
223 ids.add(ModelId.build(info.userId, info.authority, info.documentId)); in selectMultipleFiles()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImpl.java21 import android.adservices.ondevicepersonalization.ModelId;
259 ModelId modelId = in onRequest()
261 params.getParcelable(Constants.EXTRA_MODEL_ID, ModelId.class)); in onRequest()
454 ModelId modelId, @NonNull IDataAccessServiceCallback callback) { in getModelFileDescriptor()
458 case ModelId.TABLE_ID_REMOTE_DATA: in getModelFileDescriptor()
461 case ModelId.TABLE_ID_LOCAL_DATA: in getModelFileDescriptor()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/dirlist/
DDirectoryAddonsAdapterTest.java29 import com.android.documentsui.ModelId;
83 assertEquals(0, mAdapter.getPosition(ModelId.build(mEnv.model.mUserId, AUTHORITY, "1"))); in testGetPosition()
86 assertEquals(2, mAdapter.getPosition(ModelId.build(mEnv.model.mUserId, AUTHORITY, "2"))); in testGetPosition()
DDirectoryAddonsAdapterPrivateSpaceTest.java34 import com.android.documentsui.ModelId;
109 assertEquals(0, mAdapter.getPosition(ModelId.build(mEnv.model.mUserId, AUTHORITY, "1"))); in testGetPosition()
112 assertEquals(2, mAdapter.getPosition(ModelId.build(mEnv.model.mUserId, AUTHORITY, "2"))); in testGetPosition()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/inference/
DIsolatedModelServiceImplTest.java32 import android.adservices.ondevicepersonalization.ModelId;
327 ModelId modelId = params.getParcelable(Constants.EXTRA_MODEL_ID, ModelId.class); in onRequest()
333 assertThat(modelId.getTableId()).isEqualTo(ModelId.TABLE_ID_REMOTE_DATA); in onRequest()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/inference/
DIsolatedModelServiceImpl.java23 import android.adservices.ondevicepersonalization.ModelId;
102 ModelId modelId = inputParcel.getModelId(); in runTfliteInterpreter()
167 private ParcelFileDescriptor fetchModel(IDataAccessService dataAccessService, ModelId modelId) { in fetchModel()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java52 import com.android.documentsui.ModelId;
617 ModelId.build(mEnv.model.mUserId, TestProvidersAccess.HOME.authority, "1")), in testRefresh()