/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationCategorizerTest.java | 50 private NotificationEntry mEntry; field in NotificationCategorizerTest 62 when(mEntry.getSbn()).thenReturn(mSbn); in setUp() 71 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_DEFAULT)); in testPeopleCategory() 72 when(mEntry.involvesPeople()).thenReturn(true); in testPeopleCategory() 74 assertEquals(NotificationCategorizer.CATEGORY_PEOPLE, nc.getCategory(mEntry)); in testPeopleCategory() 82 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_MIN)); in testMin() 83 when(mEntry.involvesPeople()).thenReturn(true); in testMin() 85 assertEquals(NotificationCategorizer.CATEGORY_MIN, nc.getCategory(mEntry)); in testMin() 93 when(mEntry.getChannel()).thenReturn(new NotificationChannel("", "", IMPORTANCE_HIGH)); in testHigh() 95 assertEquals(NotificationCategorizer.CATEGORY_HIGH, nc.getCategory(mEntry)); in testHigh() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | AppManagementFragment.java | 74 private ApplicationsState.AppEntry mEntry; field in AppManagementFragment 110 mEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId()); in onCreate() 119 if (mEntry == null) { in onResume() 141 if (mEntry == null) { in onActivityResult() 149 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult() 159 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult() 213 if (mEntry == null) { in updatePrefs() 229 mEntry.getVersion(getActivity()))); in updatePrefs() 240 mPackageManager.getLeanbackLaunchIntentForPackage(mEntry.info.packageName); in updatePrefs() 242 appLaunchIntent = mPackageManager.getLaunchIntentForPackage(mEntry.info.packageName); in updatePrefs() [all …]
|
D | NotificationsPreference.java | 35 private ApplicationsState.AppEntry mEntry; field in NotificationsPreference 39 mEntry = entry; in NotificationsPreference() 51 mEntry = entry; in setEntry() 60 mNotificationManager.areNotificationsEnabledForPackage(mEntry.info.packageName, in refresh() 61 mEntry.info.uid)); in refresh() 64 + mEntry.info.packageName, e); in refresh() 80 mEntry.info.packageName, mEntry.info.uid, enabled); in setNotificationsEnabled()
|
D | ForceStopPreference.java | 42 ConfirmationFragment.prepareArgs(getExtras(), mEntry.info.packageName); in ForceStopPreference() 50 if (dpm.packageHasActiveAdmins(mEntry.info.packageName)) { in refresh() 53 } else if ((mEntry.info.flags & ApplicationInfo.FLAG_STOPPED) == 0) { in refresh() 59 Uri.fromParts("package", mEntry.info.packageName, null)); in refresh() 61 mEntry.info.packageName }); in refresh() 62 intent.putExtra(Intent.EXTRA_UID, mEntry.info.uid); in refresh() 63 intent.putExtra(Intent.EXTRA_USER_HANDLE, UserHandle.getUserId(mEntry.info.uid)); in refresh()
|
D | AppStoragePreference.java | 43 final ApplicationInfo applicationInfo = mEntry.info; in refresh() 50 .getLaunchIntent(getContext(), mEntry.info.packageName, getAppName())); in refresh() 56 final String size = mEntry.sizeStr; in refresh() 61 mEntry.sizeStr, volumeDesc)); in refresh() 67 mEntry.ensureLabel(getContext()); in getAppName() 68 return mEntry.label; in getAppName()
|
D | EnableDisablePreference.java | 51 if (!UninstallPreference.canUninstall(mEntry) && canDisable()) { in refresh() 53 if (mEntry.info.enabled) { in refresh() 55 ConfirmationFragment.prepareArgs(getExtras(), mEntry.info.packageName, false); in refresh() 58 ConfirmationFragment.prepareArgs(getExtras(), mEntry.info.packageName, true); in refresh() 69 packageInfo = mPackageManager.getPackageInfo(mEntry.info.packageName, in canDisable() 76 return !(homePackages.contains(mEntry.info.packageName) || in canDisable()
|
D | ClearCachePreference.java | 36 ConfirmationFragment.prepareArgs(getExtras(), mEntry.info.packageName); in ClearCachePreference() 43 : Formatter.formatFileSize(context, mEntry.cacheSize + mEntry.externalCacheSize)); in refresh() 44 setEnabled(!mClearingCache && mEntry.cacheSize > 0); in refresh()
|
D | UninstallPreference.java | 48 return canUninstall(mEntry); in canUninstall() 57 return (mEntry.info.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; in canUninstallUpdates() 62 final Uri packageURI = Uri.parse("package:" + mEntry.info.packageName); in getIntent()
|
D | AppActionPreference.java | 32 protected ApplicationsState.AppEntry mEntry; field in AppActionPreference 36 mEntry = entry; in AppActionPreference() 44 mEntry = entry; in setEntry()
|
D | ClearDataPreference.java | 36 ConfirmationFragment.prepareArgs(getExtras(), mEntry.info.packageName); in ClearDataPreference() 43 Formatter.formatFileSize(context, mEntry.dataSize + mEntry.externalDataSize)); in refresh()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | UnrestrictedDataAccessPreference.java | 37 private final AppEntry mEntry; field in UnrestrictedDataAccessPreference 49 mEntry = entry; in UnrestrictedDataAccessPreference() 50 mDataUsageState = (AppStateDataUsageBridge.DataUsageState) mEntry.extraInfo; in UnrestrictedDataAccessPreference() 51 mEntry.ensureLabel(context); in UnrestrictedDataAccessPreference() 58 setKey(generateKey(mEntry)); in UnrestrictedDataAccessPreference() 59 if (mEntry.icon != null) { in UnrestrictedDataAccessPreference() 60 setIcon(mEntry.icon); in UnrestrictedDataAccessPreference() 88 mEntry); in onClick() 104 if (mEntry.icon == null) { in onBindViewHolder() 109 mApplicationsState.ensureIcon(mEntry); in onBindViewHolder() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | UnrestrictedDataAccessPreference.java | 37 private final AppEntry mEntry; field in UnrestrictedDataAccessPreference 49 mEntry = entry; in UnrestrictedDataAccessPreference() 50 mDataUsageState = (AppStateDataUsageBridge.DataUsageState) mEntry.extraInfo; in UnrestrictedDataAccessPreference() 51 mEntry.ensureLabel(context); in UnrestrictedDataAccessPreference() 58 setKey(generateKey(mEntry)); in UnrestrictedDataAccessPreference() 59 if (mEntry.icon != null) { in UnrestrictedDataAccessPreference() 60 setIcon(mEntry.icon); in UnrestrictedDataAccessPreference() 88 mEntry); in onClick() 104 if (mEntry.icon == null) { in onBindViewHolder() 109 mApplicationsState.ensureIcon(mEntry); in onBindViewHolder() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | AppStateChangeWifiStateBridgeTest.java | 39 private AppEntry mEntry; field in AppStateChangeWifiStateBridgeTest 57 mEntry.extraInfo = null; in testFilterApp_extraInfoNull_returnFalse() 58 assertThat(mFilter.filterApp(mEntry)).isFalse(); in testFilterApp_extraInfoNull_returnFalse() 64 mEntry.extraInfo = mState; in testFilterApp_permissionedDeclaredTrue_returnTrue() 65 assertThat(mFilter.filterApp(mEntry)).isTrue(); in testFilterApp_permissionedDeclaredTrue_returnTrue() 71 mEntry.extraInfo = mState; in testFilterApp_permissionedDeclaredFalse_returnFalse() 72 assertThat(mFilter.filterApp(mEntry)).isFalse(); in testFilterApp_permissionedDeclaredFalse_returnFalse() 81 mEntry.extraInfo = mState; in testFilterApp_networkSettingsGranted_returnFalse() 82 assertThat(mFilter.filterApp(mEntry)).isFalse(); in testFilterApp_networkSettingsGranted_returnFalse()
|
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/ |
D | DomainAppPreference.java | 35 private final AppEntry mEntry; field in DomainAppPreference 44 mEntry = entry; in DomainAppPreference() 45 mEntry.ensureLabel(getContext()); in DomainAppPreference() 56 return mEntry; in getEntry() 60 setTitle(mEntry.label); in setState() 61 setIcon(mIconDrawableFactory.getBadgedIcon(mEntry.info)); in setState() 62 setSummary(getDomainsSummary(mEntry.info.packageName)); in setState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/managedomainurls/ |
D | DomainAppPreference.java | 35 private final AppEntry mEntry; field in DomainAppPreference 44 mEntry = entry; in DomainAppPreference() 45 mEntry.ensureLabel(getContext()); in DomainAppPreference() 56 return mEntry; in getEntry() 60 setTitle(mEntry.label); in setState() 61 setIcon(mIconDrawableFactory.getBadgedIcon(mEntry.info)); in setState() 62 setSummary(getDomainsSummary(mEntry.info.packageName)); in setState()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | LabeledEditorView.java | 77 private ValuesDelta mEntry; field in LabeledEditorView 191 mEntry.markDeleted(); in markDeleted() 284 return mEntry; in getEntry() 303 mEntry.getAsString(mType.customColumn), in rebuildLabel() 346 mEntry.put(column, value); in saveValue() 385 final String dbValue = mEntry.getAsString(column); in isFieldChanged() 394 setValues(mKind, mEntry, mState, mReadOnly, mViewIdGenerator); in rebuildValues() 406 mEntry = entry; in setValues() 431 return mEntry; in getValues() 470 mEntry.put(mKind.typeColumn, mType.rawValue); in createCustomDialog() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | Proxy.java | 36 private final ArchiveEntry mEntry; field in Proxy 43 mEntry = entry; in Proxy() 49 return mEntry.getSize(); in onGetSize() 101 mInputStream = mFile.getInputStream(mEntry); in recreateInputStream()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | InLineSettingKnob.java | 40 private TextView mEntry; field in InLineSettingKnob 102 mEntry = (TextView) findViewById(R.id.current_setting); in onFinishInflate() 117 mEntry.setText(mPreference.getEntry()); in updateView() 124 mEntry.setText(mPreference.getEntries()[index]); in updateView()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcessStatsPreference.java | 30 private ProcStatsPackageEntry mEntry; field in ProcessStatsPreference 38 mEntry = entry; in init() 57 return mEntry; in getEntry()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ProcessStatsPreference.java | 30 private ProcStatsPackageEntry mEntry; field in ProcessStatsPreference 38 mEntry = entry; in init() 57 return mEntry; in getEntry()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/ |
D | PremiumSmsAccessPreferenceController.java | 74 AppEntry entry = appPreference.mEntry; 153 private final AppEntry mEntry; field in PremiumSmsAccessPreferenceController.PremiumSmsPreference 170 mEntry = entry; in PremiumSmsPreference()
|
D | AppOpsPreferenceController.java | 69 AppEntry entry = appOpPreference.mEntry; 203 private final AppEntry mEntry; field in AppOpsPreferenceController.AppOpPreference 215 mEntry = entry; in AppOpPreference()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumSlidingWindow.java | 80 public final AlbumEntry mEntry; field in AlbumSlidingWindow.PanoSupportListener 82 mEntry = entry; in PanoSupportListener() 87 if (mEntry != null) mEntry.isPanorama = isPanorama; in panoramaInfoAvailable()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DownloadCache.java | 340 private Entry mEntry; field in DownloadCache.TaskProxy 344 mEntry = entry; in setResult() 359 while (!mIsCancelled && mEntry == null) { in get() 367 return mEntry; in get()
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ExpandingEntryCardView.java | 1014 private final View mEntry; field in ExpandingEntryCardView.EntryTouchListener 1023 mEntry = entry; in EntryTouchListener() 1045 mTouchedView = mEntry; in onTouch() 1052 sendToTouched = mTouchedView != null && mTouchedView != mEntry; in onTouch() 1063 sendToTouched = mTouchedView != null && mTouchedView != mEntry; in onTouch() 1081 if (mEntry.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) { in hitThirdIcon() 1097 if (mEntry.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL) { in hitAlternateIcon()
|