/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ScanFilterQueue.java | 65 Entry entry = new Entry(); in addDeviceAddress() local 66 entry.type = TYPE_DEVICE_ADDRESS; in addDeviceAddress() 67 entry.address = address; in addDeviceAddress() 68 entry.addr_type = type; in addDeviceAddress() 69 mEntries.add(entry); in addDeviceAddress() 73 Entry entry = new Entry(); in addServiceChanged() local 74 entry.type = TYPE_SERVICE_DATA_CHANGED; in addServiceChanged() 75 mEntries.add(entry); in addServiceChanged() 79 Entry entry = new Entry(); in addUuid() local 80 entry.type = TYPE_SERVICE_UUID; in addUuid() [all …]
|
D | AdvertiseManager.java | 128 Map.Entry<IBinder, AdvertiserInfo> entry = null; in findAdvertiser() local 131 entry = e; in findAdvertiser() 135 return entry; in findAdvertiser() 146 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(regId); in onAdvertisingSetStarted() local 148 if (entry == null) { in onAdvertisingSetStarted() 155 IAdvertisingSetCallback callback = entry.getValue().callback; in onAdvertisingSetStarted() 157 entry.setValue( in onAdvertisingSetStarted() 158 new AdvertiserInfo(advertiserId, entry.getValue().deathRecipient, callback)); in onAdvertisingSetStarted() 160 IBinder binder = entry.getKey(); in onAdvertisingSetStarted() 161 binder.unlinkToDeath(entry.getValue().deathRecipient, 0); in onAdvertisingSetStarted() [all …]
|
D | ContextMap.java | 203 App entry = i.next(); in remove() local 204 if (entry.uuid.equals(uuid)) { in remove() 205 entry.unlinkToDeath(); in remove() 206 entry.appScanStats.isRegistered = false; in remove() 221 App entry = i.next(); in remove() local 222 if (entry.id == id) { in remove() 224 entry.unlinkToDeath(); in remove() 225 entry.appScanStats.isRegistered = false; in remove() 238 App entry = i.next(); in getAllAppsIds() local 239 appIds.add(entry.id); in getAllAppsIds() [all …]
|
D | HandleMap.java | 116 for (Entry entry : mEntries) { in setStarted() 117 if (entry.type != TYPE_SERVICE || entry.serverIf != serverIf in setStarted() 118 || entry.handle != handle) { in setStarted() 122 entry.started = started; in setStarted() 128 for (Entry entry : mEntries) { in getByHandle() 129 if (entry.handle == handle) { in getByHandle() 130 return entry; in getByHandle() 138 for (Entry entry : mEntries) { in checkServiceExists() 139 if (entry.type == TYPE_SERVICE && entry.handle == handle && entry.uuid.equals(uuid)) { in checkServiceExists() 148 Entry entry = it.next(); in deleteService() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumSetSlidingWindow.java | 212 AlbumSetEntry entry = mData[slotIndex % mData.length]; in requestImagesInSlot() 213 if (entry.coverLoader != null) entry.coverLoader.startLoad(); in requestImagesInSlot() 214 if (entry.labelLoader != null) entry.labelLoader.startLoad(); in requestImagesInSlot() 219 AlbumSetEntry entry = mData[slotIndex % mData.length]; in cancelImagesInSlot() 220 if (entry.coverLoader != null) entry.coverLoader.cancelLoad(); in cancelImagesInSlot() 221 if (entry.labelLoader != null) entry.labelLoader.cancelLoad(); in cancelImagesInSlot() 231 AlbumSetEntry entry = mData[slotIndex % mData.length]; in freeSlotContent() local 232 if (entry.coverLoader != null) entry.coverLoader.recycle(); in freeSlotContent() 233 if (entry.labelLoader != null) entry.labelLoader.recycle(); in freeSlotContent() 234 if (entry.labelTexture != null) entry.labelTexture.recycle(); in freeSlotContent() [all …]
|
D | AlbumSlidingWindow.java | 81 public PanoSupportListener (AlbumEntry entry) { in PanoSupportListener() argument 82 mEntry = entry; in PanoSupportListener() 183 AlbumEntry entry = mData[index % mData.length]; in uploadBgTextureInSlot() local 184 if (entry.bitmapTexture != null) { in uploadBgTextureInSlot() 185 mTileUploader.addTexture(entry.bitmapTexture); in uploadBgTextureInSlot() 196 AlbumEntry entry = mData[i % mData.length]; in updateTextureUploadQueue() local 197 if (entry.bitmapTexture != null) { in updateTextureUploadQueue() 198 mTileUploader.addTexture(entry.bitmapTexture); in updateTextureUploadQueue() 228 AlbumEntry entry = mData[slotIndex % mData.length]; in requestSlotImage() 229 if (entry.content != null || entry.item == null) return false; in requestSlotImage() [all …]
|
D | PhotoFallbackEffect.java | 74 Entry entry = mList.get(i); in getEntry() local 75 if (entry.path == path) return entry; in getEntry() 83 Entry entry = mList.get(i); in draw() local 84 if (entry.index < 0) continue; in draw() 85 entry.dest = mPositionProvider.getPosition(entry.index); in draw() 86 drawEntry(canvas, entry); in draw() 91 private void drawEntry(GLCanvas canvas, Entry entry) { in drawEntry() argument 92 if (!entry.texture.isLoaded()) return; in drawEntry() 94 int w = entry.texture.getWidth(); in drawEntry() 95 int h = entry.texture.getHeight(); in drawEntry() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioFocus.java | 209 for (FocusEntry entry : mFocusHolders.values()) { in evaluateFocusRequest() 210 Log.d(TAG, "Evaluating focus holder: " + entry.getClientId()); in evaluateFocusRequest() 218 (entry.mAfi.getGainRequest() == in evaluateFocusRequest() 225 if (afi.getClientId().equals(entry.mAfi.getClientId())) { in evaluateFocusRequest() 226 if (entry.mAudioContext == requestedContext) { in evaluateFocusRequest() 231 replacedCurrentEntry = entry; in evaluateFocusRequest() 235 Log.e(TAG, "Client " + entry.getClientId() + " has already requested focus " in evaluateFocusRequest() 236 + "for " + entry.mAfi.getAttributes().usageToString() + " - cannot " in evaluateFocusRequest() 244 switch (sInteractionMatrix[entry.mAudioContext][requestedContext]) { in evaluateFocusRequest() 250 losers.add(entry); in evaluateFocusRequest() [all …]
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | BaseIconCache.java | 258 CacheEntry entry = null; in addIconToDBAndMemCache() local 260 entry = mCache.get(key); in addIconToDBAndMemCache() 262 if (entry == null || entry.icon == null || entry.isLowRes()) { in addIconToDBAndMemCache() 263 entry = null; in addIconToDBAndMemCache() 266 if (entry == null) { in addIconToDBAndMemCache() 267 entry = new CacheEntry(); in addIconToDBAndMemCache() 268 cachingLogic.loadIcon(mContext, object, entry); in addIconToDBAndMemCache() 273 if (entry.icon == null) return; in addIconToDBAndMemCache() 274 entry.title = cachingLogic.getLabel(object); in addIconToDBAndMemCache() 275 entry.contentDescription = mPackageManager.getUserBadgedLabel(entry.title, user); in addIconToDBAndMemCache() [all …]
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | CarStatsService.java | 55 entry -> String.format(Locale.US, 57 entry.getUid(), entry.getPackageName(), 58 entry.getConnectionStateCount(ConnectionState.CONNECTING), 59 entry.getConnectionStateCount(ConnectionState.CONNECTED), 60 entry.getConnectionStateCount(ConnectionState.DISCONNECTED), 61 entry.getConnectionStateCount(ConnectionState.TERMINATED), 62 entry.getConnectionStateCount(ConnectionState.CONNECTION_ERROR)); 69 entry -> String.format( 71 entry.getUid(), 72 entry.getLayerType(), entry.getLayerChannel(), entry.getLayerVersion(), [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PhotoDataAdapter.java | 296 ImageEntry entry = mImageCache.get(path); in updateScreenNail() local 299 if (entry == null || entry.screenNailTask != future) { in updateScreenNail() 304 entry.screenNailTask = null; in updateScreenNail() 307 if (entry.screenNail instanceof TiledScreenNail) { in updateScreenNail() 308 TiledScreenNail original = (TiledScreenNail) entry.screenNail; in updateScreenNail() 313 entry.failToLoad = true; in updateScreenNail() 315 entry.failToLoad = false; in updateScreenNail() 316 entry.screenNail = screenNail; in updateScreenNail() 321 if (i == 0) updateTileProvider(entry); in updateScreenNail() 331 ImageEntry entry = mImageCache.get(path); in updateFullImage() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | Profile.java | 109 for (WatchEntry entry : mList) { in processList() 110 if (currentTime > entry.wakeTime) { in processList() 111 entry.wakeTime += entry.cycleTime; in processList() 112 Thread thread = entry.thread; in processList() 113 sampleStack(entry); in processList() 116 if (entry.wakeTime > nextWakeTime) { in processList() 117 nextWakeTime = entry.wakeTime; in processList() 125 private void sampleStack(WatchEntry entry) { in sampleStack() argument 126 Thread thread = entry.thread; in sampleStack() 132 if (entry.isHolding) { in sampleStack() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
D | Archive.java | 96 public static String getEntryPath(ArchiveEntry entry) { in getEntryPath() argument 97 if (entry instanceof ZipArchiveEntry) { in getEntryPath() 103 Preconditions.checkArgument(entry.isDirectory() == entry.getName().endsWith("/"), in getEntryPath() 106 if (entry.getName().startsWith("/")) { in getEntryPath() 107 return entry.getName(); in getEntryPath() 109 return "/" + entry.getName(); in getEntryPath() 150 for (final ArchiveEntry entry : parentList) { in queryChildDocuments() 151 addCursorRow(result, entry); in queryChildDocuments() 168 final ArchiveEntry entry = mEntries.get(parsedId.mPath); in getDocumentType() local 169 if (entry == null) { in getDocumentType() [all …]
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationEntryTest.java | 119 NotificationEntry entry = new NotificationEntry( in testHasPerson() local 121 assertTrue(entry.involvesPeople()); in testHasPerson() 128 NotificationEntry entry = new NotificationEntry( in testNotPerson() local 130 assertFalse(entry.involvesPeople()); in testNotPerson() 137 NotificationEntry entry = new NotificationEntry( in testHasPerson_matchesDefaultSmsApp() local 139 assertTrue(entry.involvesPeople()); in testHasPerson_matchesDefaultSmsApp() 146 NotificationEntry entry = new NotificationEntry( in testHasPerson_doesntMatchDefaultSmsApp() local 148 assertFalse(entry.involvesPeople()); in testHasPerson_doesntMatchDefaultSmsApp() 158 NotificationEntry entry = new NotificationEntry( in testIsInboxStyle() local 160 assertTrue(entry.hasStyle(Notification.InboxStyle.class)); in testIsInboxStyle() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | ExpandingEntryCardView.java | 447 final View entry = entriesViewGroup.get(0); in formatEntryIfFirst() local 448 entry.setPaddingRelative(entry.getPaddingStart(), in formatEntryIfFirst() 453 entry.getPaddingEnd(), in formatEntryIfFirst() 454 entry.getPaddingBottom()); in formatEntryIfFirst() 458 private View generateSeparator(View entry) { in generateSeparator() argument 470 ImageView entryIcon = (ImageView) entry.findViewById(R.id.icon); in generateSeparator() 536 final Entry entry = entryList.get(j); in inflateAllEntries() local 539 if (entry.getIcon() == null) { in inflateAllEntries() 546 viewList.add(createEntryView(layoutInflater, entry, iconVisibility)); in inflateAllEntries() 602 for (Entry entry : entryList) { in applyColor() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 101 AppEntry entry = createAppEntry(packageInfo); in androidPackagesIgnored() local 103 mBridge.loadExtraInfo(Collections.singletonList(entry)); in androidPackagesIgnored() 105 assertThat(entry.extraInfo).isNull(); in androidPackagesIgnored() 114 AppEntry entry = createAppEntry(packageInfo); in selfPackageIgnored() local 116 mBridge.loadExtraInfo(Collections.singletonList(entry)); in selfPackageIgnored() 118 assertThat(entry.extraInfo).isNull(); in selfPackageIgnored() 130 AppEntry entry = createAppEntry(packageInfo); in packagesNotRequestingPermissionIgnored() local 132 mBridge.loadExtraInfo(Collections.singletonList(entry)); in packagesNotRequestingPermissionIgnored() 134 assertThat(entry.extraInfo).isNull(); in packagesNotRequestingPermissionIgnored() 145 AppEntry entry = createAppEntry(packageInfo); in unavailablePackageIgnored() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ViewCache.java | 36 CacheEntry entry = mCache.get(layoutId); in getView() local 37 if (entry == null) { in getView() 38 entry = new CacheEntry(1); in getView() 39 mCache.put(layoutId, entry); in getView() 42 if (entry.mCurrentSize > 0) { in getView() 43 entry.mCurrentSize --; in getView() 44 T result = (T) entry.mViews[entry.mCurrentSize]; in getView() 45 entry.mViews[entry.mCurrentSize] = null; in getView() 53 CacheEntry entry = mCache.get(layoutId); in recycleView() local 54 if (entry != null && entry.mCurrentSize < entry.mMaxSize) { in recycleView() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridSizeMigrationTask.java | 156 for (DbEntry entry : items) { 157 if (entry.weight < toRemove.weight) { 158 toRemove = entry; 168 for (DbEntry entry : items) { 169 if (entry.screenId != newScreenId) { 170 entry.screenId = newScreenId; 174 entry.cellX = newScreenId; 175 entry.cellY = 0; 177 update(entry); 622 DbEntry entry = new DbEntry(); [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateNotificationBridge.java | 84 for (AppEntry entry : apps) { in loadAllExtraInfo() 86 map.get(getKey(UserHandle.getUserId(entry.info.uid), entry.info.packageName)); in loadAllExtraInfo() 88 addBlockStatus(entry, stats); in loadAllExtraInfo() 89 entry.extraInfo = stats; in loadAllExtraInfo() 94 protected void updateExtraInfo(AppEntry entry, String pkg, int uid) { in updateExtraInfo() argument 96 UserHandle.getUserId(entry.info.uid), entry.info.packageName); in updateExtraInfo() 98 addBlockStatus(entry, stats); in updateExtraInfo() 99 entry.extraInfo = stats; in updateExtraInfo() 122 private void addBlockStatus(AppEntry entry, NotificationsSentState stats) { in addBlockStatus() argument 124 stats.blocked = mBackend.getNotificationsBanned(entry.info.packageName, entry.info.uid); in addBlockStatus() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | AppStateNotificationBridge.java | 84 for (AppEntry entry : apps) { in loadAllExtraInfo() 86 map.get(getKey(UserHandle.getUserId(entry.info.uid), entry.info.packageName)); in loadAllExtraInfo() 88 addBlockStatus(entry, stats); in loadAllExtraInfo() 89 entry.extraInfo = stats; in loadAllExtraInfo() 94 protected void updateExtraInfo(AppEntry entry, String pkg, int uid) { in updateExtraInfo() argument 96 UserHandle.getUserId(entry.info.uid), entry.info.packageName); in updateExtraInfo() 98 addBlockStatus(entry, stats); in updateExtraInfo() 99 entry.extraInfo = stats; in updateExtraInfo() 120 private void addBlockStatus(AppEntry entry, NotificationsSentState stats) { in addBlockStatus() argument 122 stats.blocked = mBackend.getNotificationsBanned(entry.info.packageName, entry.info.uid); in addBlockStatus() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetDatabaseHelper.java | 118 Entry entry = new Entry(); in saveData() local 119 entry.type = TYPE_SINGLE_PHOTO; in saveData() 120 entry.widgetId = cursor.getInt(0); in saveData() 121 entry.imageData = cursor.getBlob(1); in saveData() 122 data.add(entry); in saveData() 134 Entry entry = new Entry(); in saveData() local 135 entry.type = TYPE_SINGLE_PHOTO; in saveData() 136 entry.widgetId = cursor.getInt(0); in saveData() 137 entry.imageData = cursor.getBlob(1); in saveData() 138 entry.imageUri = cursor.getString(2); in saveData() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/speeddial/database/ |
D | SpeedDialEntryDatabaseHelper.java | 138 SpeedDialEntry entry = in getAllEntries() local 146 entries.add(entry); in getAllEntries() 173 for (SpeedDialEntry entry : entries) { in insert() 174 Assert.checkArgument(entry.id() == null); in insert() 175 long id = writeableDatabase.insert(TABLE_NAME, null, buildContentValuesWithoutId(entry)); in insert() 183 insertedEntriesToIdsMap.put(entry, id); in insert() 189 public long insert(SpeedDialEntry entry) { in insert() argument 192 updateRowId = db.insert(TABLE_NAME, null, buildContentValuesWithoutId(entry)); in insert() 219 for (SpeedDialEntry entry : entries) { in update() 223 buildContentValuesWithId(entry), in update() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 104 FileEntry entry = new FileEntry(); in store() local 105 entry.hashCode = Utils.crc64Long(downloadUrl); in store() 106 entry.contentUrl = downloadUrl; in store() 107 entry.filename = file.getName(); in store() 108 entry.size = file.length(); in store() 109 entry.lastAccess = System.currentTimeMillis(); in store() 110 if (entry.size >= mCapacity) { in store() 112 throw new IllegalArgumentException("file too large: " + entry.size); in store() 118 entry.filename = original.filename; in store() 119 entry.size = original.size; in store() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.cpp | 158 const Entry entry = readEntry(entryIndex); in iterateNext() local 159 if (entry.isBitmapEntry()) { in iterateNext() 161 iterationState->emplace_back(popCount(entry.getBitmap()), entry.getTableIndex()); in iterateNext() 162 } else if (entry.isValidTerminalEntry()) { in iterateNext() 164 *outKey = entry.getKey(); in iterateNext() 166 if (!entry.hasTerminalLink()) { in iterateNext() 167 return Result(entry.getValue(), true, INVALID_INDEX); in iterateNext() 169 const int valueEntryIndex = entry.getValueEntryIndex(); in iterateNext() 258 const Entry entry = readEntry(entryIndex); in getTerminalEntryIndex() local 259 if (entry.isBitmapEntry()) { in getTerminalEntryIndex() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
D | CallDetailsEntryViewHolder.java | 102 CallDetailsEntry entry, in setCallDetails() argument 105 int callType = entry.getCallType(); in setCallDetails() 106 boolean isVideoCall = (entry.getFeatures() & Calls.FEATURES_VIDEO) == Calls.FEATURES_VIDEO; in setCallDetails() 108 (entry.getFeatures() & Calls.FEATURES_PULLED_EXTERNALLY) in setCallDetails() 110 boolean isDuoCall = entry.getIsDuoCall(); in setCallDetails() 113 && (entry.getFeatures() & Calls.FEATURES_RTT) == Calls.FEATURES_RTT; in setCallDetails() 120 (entry.getFeatures() & Calls.FEATURES_HD_CALL) == Calls.FEATURES_HD_CALL); in setCallDetails() 122 MotorolaUtils.shouldShowWifiIconInCallLog(context, entry.getFeatures())); in setCallDetails() 124 callTypeIcon.setShowRtt((entry.getFeatures() & Calls.FEATURES_RTT) == Calls.FEATURES_RTT); in setCallDetails() 129 callTime.setText(CallLogDates.formatDate(context, entry.getDate())); in setCallDetails() [all …]
|