Home
last modified time | relevance | path

Searched refs:ActivityModel (Results 1 – 11 of 11) sorted by relevance

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ui/model/
DActivityModelTest.kt32 val input = ActivityModel(Intent(ACTION_CHOOSER), 0, "example.com", null) in testDefaultValues()
43 ActivityModel(intent, 1234, "com.example", Uri.parse("android-app://example.com")) in testCommonValues()
53 ActivityModel( in testReferrerPackage_withAppReferrer_usesReferrer()
66 ActivityModel( in testReferrerPackage_httpReferrer_isNull()
79 ActivityModel( in testReferrerPackage_nullReferrer_isNull()
89 private fun assertEquals(expected: ActivityModel, actual: ActivityModel) { in assertEquals()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/model/
DActivityModel.kt29 data class ActivityModel( class
66 object : Parcelable.Creator<ActivityModel> {
67 override fun newArray(size: Int) = arrayOfNulls<ActivityModel>(size) in newArray()
68 override fun createFromParcel(source: Parcel) = ActivityModel(source) in newArray()
72 fun createFrom(activity: Activity): ActivityModel { in newArray()
73 return ActivityModel( in newArray()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/inject/
DActivityModelModule.kt24 import com.android.intentresolver.ui.model.ActivityModel in <lambda>()
40 fun provideActivityModel(savedStateHandle: SavedStateHandle): ActivityModel = in <lambda>()
41 requireNotNull(savedStateHandle[ActivityModel.ACTIVITY_MODEL_KEY]) { in <lambda>()
47 fun chooserIntent(activityModel: ActivityModel): Intent = activityModel.intent in <lambda>()
52 activityModel: ActivityModel, in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/viewmodel/
DResolverViewModel.kt22 import com.android.intentresolver.ui.model.ActivityModel
23 import com.android.intentresolver.ui.model.ActivityModel.Companion.ACTIVITY_MODEL_KEY
39 val activityModel: ActivityModel =
DChooserViewModel.kt29 import com.android.intentresolver.ui.model.ActivityModel
30 import com.android.intentresolver.ui.model.ActivityModel.Companion.ACTIVITY_MODEL_KEY
64 val activityModel: ActivityModel =
DResolverRequestReader.kt24 import com.android.intentresolver.ui.model.ActivityModel
36 fun readResolverRequest(launch: ActivityModel): ValidationResult<ResolverRequest> { in readResolverRequest()
DChooserRequestReader.kt49 import com.android.intentresolver.ui.model.ActivityModel
68 model: ActivityModel, in readChooserRequest()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestTest.kt26 import com.android.intentresolver.ui.model.ActivityModel
41 ActivityModel( in createActivityModel()
DChooserRequestTest.kt35 import com.android.intentresolver.ui.model.ActivityModel
48 ActivityModel( in createActivityModel()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DResolverActivity.java109 import com.android.intentresolver.ui.model.ActivityModel;
216 protected ActivityModel createActivityModel() {
217 return ActivityModel.createFrom(this);
225 new Pair<>(ActivityModel.ACTIVITY_MODEL_KEY, createActivityModel()));
DChooserActivity.java29 import static com.android.intentresolver.ui.model.ActivityModel.ACTIVITY_MODEL_KEY;
136 import com.android.intentresolver.ui.model.ActivityModel;
274 private ActivityModel mActivityModel;
322 protected ActivityModel createActivityModel() { in createActivityModel()
323 return ActivityModel.createFrom(this); in createActivityModel()