Home
last modified time | relevance | path

Searched refs:mAppItem (Results 1 – 6 of 6) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DAppDataUsage.java99 private AppItem mAppItem; field in AppDataUsage
115 mAppItem = (args != null) ? (AppItem) args.getParcelable(ARG_APP_ITEM) : null; in onCreate()
126 if (mAppItem == null) { in onCreate()
134 mAppItem = new AppItem(uid); in onCreate()
135 mAppItem.addUid(uid); in onCreate()
138 for (int i = 0; i < mAppItem.uids.size(); i++) { in onCreate()
139 addUid(mAppItem.uids.keyAt(i)); in onCreate()
152 if (mAppItem.key > 0) { in onCreate()
153 if (!UserHandle.isApp(mAppItem.key)) { in onCreate()
154 final UidDetail uidDetail = uidDetailProvider.getUidDetail(mAppItem.key, true); in onCreate()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java99 private AppItem mAppItem; field in AppDataUsage
115 mAppItem = (args != null) ? (AppItem) args.getParcelable(ARG_APP_ITEM) : null; in onCreate()
126 if (mAppItem == null) { in onCreate()
134 mAppItem = new AppItem(uid); in onCreate()
135 mAppItem.addUid(uid); in onCreate()
138 for (int i = 0; i < mAppItem.uids.size(); i++) { in onCreate()
139 addUid(mAppItem.uids.keyAt(i)); in onCreate()
152 if (mAppItem.key > 0) { in onCreate()
153 if (!UserHandle.isApp(mAppItem.key)) { in onCreate()
154 final UidDetail uidDetail = uidDetailProvider.getUidDetail(mAppItem.key, true); in onCreate()
[all …]
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppItemViewHolder.java34 private View mAppItem; field in AppItemViewHolder
41 mAppItem = view.findViewById(R.id.app_item); in AppItemViewHolder()
42 mAppIconView = mAppItem.findViewById(R.id.app_icon); in AppItemViewHolder()
43 mAppNameView = mAppItem.findViewById(R.id.app_name); in AppItemViewHolder()
68 mAppItem.setOnClickListener(v -> AppLauncherUtils.launchApp(mContext, app)); in bind()
69 mAppItem.setLongClickable(app.getAlternateLaunchIntent() != null); in bind()
70 mAppItem.setOnLongClickListener(v-> openAlternateLaunchIntent(app)); in bind()
74 mAppItem.setOnClickListener( in bind()
DSearchResultAdapter.java62 private View mAppItem; field in SearchResultAdapter.ViewHolder
68 mAppItem = view.findViewById(R.id.app_item); in ViewHolder()
69 mAppIconView = mAppItem.findViewById(R.id.app_icon); in ViewHolder()
70 mAppNameView = mAppItem.findViewById(R.id.app_name); in ViewHolder()
78 mAppItem.setClickable(false); in bind()
79 mAppItem.setOnClickListener(null); in bind()
83 mAppItem.setClickable(true); in bind()
84 mAppItem.setOnClickListener(listener); in bind()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DAppDataUsagePreferenceTest.java43 private AppItem mAppItem; field in AppDataUsagePreferenceTest
51 mAppItem = new AppItem(123); in setUp()
59 when(mUidDetailProvider.getUidDetail(mAppItem.key, false /* blocking */)) in createPref_hasCachedUidDetail_shouldSetAppInfo()
62 mPreference = new AppDataUsagePreference(RuntimeEnvironment.application, mAppItem, in createPref_hasCachedUidDetail_shouldSetAppInfo()
71 when(mUidDetailProvider.getUidDetail(mAppItem.key, true /* blocking */)) in createPref_noCachedUidDetail_shouldSetAppInfo()
74 mPreference = new AppDataUsagePreference(RuntimeEnvironment.application, mAppItem, in createPref_noCachedUidDetail_shouldSetAppInfo()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DAppSelectionFragment.java118 View mAppItem; field in AppSelectionFragment.AppItemViewHolder
124 mAppItem = view.findViewById(R.id.app_item); in AppItemViewHolder()
125 mAppIconView = mAppItem.findViewById(R.id.app_icon); in AppItemViewHolder()
126 mAppNameView = mAppItem.findViewById(R.id.app_name); in AppItemViewHolder()
133 mAppItem.setOnClickListener( in bind()