Searched refs:ProvisionInfo (Results 1 – 7 of 7) sorted by relevance
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/activities/ |
D | ProvisionInfoTest.java | 21 import com.android.devicelockcontroller.activities.ProvisionInfo.ProvisionInfoType; 39 ProvisionInfo p1 = new ProvisionInfo(DRAWABLE_ID_1, TEXT_ID_1, TYPE_1); in equals_withOneDifferentFieldValue_returnsFalse() 40 ProvisionInfo p10 = new ProvisionInfo(DRAWABLE_ID_2, TEXT_ID_1, TYPE_1); in equals_withOneDifferentFieldValue_returnsFalse() 41 ProvisionInfo p12 = new ProvisionInfo(DRAWABLE_ID_1, TEXT_ID_2, TYPE_1); in equals_withOneDifferentFieldValue_returnsFalse() 42 ProvisionInfo p13 = new ProvisionInfo(DRAWABLE_ID_1, TEXT_ID_1, TYPE_2); in equals_withOneDifferentFieldValue_returnsFalse() 54 ProvisionInfo p1 = new ProvisionInfo(DRAWABLE_ID_1, TEXT_ID_1, TYPE_1); in equals_withSameFieldValues_returnsTrue() 55 ProvisionInfo p2 = new ProvisionInfo(DRAWABLE_ID_1, TEXT_ID_1, TYPE_1); in equals_withSameFieldValues_returnsTrue()
|
D | ProvisionInfoListAdapterTest.java | 35 import com.android.devicelockcontroller.activities.ProvisionInfo.ProvisionInfoType; 48 private static final List<ProvisionInfo> TEST_PROVISION_INFOS = List.of( 83 ProvisionInfo regularInfo = TEST_PROVISION_INFOS.get(position); in onBindViewHolder_regularView_noProviderName_setEmptyText() 98 ProvisionInfo regularInfo = TEST_PROVISION_INFOS.get(position); in onBindViewHolder_regularView_providerNameAvailable_setText() 114 ProvisionInfo urlProvisionInfo = TEST_PROVISION_INFOS.get(position); in onBindViewHolder_urlProvisionInfo_urlNotAvailable_setTextWithEmptyUrl() 134 ProvisionInfo urlProvisionInfo = TEST_PROVISION_INFOS.get(position); in onBindViewHolder_urlProvisionInfo_urlAvailable_setTextWithUrl()
|
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/ |
D | DeviceSubsidyProvisionInfoViewModel.java | 31 private static final ProvisionInfo[] PROVISION_INFOS = new ProvisionInfo[]{ 32 new ProvisionInfo(R.drawable.ic_file_download_24px, 34 ProvisionInfo.ProvisionInfoType.REGULAR), 35 new ProvisionInfo(R.drawable.ic_lock_outline_24px, 37 ProvisionInfo.ProvisionInfoType.TERMS_AND_CONDITIONS), 38 new ProvisionInfo(R.drawable.ic_help_24px, 40 ProvisionInfo.ProvisionInfoType.SUPPORT)};
|
D | DeviceFinancingProvisionInfoViewModel.java | 22 import com.android.devicelockcontroller.activities.ProvisionInfo.ProvisionInfoType; 35 static final ProvisionInfo[] PROVISION_INFOS = new ProvisionInfo[]{ 36 new ProvisionInfo(R.drawable.ic_file_download_24px, 39 new ProvisionInfo(R.drawable.ic_lock_outline_24px, 42 new ProvisionInfo(R.drawable.ic_help_24px,
|
D | ProvisionInfoListAdapter.java | 32 import com.android.devicelockcontroller.activities.ProvisionInfo.ProvisionInfoType; 41 ListAdapter<ProvisionInfo, ProvisionInfoListAdapter.ProvisionInfoViewHolder> { 46 public boolean areItemsTheSame(@NonNull ProvisionInfo oldItem, in ProvisionInfoListAdapter() 47 @NonNull ProvisionInfo newItem) { in ProvisionInfoListAdapter() 52 public boolean areContentsTheSame(@NonNull ProvisionInfo oldItem, in ProvisionInfoListAdapter() 53 @NonNull ProvisionInfo newItem) { in ProvisionInfoListAdapter() 93 void bindProvisionInfo(ProvisionInfo provisionInfo) { in bindProvisionInfo()
|
D | ProvisionInfoViewModel.java | 47 List<ProvisionInfo> mProvisionInfoList; 52 final MutableLiveData<List<ProvisionInfo>> mProvisionInfoListLiveData = new MutableLiveData<>(); 73 ProvisionInfo provisionInfo = mProvisionInfoList.get(i); in retrieveData() 75 case ProvisionInfo.ProvisionInfoType.REGULAR -> provisionInfo.setUrl( in retrieveData() 77 case ProvisionInfo.ProvisionInfoType.TERMS_AND_CONDITIONS -> in retrieveData() 79 case ProvisionInfo.ProvisionInfoType.SUPPORT -> provisionInfo.setUrl( in retrieveData()
|
D | ProvisionInfo.java | 28 public final class ProvisionInfo { class 49 public ProvisionInfo(int drawableId, int textId, @ProvisionInfoType int type) { in ProvisionInfo() method in ProvisionInfo 89 if (!(obj instanceof ProvisionInfo that)) { in equals()
|