Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 1034) sorted by relevance

12345678910>>...42

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DScanFilterQueue.java73 Entry entry = new Entry(); in addDeviceAddress() local
74 entry.type = TYPE_DEVICE_ADDRESS; in addDeviceAddress()
75 entry.address = address; in addDeviceAddress()
76 entry.addr_type = type; in addDeviceAddress()
77 entry.irk = irk; in addDeviceAddress()
78 mEntries.add(entry); in addDeviceAddress()
82 Entry entry = new Entry(); in addServiceChanged() local
83 entry.type = TYPE_SERVICE_DATA_CHANGED; in addServiceChanged()
84 mEntries.add(entry); in addServiceChanged()
88 Entry entry = new Entry(); in addUuid() local
[all …]
/packages/modules/Bluetooth/system/device/src/
Dinterop.cc204 static bool interop_database_remove_(interop_db_entry_t* entry);
205 static bool interop_database_match(interop_db_entry_t* entry,
406 interop_db_entry_t* entry = (interop_db_entry_t*)data; in interop_free_entry_() local
407 osi_free(entry); in interop_free_entry_()
656 static bool interop_database_match(interop_db_entry_t* entry, in interop_database_match() argument
659 log::assert_that(entry != nullptr, "assert failed: entry != nullptr"); in interop_database_match()
673 if (entry->bl_type != db_entry->bl_type) { in interop_database_match()
680 if (entry->bl_entry_type != db_entry->bl_entry_type) { in interop_database_match()
688 interop_addr_entry_t* src = &entry->entry_type.addr_entry; in interop_database_match()
700 interop_name_entry_t* src = &entry->entry_type.name_entry; in interop_database_match()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSetSlidingWindow.java212 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 …]
DAlbumSlidingWindow.java81 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 …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntryTest.java104 final BatteryDiffEntry entry = in testSetTotalConsumePower_returnExpectedResult() local
124 entry.setTotalConsumePower(100.0); in testSetTotalConsumePower_returnExpectedResult()
126 assertThat(entry.getPercentage()).isEqualTo(22.0); in testSetTotalConsumePower_returnExpectedResult()
131 final BatteryDiffEntry entry = in testSetTotalConsumePower_setZeroValue_returnsZeroValue() local
151 entry.setTotalConsumePower(0); in testSetTotalConsumePower_setZeroValue_returnsZeroValue()
153 assertThat(entry.getPercentage()).isEqualTo(0); in testSetTotalConsumePower_setZeroValue_returnsZeroValue()
210 final BatteryDiffEntry entry = createBatteryDiffEntry(10, batteryHistEntry); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult() local
212 assertThat(entry.getAppLabel()).isEqualTo(expectedName); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
213 assertThat(entry.getAppIconId()).isEqualTo(R.drawable.ic_settings_aod); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
217 BatteryDiffEntry.sResourceCache.get(entry.getKey()); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationUtil.java194 + dstWorkspaceItems.stream().filter(entry -> in migrate()
195 toBeRemoved.contains(entry.id)).map(DbEntry::toString).collect( in migrate()
260 src.forEach(entry -> { in calcDiff()
261 if (!dest.contains(entry)) { in calcDiff()
262 toBeAdded.add(entry); in calcDiff()
265 dest.forEach(entry -> { in calcDiff()
266 if (!src.contains(entry)) { in calcDiff()
267 toBeRemoved.add(entry.id); in calcDiff()
268 if (entry.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in calcDiff()
269 entry.mFolderItems.values().forEach(ids -> ids.forEach(toBeRemoved::add)); in calcDiff()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DRoutingTableParser.java52 String getEntryStr(byte[] entry); in getEntryStr() argument
56 new GetEntryStr() { public String getEntryStr(byte[] entry) {
57 return getTechStr(entry); } },
58 new GetEntryStr() { public String getEntryStr(byte[] entry) {
59 return getProtoStr(entry); } },
60 new GetEntryStr() { public String getEntryStr(byte[] entry) {
61 return getAidStr(entry); } },
62 new GetEntryStr() { public String getEntryStr(byte[] entry) {
63 return getSystemCodeStr(entry); } },
134 private String formatRow(String entry, String eeId, in formatRow() argument
[all …]
/packages/services/Car/service/src/com/android/car/stats/
DCarStatsService.java56 entry -> String.format(Locale.US,
58 entry.getUid(), entry.getPackageName(),
59 entry.getConnectionStateCount(ConnectionState.CONNECTING),
60 entry.getConnectionStateCount(ConnectionState.CONNECTED),
61 entry.getConnectionStateCount(ConnectionState.DISCONNECTED),
62 entry.getConnectionStateCount(ConnectionState.TERMINATED),
63 entry.getConnectionStateCount(ConnectionState.CONNECTION_ERROR));
70 entry -> String.format(
72 entry.getUid(),
73 entry.getLayerType(), entry.getLayerChannel(), entry.getLayerVersion(),
[all …]
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java251 CacheEntry entry = null; in addIconToDBAndMemCache() local
253 entry = mCache.get(key); in addIconToDBAndMemCache()
255 if (entry == null || entry.bitmap.isNullOrLowRes()) { in addIconToDBAndMemCache()
256 entry = null; in addIconToDBAndMemCache()
259 if (entry == null) { in addIconToDBAndMemCache()
260 entry = new CacheEntry(); in addIconToDBAndMemCache()
261 entry.bitmap = cachingLogic.loadIcon(mContext, object); in addIconToDBAndMemCache()
266 if (entry.bitmap.isNullOrLowRes()) return; in addIconToDBAndMemCache()
267 entry.title = cachingLogic.getLabel(object); in addIconToDBAndMemCache()
268 entry.contentDescription = mPackageManager.getUserBadgedLabel(entry.title, user); in addIconToDBAndMemCache()
[all …]
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStats.java602 NetworkStats.Entry entry = null; in clone() local
604 entry = getValues(i, entry); in clone()
605 clone.insertEntry(entry); in clone()
663 public NetworkStats insertEntry(Entry entry) { in insertEntry() argument
681 setValues(size, entry); in insertEntry()
687 private void setValues(int i, Entry entry) { in setValues() argument
688 iface[i] = entry.iface; in setValues()
689 uid[i] = entry.uid; in setValues()
690 set[i] = entry.set; in setValues()
691 tag[i] = entry.tag; in setValues()
[all …]
DNetworkStatsHistory.java230 Entry entry = (Entry) o; in equals()
231 return bucketStart == entry.bucketStart in equals()
232 && activeTime == entry.activeTime && rxBytes == entry.rxBytes in equals()
233 && rxPackets == entry.rxPackets && txBytes == entry.txBytes in equals()
234 && txPackets == entry.txPackets && operations == entry.operations; in equals()
480 final Entry entry = recycle != null ? recycle : new Entry(); in getValues() local
481 entry.bucketStart = bucketStart[i]; in getValues()
482 entry.bucketDuration = bucketDuration; in getValues()
483 entry.activeTime = getLong(activeTime, i, UNKNOWN); in getValues()
484 entry.rxBytes = getLong(rxBytes, i, UNKNOWN); in getValues()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DSafetyEntryView.kt61 entry: SafetyCenterEntry, in showEntry()
75 showEntryDetails(entry) in showEntry()
76 setupEntryClickListener(entry, launchTaskId, viewModel) in showEntry()
77 enableOrDisableEntry(entry) in showEntry()
78 setupIconActionButton(entry, launchTaskId, viewModel) in showEntry()
79 setContentDescription(entry, position == PositionInCardList.INSIDE_GROUP) in showEntry()
82 private fun showEntryDetails(entry: SafetyCenterEntry) { in showEntryDetails()
84 entry.id, in showEntryDetails()
85 entry.title, in showEntryDetails()
86 entry.summary, in showEntryDetails()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java109 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/Launcher3/src/com/android/launcher3/util/
DViewCache.java38 CacheEntry entry = mCache.get(layoutId); in getView() local
39 if (entry == null) { in getView()
40 entry = new CacheEntry(1); in getView()
41 mCache.put(layoutId, entry); in getView()
45 if (entry.mCurrentSize > 0) { in getView()
46 entry.mCurrentSize --; in getView()
47 result = (T) entry.mViews[entry.mCurrentSize]; in getView()
48 entry.mViews[entry.mCurrentSize] = null; in getView()
51 result.setTag(R.id.cache_entry_tag_id, entry); in getView()
57 CacheEntry entry = mCache.get(layoutId); in recycleView() local
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DRequest.java20 import static java.util.Map.entry;
250 entry(Opcodes.PLAY, SupportedOpcodes.PLAY),
251 entry(Opcodes.PAUSE, SupportedOpcodes.PAUSE),
252 entry(Opcodes.FAST_REWIND, SupportedOpcodes.FAST_REWIND),
253 entry(Opcodes.FAST_FORWARD, SupportedOpcodes.FAST_FORWARD),
254 entry(Opcodes.STOP, SupportedOpcodes.STOP),
255 entry(Opcodes.MOVE_RELATIVE, SupportedOpcodes.MOVE_RELATIVE),
256 entry(Opcodes.PREVIOUS_SEGMENT, SupportedOpcodes.PREVIOUS_SEGMENT),
257 entry(Opcodes.NEXT_SEGMENT, SupportedOpcodes.NEXT_SEGMENT),
258 entry(Opcodes.FIRST_SEGMENT, SupportedOpcodes.FIRST_SEGMENT),
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DLogTest.cpp84 const LogEntry entry = functionName(); in TEST() local
85 EXPECT_EQ("functionName()", entry.toString()); in TEST()
89 const LogEntry entry = prettyFunctionName(); in TEST() local
90 EXPECT_EQ("prettyFunctionName()", entry.toString()); in TEST()
94 const LogEntry entry = AAA().functionName(); in TEST() local
95 EXPECT_EQ("functionName()", entry.toString()); in TEST()
99 const LogEntry entry = AAA().prettyFunctionName(); in TEST() local
100 EXPECT_EQ("AAA::prettyFunctionName()", entry.toString()); in TEST()
104 const LogEntry entry = AAA::BBB().functionName(); in TEST() local
105 EXPECT_EQ("functionName()", entry.toString()); in TEST()
[all …]
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/
DApplicationsState.java325 final ApplicationsState.AppEntry entry = mEntriesMap.get(userId).get(info.packageName); in doResumeIfNeededLocked() local
326 if (entry != null) { in doResumeIfNeededLocked()
327 entry.info = info; in doResumeIfNeededLocked()
471 ApplicationsState.AppEntry entry = mEntriesMap.get(userId).get(packageName); in getEntry() local
472 if (entry == null) { in getEntry()
483 entry = getEntryLocked(info); in getEntry()
487 return entry; in getEntry()
502 public void ensureIcon(ApplicationsState.AppEntry entry) { in ensureIcon() argument
503 if (entry.icon != null) { in ensureIcon()
506 synchronized (entry) { in ensureIcon()
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcRoutingTableParseTest.java65 byte[] entry = hexStrToByteArray("01"); in testParseValidTechnologyEntry()
66 byte[] rt = generateRoutingEntry(qualifier, type, eeId, pwrState, entry); in testParseValidTechnologyEntry()
69 int ret = mRoutingTableParser.getCommitStatus(type, entry); in testParseValidTechnologyEntry()
84 byte[] entry = hexStrToByteArray("0001"); in testParseInvalidTechnologyEntry()
85 byte[] rt = generateRoutingEntry(qualifier, type, eeId, pwrState, entry); in testParseInvalidTechnologyEntry()
88 int ret = mRoutingTableParser.getCommitStatus(type, entry); in testParseInvalidTechnologyEntry()
103 byte[] entry = hexStrToByteArray("04"); in testParseValidProtocolEntry()
104 byte[] rt = generateRoutingEntry(qualifier, type, eeId, pwrState, entry); in testParseValidProtocolEntry()
107 int ret = mRoutingTableParser.getCommitStatus(type, entry); in testParseValidProtocolEntry()
122 byte[] entry = hexStrToByteArray("0405"); in testParseInvalidProtocolEntry()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DHandleMap.java130 for (Entry entry : mEntries) { in setStarted()
131 if (entry.type != TYPE_SERVICE in setStarted()
132 || entry.serverIf != serverIf in setStarted()
133 || entry.handle != handle) { in setStarted()
137 entry.started = started; in setStarted()
143 for (Entry entry : mEntries) { in getByHandle()
144 if (entry.handle == handle) { in getByHandle()
145 return entry; in getByHandle()
153 for (Entry entry : mEntries) { in checkServiceExists()
154 if (entry.type == TYPE_SERVICE && entry.handle == handle && entry.uuid.equals(uuid)) { in checkServiceExists()
[all …]
DAdvertiseManager.java129 Map.Entry<IBinder, AdvertiserInfo> entry = null; in findAdvertiser() local
132 entry = e; in findAdvertiser()
136 return entry; in findAdvertiser()
150 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(regId); in onAdvertisingSetStarted() local
152 if (entry == null) { in onAdvertisingSetStarted()
159 IAdvertisingSetCallback callback = entry.getValue().callback; in onAdvertisingSetStarted()
161 entry.setValue( in onAdvertisingSetStarted()
162 new AdvertiserInfo(advertiserId, entry.getValue().deathRecipient, callback)); in onAdvertisingSetStarted()
166 IBinder binder = entry.getKey(); in onAdvertisingSetStarted()
167 binder.unlinkToDeath(entry.getValue().deathRecipient, 0); in onAdvertisingSetStarted()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java296 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/services/Car/tests/carservice_unit_test/src/android/car/oem/
DAudioFocusEntryUnitTest.java46 AudioFocusEntry entry = new AudioFocusEntry.Builder(TEST_AUDIO_FOCUS_INFO, in build() local
49 expectWithMessage("Audio focus info from builder").that(entry.getAudioFocusInfo()) in build()
51 expectWithMessage("Audio context from builder").that(entry.getAudioContextId()) in build()
53 expectWithMessage("Volume group id from builder").that(entry.getAudioVolumeGroupId()) in build()
55 expectWithMessage("Audio focus results from builder").that(entry.getAudioFocusResult()) in build()
63 AudioFocusEntry entry = createAndWriteEntryToParcel(parcel); in writeToParcel() local
66 .that(new AudioFocusEntry(parcel)).isEqualTo(entry); in writeToParcel()
73 AudioFocusEntry entry = createAndWriteEntryToParcel(parcel); in createFromParcel() local
76 .that(AudioFocusEntry.CREATOR.createFromParcel(parcel)).isEqualTo(entry); in createFromParcel()
83 AudioFocusEntry entry = new AudioFocusEntry.Builder(TEST_AUDIO_FOCUS_INFO, in setAudioFocusEntry() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeBypassingAppsPreferenceControllerTest.java93 ApplicationsState.AppEntry entry = mock(ApplicationsState.AppEntry.class); in testUpdateBypassingApps() local
94 entry.info = new ApplicationInfo(); in testUpdateBypassingApps()
95 entry.info.packageName = "test"; in testUpdateBypassingApps()
96 entry.label = "test"; in testUpdateBypassingApps()
97 entry.info.uid = 0; in testUpdateBypassingApps()
100 appEntries.add(entry); in testUpdateBypassingApps()
105 when(mBackend.getNotificationChannelsBypassingDnd(entry.info.packageName, in testUpdateBypassingApps()
106 entry.info.uid)).thenReturn(new ParceledListSlice<>(channelsBypassing)); in testUpdateBypassingApps()
113 assertThat(mController.getSummary().contains(entry.label)).isTrue(); in testUpdateBypassingApps()
164 ApplicationsState.AppEntry entry = mock(ApplicationsState.AppEntry.class); in testUpdateBypassingApps_conversation() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DScanFilterQueueTest.java82 for (ScanFilterQueue.Entry entry : entries) { in scanFilterQueueParams()
83 switch (entry.type) { in scanFilterQueueParams()
85 assertThat(entry.address).isEqualTo(address); in scanFilterQueueParams()
86 assertThat(entry.addr_type).isEqualTo(type); in scanFilterQueueParams()
87 assertThat(entry.irk).isEqualTo(irk); in scanFilterQueueParams()
90 assertThat(entry).isNotNull(); in scanFilterQueueParams()
93 assertThat(entry.uuid).isEqualTo(uuid); in scanFilterQueueParams()
96 assertThat(entry.uuid).isEqualTo(solicitUuid); in scanFilterQueueParams()
97 assertThat(entry.uuid_mask).isEqualTo(solicitUuidMask); in scanFilterQueueParams()
100 assertThat(entry.name).isEqualTo(name); in scanFilterQueueParams()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectRoundRobinScheduler.java76 Map.Entry<Integer, Queue<Runnable>> entry = mTasks.higherEntry(mLastKeyUsed); in getNextTask() local
77 while (entry != null && entry.getValue().isEmpty()) { in getNextTask()
78 mTasks.remove(entry.getKey()); in getNextTask()
79 entry = mTasks.higherEntry(entry.getKey()); in getNextTask()
82 if (entry == null) { in getNextTask()
84 entry = mTasks.firstEntry(); in getNextTask()
85 while (entry != null && entry.getValue().isEmpty()) { in getNextTask()
86 mTasks.remove(entry.getKey()); in getNextTask()
87 entry = mTasks.higherEntry(entry.getKey()); in getNextTask()
91 if (entry != null) { in getNextTask()
[all …]

12345678910>>...42