/packages/apps/Calendar/src/com/android/calendar/ |
D | AsyncQueryService.java | 171 OperationInfo info = new OperationInfo(); in startQuery() local 172 info.op = Operation.EVENT_ARG_QUERY; in startQuery() 173 info.resolver = mContext.getContentResolver(); in startQuery() 175 info.handler = mHandler; in startQuery() 176 info.token = token; in startQuery() 177 info.cookie = cookie; in startQuery() 178 info.uri = uri; in startQuery() 179 info.projection = projection; in startQuery() 180 info.selection = selection; in startQuery() 181 info.selectionArgs = selectionArgs; in startQuery() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 66 public ItemInfo info; field in LauncherAccessibilityDelegate.DragInfo 97 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onInitializeAccessibilityNodeInfo() argument 98 super.onInitializeAccessibilityNodeInfo(host, info); in onInitializeAccessibilityNodeInfo() 99 addSupportedActions(host, info, false); in onInitializeAccessibilityNodeInfo() 102 public void addSupportedActions(View host, AccessibilityNodeInfo info, boolean fromKeyboard) { in addSupportedActions() argument 109 info.addAction(mActions.get(DEEP_SHORTCUTS)); in addSupportedActions() 113 info.addAction(mActions.get(REMOVE)); in addSupportedActions() 116 info.addAction(mActions.get(UNINSTALL)); in addSupportedActions() 119 info.addAction(mActions.get(INFO)); in addSupportedActions() 126 info.addAction(mActions.get(MOVE)); in addSupportedActions() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageInfoControllerTest.java | 19 private DataUsageInfo info; field in DataUsageInfoControllerTest 28 info = new DataUsageInfo(); in setUp() 33 info.warningLevel = POSITIVE_SMALL; in testLowUsageLowWarning_LimitUsed() 34 info.limitLevel = POSITIVE_LARGE; in testLowUsageLowWarning_LimitUsed() 35 info.usageLevel = POSITIVE_SMALL; in testLowUsageLowWarning_LimitUsed() 36 assertThat(mInfoController.getSummaryLimit(info)).isEqualTo(info.limitLevel); in testLowUsageLowWarning_LimitUsed() 41 info.warningLevel = POSITIVE_LARGE; in testLowUsageEqualWarning_LimitUsed() 42 info.limitLevel = POSITIVE_LARGE; in testLowUsageEqualWarning_LimitUsed() 43 info.usageLevel = POSITIVE_SMALL; in testLowUsageEqualWarning_LimitUsed() 44 assertThat(mInfoController.getSummaryLimit(info)).isEqualTo(info.limitLevel); in testLowUsageEqualWarning_LimitUsed() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | LoaderCursor.java | 149 final ShortcutInfo info = new ShortcutInfo(); in loadSimpleShortcut() local 151 info.user = user; in loadSimpleShortcut() 152 info.itemType = itemType; in loadSimpleShortcut() 153 info.title = getTitle(); in loadSimpleShortcut() 154 info.iconBitmap = loadIcon(info); in loadSimpleShortcut() 156 if (info.iconBitmap == null) { in loadSimpleShortcut() 157 info.iconBitmap = mIconCache.getDefaultIcon(info.user); in loadSimpleShortcut() 162 return info; in loadSimpleShortcut() 168 protected Bitmap loadIcon(ShortcutInfo info) { in loadIcon() argument 174 info.iconResource = new ShortcutIconResource(); in loadIcon() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaWindowAdapter.java | 387 DayAdapterInfo info = getAdapterInfoByPosition(position); in getItemViewType() local 388 if (info != null) { in getItemViewType() 389 return info.dayAdapter.getItemViewType(position - info.offset); in getItemViewType() 398 DayAdapterInfo info = getAdapterInfoByPosition(position); in isEnabled() local 399 if (info != null) { in isEnabled() 400 return info.dayAdapter.isEnabled(position - info.offset); in isEnabled() 413 DayAdapterInfo info = getAdapterInfoByPosition(position); in getItem() local 414 if (info != null) { in getItem() 415 return info.dayAdapter.getItem(position - info.offset); in getItem() 430 DayAdapterInfo info = getAdapterInfoByPosition(position); in getItemId() local [all …]
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceUtils.java | 90 EmailServiceInfo info = getServiceInfo(context, protocol); in killService() local 91 if (info != null && info.intentAction != null) { in killService() 92 final Intent serviceIntent = getServiceIntent(info); in killService() 102 EmailServiceInfo info = getServiceInfo(context, protocol); in startService() local 103 if (info != null && info.intentAction != null) { in startService() 104 final Intent serviceIntent = getServiceIntent(info); in startService() 113 for (EmailServiceInfo info: getServiceInfoList(context)) { in startRemoteServices() 114 if (info.intentAction != null) { in startRemoteServices() 115 final Intent serviceIntent = getServiceIntent(info); in startRemoteServices() 125 for (EmailServiceInfo info: getServiceInfoList(context)) { in areRemoteServicesInstalled() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InstallShortcutReceiver.java | 88 SharedPreferences sharedPrefs, PendingInstallShortcutInfo info) { in addToInstallQueue() argument 90 String encoded = info.encodeToString(); in addToInstallQueue() 144 PendingInstallShortcutInfo info = decode(encoded, context); in getAndClearInstallQueue() local 145 if (info != null) { in getAndClearInstallQueue() 146 infos.add(info); in getAndClearInstallQueue() 162 PendingInstallShortcutInfo info = createPendingInfo(context, data); in onReceive() local 163 if (info != null) { in onReceive() 164 if (!info.isLauncherActivity()) { in onReceive() 167 info.launchIntent, null)) { in onReceive() 169 Log.e(TAG, "Ignoring malicious intent " + info.launchIntent.toUri(0)); in onReceive() [all …]
|
D | AllAppsList.java | 68 public void add(AppInfo info, LauncherActivityInfo activityInfo) { in add() argument 69 if (!mAppFilter.shouldShowApp(info.componentName)) { in add() 72 if (findActivity(data, info.componentName, info.user)) { in add() 75 mIconCache.getTitleAndIcon(info, activityInfo, true /* useLowResIcon */); in add() 77 data.add(info); in add() 78 added.add(info); in add() 105 for (LauncherActivityInfo info : matches) { in addPackage() 106 add(new AppInfo(context, info, user), info); in addPackage() 116 AppInfo info = data.get(i); in removePackage() local 117 if (info.user.equals(user) && packageName.equals(info.componentName.getPackageName())) { in removePackage() [all …]
|
D | IconCache.java | 174 public Drawable getFullResIcon(ActivityInfo info) { in getFullResIcon() argument 178 info.applicationInfo); in getFullResIcon() 183 int iconId = info.getIconResource(); in getFullResIcon() 192 public Drawable getFullResIcon(LauncherActivityInfo info) { in getFullResIcon() argument 193 return mIconProvider.getIcon(info, mIconDpi); in getFullResIcon() 230 PackageInfo info = mPackageManager.getPackageInfo(packageName, in updateIconsForPkg() local 234 addIconToDBAndMemCache(app, info, userSerial, false /*replace existing*/); in updateIconsForPkg() 284 for (PackageInfo info : pm.getInstalledPackages(PackageManager.GET_UNINSTALLED_PACKAGES)) { in updateDBIcons() 285 pkgInfoMap.put(info.packageName, info); in updateDBIcons() 314 PackageInfo info = pkgInfoMap.get(component.getPackageName()); in updateDBIcons() local [all …]
|
D | BubbleTextView.java | 186 public void applyFromShortcutInfo(ShortcutInfo info) { in applyFromShortcutInfo() argument 187 applyFromShortcutInfo(info, false); in applyFromShortcutInfo() 190 public void applyFromShortcutInfo(ShortcutInfo info, boolean promiseStateChanged) { in applyFromShortcutInfo() argument 191 applyIconAndLabel(info.iconBitmap, info); in applyFromShortcutInfo() 192 setTag(info); in applyFromShortcutInfo() 193 if (promiseStateChanged || info.isPromise()) { in applyFromShortcutInfo() 197 applyBadgeState(info, false /* animate */); in applyFromShortcutInfo() 200 public void applyFromApplicationInfo(AppInfo info) { in applyFromApplicationInfo() argument 201 applyIconAndLabel(info.iconBitmap, info); in applyFromApplicationInfo() 204 super.setTag(info); in applyFromApplicationInfo() [all …]
|
D | InfoDropTarget.java | 64 ItemInfo info, Launcher launcher, DropTargetResultCallback callback) { in startDetailsActivityForInfo() argument 65 return startDetailsActivityForInfo(info, launcher, callback, null, null); in startDetailsActivityForInfo() 68 public static boolean startDetailsActivityForInfo(ItemInfo info, Launcher launcher, in startDetailsActivityForInfo() argument 72 if (info instanceof AppInfo) { in startDetailsActivityForInfo() 73 componentName = ((AppInfo) info).componentName; in startDetailsActivityForInfo() 74 } else if (info instanceof ShortcutInfo) { in startDetailsActivityForInfo() 75 componentName = ((ShortcutInfo) info).intent.getComponent(); in startDetailsActivityForInfo() 76 } else if (info instanceof PendingAddItemInfo) { in startDetailsActivityForInfo() 77 componentName = ((PendingAddItemInfo) info).componentName; in startDetailsActivityForInfo() 78 } else if (info instanceof LauncherAppWidgetInfo) { in startDetailsActivityForInfo() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppService.java | 616 BluetoothOppShareInfo info = new BluetoothOppShareInfo( in insertShare() local 634 Log.v(TAG, "ID : " + info.mId); in insertShare() 636 Log.v(TAG, "URI : " + info.mUri); in insertShare() 637 Log.v(TAG, "HINT : " + info.mHint); in insertShare() 638 Log.v(TAG, "FILENAME: " + info.mFilename); in insertShare() 639 Log.v(TAG, "MIMETYPE: " + info.mMimetype); in insertShare() 640 Log.v(TAG, "DIRECTION: " + info.mDirection); in insertShare() 641 Log.v(TAG, "DESTINAT: " + info.mDestination); in insertShare() 642 Log.v(TAG, "VISIBILI: " + info.mVisibility); in insertShare() 643 Log.v(TAG, "CONFIRM : " + info.mConfirm); in insertShare() [all …]
|
D | BluetoothOppUtility.java | 74 BluetoothOppTransferInfo info = new BluetoothOppTransferInfo(); in queryRecord() local 78 fillRecord(context, cursor, info); in queryRecord() 82 info = null; in queryRecord() 85 return info; in queryRecord() 88 public static void fillRecord(Context context, Cursor cursor, BluetoothOppTransferInfo info) { in fillRecord() argument 90 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)); in fillRecord() 91 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); in fillRecord() 92 info.mDirection = cursor.getInt(cursor in fillRecord() 94 info.mTotalBytes = cursor.getLong(cursor in fillRecord() 96 info.mCurrentBytes = cursor.getLong(cursor in fillRecord() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadInfo.java | 65 public void updateFromDatabase(DownloadInfo info) { in updateFromDatabase() argument 66 info.mId = getLong(Downloads.Impl._ID); in updateFromDatabase() 67 info.mUri = getString(Downloads.Impl.COLUMN_URI); in updateFromDatabase() 68 info.mNoIntegrity = getInt(Downloads.Impl.COLUMN_NO_INTEGRITY) == 1; in updateFromDatabase() 69 info.mHint = getString(Downloads.Impl.COLUMN_FILE_NAME_HINT); in updateFromDatabase() 70 info.mFileName = getString(Downloads.Impl._DATA); in updateFromDatabase() 71 info.mMimeType = Intent.normalizeMimeType(getString(Downloads.Impl.COLUMN_MIME_TYPE)); in updateFromDatabase() 72 info.mDestination = getInt(Downloads.Impl.COLUMN_DESTINATION); in updateFromDatabase() 73 info.mVisibility = getInt(Downloads.Impl.COLUMN_VISIBILITY); in updateFromDatabase() 74 info.mStatus = getInt(Downloads.Impl.COLUMN_STATUS); in updateFromDatabase() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | AlbumSetDataLoader.java | 266 UpdateInfo info = new UpdateInfo(); in call() 267 info.version = mSourceVersion; in call() 268 info.index = index; in call() 269 info.size = mSize; in call() 270 return info; in call() 277 public UpdateContent(UpdateInfo info) { in UpdateContent() argument 278 mUpdateInfo = info; in UpdateContent() 286 UpdateInfo info = mUpdateInfo; in call() 287 mSourceVersion = info.version; in call() 288 if (mSize != info.size) { in call() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
D | ContactInfoHelper.java | 185 ContactInfo info = new ContactInfo(); in getContactInfo() local 186 info.lookupUri = UriUtils.parseUriOrNull(c.getString(CallLogQuery.CACHED_LOOKUP_URI)); in getContactInfo() 187 info.name = c.getString(CallLogQuery.CACHED_NAME); in getContactInfo() 188 info.type = c.getInt(CallLogQuery.CACHED_NUMBER_TYPE); in getContactInfo() 189 info.label = c.getString(CallLogQuery.CACHED_NUMBER_LABEL); in getContactInfo() 193 info.number = in getContactInfo() 196 info.normalizedNumber = c.getString(CallLogQuery.CACHED_NORMALIZED_NUMBER); in getContactInfo() 197 info.photoId = c.getLong(CallLogQuery.CACHED_PHOTO_ID); in getContactInfo() 198 info.photoUri = in getContactInfo() 201 info.formattedNumber = c.getString(CallLogQuery.CACHED_FORMATTED_NUMBER); in getContactInfo() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | CallerInfo.java | 198 CallerInfo info = new CallerInfo(); in getCallerInfo() local 199 info.photoResource = 0; in getCallerInfo() 200 info.phoneLabel = null; in getCallerInfo() 201 info.numberType = 0; in getCallerInfo() 202 info.numberLabel = null; in getCallerInfo() 203 info.cachedPhoto = null; in getCallerInfo() 204 info.isCachedPhotoCurrent = false; in getCallerInfo() 205 info.contactExists = false; in getCallerInfo() 206 info.userType = ContactsUtils.USER_TYPE_CURRENT; in getCallerInfo() 222 info.name = cursor.getString(columnIndex); in getCallerInfo() [all …]
|
D | ExternalCallNotifier.java | 90 NotificationInfo info = new NotificationInfo(call, mNextUniqueNotificationId++); in onExternalCallAdded() local 91 mNotifications.put(call, info); in onExternalCallAdded() 93 showNotifcation(info); in onExternalCallAdded() 129 for (NotificationInfo info : mNotifications.values()) { in pullExternalCall() 130 if (info.getNotificationId() == notificationId in pullExternalCall() 131 && CallCompat.canPullExternalCall(info.getCall())) { in pullExternalCall() 132 info.getCall().pullExternalCall(); in pullExternalCall() 142 private void showNotifcation(final NotificationInfo info) { in showNotifcation() argument 152 info.getCall(), in showNotifcation() 166 if (mNotifications.containsKey(info.getCall())) { in showNotifcation() [all …]
|
D | CallerInfoUtils.java | 62 CallerInfo info = buildCallerInfo(context, call); in getCallerInfoForCall() local 66 if (info.numberPresentation == TelecomManager.PRESENTATION_ALLOWED) { in getCallerInfoForCall() 74 CallerInfoAsyncQuery.startQuery(QUERY_TOKEN, context, info, listener, cookie); in getCallerInfoForCall() 82 return info; in getCallerInfoForCall() 86 CallerInfo info = new CallerInfo(); in buildCallerInfo() local 90 info.cnapName = call.getCnapName(); in buildCallerInfo() 91 info.name = info.cnapName; in buildCallerInfo() 92 info.numberPresentation = call.getNumberPresentation(); in buildCallerInfo() 93 info.namePresentation = call.getCnapNamePresentation(); in buildCallerInfo() 94 info.callSubject = call.getCallSubject(); in buildCallerInfo() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | LauncherModel.java | 164 public void bindAppWidget(LauncherAppWidgetInfo info); in bindAppWidget() argument 727 for (ItemInfo info: sBgItemsIdMap.values()) { in deleteItemFromDatabase() 728 if (info.container == item.id) { in deleteItemFromDatabase() 732 "contains items (" + info + ")"; in deleteItemFromDatabase() 758 static void deleteFolderContentsFromDatabase(Context context, final FolderInfo info) { in deleteFolderContentsFromDatabase() argument 763 cr.delete(LauncherSettings.Favorites.getContentUri(info.id, false), null, null); in deleteFolderContentsFromDatabase() 766 sBgItemsIdMap.remove(info.id); in deleteFolderContentsFromDatabase() 767 sBgFolders.remove(info.id); in deleteFolderContentsFromDatabase() 768 sBgDbIconCache.remove(info); in deleteFolderContentsFromDatabase() 769 sBgWorkspaceItems.remove(info); in deleteFolderContentsFromDatabase() [all …]
|
D | AllAppsList.java | 60 public void add(ApplicationInfo info) { in add() argument 61 if (findActivity(data, info.componentName, info.user)) { in add() 64 data.add(info); in add() 65 added.add(info); in add() 93 for (LauncherActivityInfo info : matches) { in addPackage() 94 add(new ApplicationInfo(info, user, mIconCache, null)); in addPackage() 104 ApplicationInfo info = data.get(i); in removePackage() local 105 final ComponentName component = info.intent.getComponent(); in removePackage() 106 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage() 107 removed.add(info); in removePackage() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/app/filterednumber/ |
D | NumbersAdapter.java | 68 ContactInfo info = mContactInfoHelper.lookupNumber(number, countryIso); in updateView() local 69 if (info == null) { in updateView() 70 info = new ContactInfo(); in updateView() 71 info.number = number; in updateView() 73 final CharSequence locationOrType = getNumberTypeOrLocation(info); in updateView() 74 final String displayNumber = getDisplayNumber(info); in updateView() 79 if (!TextUtils.isEmpty(info.name)) { in updateView() 80 nameForDefaultImage = info.name; in updateView() 81 callerName.setText(info.name); in updateView() 93 loadContactPhoto(info, nameForDefaultImage, quickContactBadge); in updateView() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | AppFocusService.java | 70 ClientInfo info = (ClientInfo) mAllChangeClients.getBinderInterface(listener); in registerFocusListener() local 71 if (info == null) { in registerFocusListener() 72 info = new ClientInfo(mAllChangeClients, listener, Binder.getCallingUid(), in registerFocusListener() 74 mAllChangeClients.addBinderInterface(info); in registerFocusListener() 76 info.addAppType(appType); in registerFocusListener() 84 ClientInfo info = (ClientInfo) mAllChangeClients.getBinderInterface(listener); in unregisterFocusListener() local 85 if (info == null) { in unregisterFocusListener() 88 info.removeAppType(appType); in unregisterFocusListener() 89 if (info.getAppTypes().isEmpty()) { in unregisterFocusListener() 105 OwnershipClientInfo info = in isOwningFocus() local [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | CarPackageManagerService.java | 161 AppBlockingPackageInfo info = searchFromBlacklistsLocked(packageName); in isActivityAllowedWhileDriving() local 162 if (info != null) { in isActivityAllowedWhileDriving() 179 AppBlockingPackageInfo info = searchFromBlacklistsLocked(packageName); in isServiceAllowedWhileDriving() local 180 if (info != null) { in isServiceAllowedWhileDriving() 183 info = searchFromWhitelistsLocked(packageName); in isServiceAllowedWhileDriving() 184 if (info != null) { in isServiceAllowedWhileDriving() 196 StackInfo info = mSystemActivityMonitoringService.getFocusedStackForTopActivity( in isActivityBackedBySafeActivity() local 198 if (info == null) { // not top in focused stack in isActivityBackedBySafeActivity() 201 if (info.taskNames.length <= 1) { // nothing below this. in isActivityBackedBySafeActivity() 205 info.taskNames[info.taskNames.length - 2]); in isActivityBackedBySafeActivity() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | InstalledAppDetailsTest.java | 152 final ApplicationInfo info = new ApplicationInfo(); in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() local 153 info.enabled = true; in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() 155 appEntry.info = info; in shouldShowUninstallForAll_installForOneOtherUserOnly_shouldReturnTrue() 168 final ApplicationInfo info = new ApplicationInfo(); in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() local 169 info.flags = ApplicationInfo.FLAG_INSTALLED; in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() 170 info.enabled = true; in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() 172 appEntry.info = info; in shouldShowUninstallForAll_installForSelfOnly_shouldReturnFalse() 253 final ApplicationInfo info = new ApplicationInfo(); in instantApps_noUninstallForAllButton() local 254 info.enabled = true; in instantApps_noUninstallForAllButton() 256 appEntry.info = info; in instantApps_noUninstallForAllButton() [all …]
|