/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/ |
D | ModelId.java | 31 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 …]
|
D | InferenceInputParcel.java | 37 @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()
|
D | RemoteDataImpl.java | 143 return ModelId.TABLE_ID_REMOTE_DATA; in getTableId()
|
D | LocalDataImpl.java | 138 return ModelId.TABLE_ID_LOCAL_DATA; in getTableId()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | DataAccessServiceImplTest.java | 35 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/ |
D | ModelId.java | 12 public class ModelId { class 18 return ModelId.build(UserId.of(getCursorInt(cursor, RootCursorWrapper.COLUMN_USER_ID)), in build()
|
D | DirectoryResult.java | 99 modelIds[pos] = ModelId.build(mCursor); in loadDataFromCursor()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestEnv.java | 28 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/ |
D | DataAccessServiceImpl.java | 21 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/ |
D | DirectoryAddonsAdapterTest.java | 29 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()
|
D | DirectoryAddonsAdapterPrivateSpaceTest.java | 34 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/ |
D | IsolatedModelServiceImplTest.java | 32 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/ |
D | IsolatedModelServiceImpl.java | 23 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/ |
D | ActionHandlerTest.java | 52 import com.android.documentsui.ModelId; 617 ModelId.build(mEnv.model.mUserId, TestProvidersAccess.HOME.authority, "1")), in testRefresh()
|