Home
last modified time | relevance | path

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

12345678910>>...36

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DScanFilterQueue.java80 Entry entry = new Entry(); in addDeviceAddress() local
81 entry.type = TYPE_DEVICE_ADDRESS; in addDeviceAddress()
82 entry.address = address; in addDeviceAddress()
83 entry.addr_type = type; in addDeviceAddress()
84 entry.irk = irk; in addDeviceAddress()
85 mEntries.add(entry); in addDeviceAddress()
89 Entry entry = new Entry(); in addServiceChanged() local
90 entry.type = TYPE_SERVICE_DATA_CHANGED; in addServiceChanged()
91 mEntries.add(entry); in addServiceChanged()
95 Entry entry = new Entry(); in addUuid() local
[all …]
DAdvertiseManager.java137 Map.Entry<IBinder, AdvertiserInfo> entry = null; in findAdvertiser() local
140 entry = e; in findAdvertiser()
144 return entry; in findAdvertiser()
155 Map.Entry<IBinder, AdvertiserInfo> entry = findAdvertiser(regId); in onAdvertisingSetStarted() local
157 if (entry == null) { in onAdvertisingSetStarted()
164 IAdvertisingSetCallback callback = entry.getValue().callback; in onAdvertisingSetStarted()
166 entry.setValue( in onAdvertisingSetStarted()
167 new AdvertiserInfo(advertiserId, entry.getValue().deathRecipient, callback)); in onAdvertisingSetStarted()
171 IBinder binder = entry.getKey(); in onAdvertisingSetStarted()
172 binder.unlinkToDeath(entry.getValue().deathRecipient, 0); in onAdvertisingSetStarted()
[all …]
DHandleMap.java115 for (Entry entry : mEntries) { in setStarted()
116 if (entry.type != TYPE_SERVICE || entry.serverIf != serverIf in setStarted()
117 || entry.handle != handle) { in setStarted()
121 entry.started = started; in setStarted()
127 for (Entry entry : mEntries) { in getByHandle()
128 if (entry.handle == handle) { in getByHandle()
129 return entry; in getByHandle()
137 for (Entry entry : mEntries) { in checkServiceExists()
138 if (entry.type == TYPE_SERVICE && entry.handle == handle && entry.uuid.equals(uuid)) { in checkServiceExists()
146 mEntries.removeIf(entry -> ((entry.serverIf == serverIf) in deleteService()
[all …]
/packages/modules/Bluetooth/system/device/src/
Dinterop.cc191 static bool interop_database_remove_(interop_db_entry_t* entry);
192 static bool interop_database_match(interop_db_entry_t* entry,
387 interop_db_entry_t* entry = (interop_db_entry_t*)data; in interop_free_entry_() local
388 osi_free(entry); in interop_free_entry_()
633 static bool interop_database_match(interop_db_entry_t* entry, in interop_database_match() argument
636 CHECK(entry); in interop_database_match()
650 if (entry->bl_type != db_entry->bl_type) { in interop_database_match()
657 if (entry->bl_entry_type != db_entry->bl_entry_type) { in interop_database_match()
665 interop_addr_entry_t* src = &entry->entry_type.addr_entry; in interop_database_match()
677 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/modules/Connectivity/framework-t/src/android/net/
DNetworkStats.java565 NetworkStats.Entry entry = null; in clone() local
567 entry = getValues(i, entry); in clone()
568 clone.insertEntry(entry); in clone()
626 public NetworkStats insertEntry(Entry entry) { in insertEntry() argument
644 setValues(size, entry); in insertEntry()
650 private void setValues(int i, Entry entry) { in setValues() argument
651 iface[i] = entry.iface; in setValues()
652 uid[i] = entry.uid; in setValues()
653 set[i] = entry.set; in setValues()
654 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/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationUtil.java170 + dstWorkspaceItems.stream().filter(entry -> in migrate()
171 toBeRemoved.contains(entry.id)).map(DbEntry::toString).collect( in migrate()
242 src.forEach(entry -> { in calcDiff()
243 if (!dest.contains(entry)) { in calcDiff()
244 toBeAdded.add(entry); in calcDiff()
247 dest.forEach(entry -> { in calcDiff()
248 if (!src.contains(entry)) { in calcDiff()
249 toBeRemoved.add(entry.id); in calcDiff()
250 if (entry.itemType == LauncherSettings.Favorites.ITEM_TYPE_FOLDER) { in calcDiff()
251 entry.mFolderItems.values().forEach(ids -> ids.forEach(toBeRemoved::add)); in calcDiff()
[all …]
/packages/services/Car/service/src/com/android/car/stats/
DCarStatsService.java57 entry -> String.format(Locale.US,
59 entry.getUid(), entry.getPackageName(),
60 entry.getConnectionStateCount(ConnectionState.CONNECTING),
61 entry.getConnectionStateCount(ConnectionState.CONNECTED),
62 entry.getConnectionStateCount(ConnectionState.DISCONNECTED),
63 entry.getConnectionStateCount(ConnectionState.TERMINATED),
64 entry.getConnectionStateCount(ConnectionState.CONNECTION_ERROR));
71 entry -> String.format(
73 entry.getUid(),
74 entry.getLayerType(), entry.getLayerChannel(), entry.getLayerVersion(),
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryDiffEntryTest.java95 final BatteryDiffEntry entry = in testSetTotalConsumePower_returnExpectedResult() local
114 entry.setTotalConsumePower(100.0); in testSetTotalConsumePower_returnExpectedResult()
116 assertThat(entry.getPercentage()).isEqualTo(22.0); in testSetTotalConsumePower_returnExpectedResult()
121 final BatteryDiffEntry entry = in testSetTotalConsumePower_setZeroValue_returnsZeroValue() local
140 entry.setTotalConsumePower(0); in testSetTotalConsumePower_setZeroValue_returnsZeroValue()
142 assertThat(entry.getPercentage()).isEqualTo(0); in testSetTotalConsumePower_setZeroValue_returnsZeroValue()
198 final BatteryDiffEntry entry = createBatteryDiffEntry(10, batteryHistEntry); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult() local
200 assertThat(entry.getAppLabel()).isEqualTo(expectedName); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
201 assertThat(entry.getAppIconId()).isEqualTo(R.drawable.ic_settings_aod); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
205 BatteryDiffEntry.sResourceCache.get(entry.getKey()); in testLoadLabelAndIcon_forSystemBattery_returnExpectedResult()
[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/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/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DRequest.java20 import static java.util.Map.entry;
188 entry(Opcodes.PLAY, SupportedOpcodes.PLAY),
189 entry(Opcodes.PAUSE, SupportedOpcodes.PAUSE),
190 entry(Opcodes.FAST_REWIND, SupportedOpcodes.FAST_REWIND),
191 entry(Opcodes.FAST_FORWARD, SupportedOpcodes.FAST_FORWARD),
192 entry(Opcodes.STOP, SupportedOpcodes.STOP),
193 entry(Opcodes.MOVE_RELATIVE, SupportedOpcodes.MOVE_RELATIVE),
194 entry(Opcodes.PREVIOUS_SEGMENT, SupportedOpcodes.PREVIOUS_SEGMENT),
195 entry(Opcodes.NEXT_SEGMENT, SupportedOpcodes.NEXT_SEGMENT),
196 entry(Opcodes.FIRST_SEGMENT, SupportedOpcodes.FIRST_SEGMENT),
[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/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/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/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/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/services/Telecomm/src/com/android/server/telecom/
DAnalytics.java19 import static java.util.Map.entry;
75 entry(LogUtils.Events.SET_SELECT_PHONE_ACCOUNT,
77 entry(LogUtils.Events.REQUEST_HOLD, AnalyticsEvent.REQUEST_HOLD),
78 entry(LogUtils.Events.REQUEST_UNHOLD, AnalyticsEvent.REQUEST_UNHOLD),
79 entry(LogUtils.Events.SWAP, AnalyticsEvent.SWAP),
80 entry(LogUtils.Events.SKIP_RINGING, AnalyticsEvent.SKIP_RINGING),
81 entry(LogUtils.Events.CONFERENCE_WITH, AnalyticsEvent.CONFERENCE_WITH),
82 entry(LogUtils.Events.SPLIT_FROM_CONFERENCE, AnalyticsEvent.SPLIT_CONFERENCE),
83 entry(LogUtils.Events.SET_PARENT, AnalyticsEvent.SET_PARENT),
84 entry(LogUtils.Events.MUTE, AnalyticsEvent.MUTE),
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/fastpair/halfsheet/
DFastPairHalfSheetBlocklist.java92 BlocklistElement entry = get(id); in isBlocklisted() local
93 if (entry == null) { in isBlocklisted()
96 if (entry.getState().equals(DO_NOT_SHOW_AGAIN)) { in isBlocklisted()
98 return mClock.elapsedRealtime() < entry.getTimeStamp() + durationMilliSeconds; in isBlocklisted()
100 if (entry.getState().equals(DO_NOT_SHOW_AGAIN_LONG)) { in isBlocklisted()
103 < entry.getTimeStamp() in isBlocklisted()
107 if (entry.getState().equals(ACTIVE)) { in isBlocklisted()
112 if (entry.getState().equals(DISMISSED)) { in isBlocklisted()
115 < entry.getTimeStamp() + FAST_PAIR_HALF_SHEET_DISMISS_COOL_DOWN_MILLIS; in isBlocklisted()
117 if (dismissStateHasExpired(entry)) { in isBlocklisted()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DScanFilterQueueTest.java84 for (ScanFilterQueue.Entry entry : entries) { in scanFilterQueueParams()
85 switch (entry.type) { in scanFilterQueueParams()
87 assertThat(entry.address).isEqualTo(address); in scanFilterQueueParams()
88 assertThat(entry.addr_type).isEqualTo(type); in scanFilterQueueParams()
89 assertThat(entry.irk).isEqualTo(irk); in scanFilterQueueParams()
92 assertThat(entry).isNotNull(); in scanFilterQueueParams()
95 assertThat(entry.uuid).isEqualTo(uuid); in scanFilterQueueParams()
98 assertThat(entry.uuid).isEqualTo(solicitUuid); in scanFilterQueueParams()
99 assertThat(entry.uuid_mask).isEqualTo(solicitUuidMask); in scanFilterQueueParams()
102 assertThat(entry.name).isEqualTo(name); in scanFilterQueueParams()
[all …]

12345678910>>...36