/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 102 final NetworkStats.Entry entry = new NetworkStats.Entry(); in readNetworkStatsSummaryDev() local 109 entry.iface = reader.nextString(); in readNetworkStatsSummaryDev() 110 entry.uid = UID_ALL; in readNetworkStatsSummaryDev() 111 entry.set = SET_ALL; in readNetworkStatsSummaryDev() 112 entry.tag = TAG_NONE; in readNetworkStatsSummaryDev() 117 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 118 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 119 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 120 entry.txPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 124 entry.rxBytes += reader.nextLong(); in readNetworkStatsSummaryDev() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerStreamListener.cpp | 56 QueueEntry entry; in queueBuffer() local 57 entry.mIsCommand = false; in queueBuffer() 58 entry.mIndex = index; in queueBuffer() 59 entry.mSize = size; in queueBuffer() 60 entry.mOffset = 0; in queueBuffer() 63 mQueue.push_back(entry); in queueBuffer() 78 QueueEntry entry; in issueCommand() local 79 entry.mIsCommand = true; in issueCommand() 80 entry.mCommand = cmd; in issueCommand() 81 entry.mExtra = extra; in issueCommand() [all …]
|
/frameworks/compile/mclinker/lib/MC/ |
D | SearchDirs.cpp | 92 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); in find() local 97 while (entry != enEnd) { in find() 98 if (file == entry.path()->filename().native()) in find() 99 return entry.path(); in find() 100 ++entry; in find() 105 while (entry != enEnd) { in find() 106 if (file == entry.path()->stem().native()) { in find() 108 entry.path()->extension().native()) { in find() 109 return entry.path(); in find() 112 ++entry; in find() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 282 NetworkStats.Entry entry = null; in clone() local 284 entry = getValues(i, entry); in clone() 285 clone.addValues(entry); in clone() 316 public NetworkStats addValues(Entry entry) { in addValues() argument 333 iface[size] = entry.iface; in addValues() 334 uid[size] = entry.uid; in addValues() 335 set[size] = entry.set; in addValues() 336 tag[size] = entry.tag; in addValues() 337 metered[size] = entry.metered; in addValues() 338 roaming[size] = entry.roaming; in addValues() [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 27 std::pair<ConfigDescription, uint32_t>& entry = mConfigs.editItemAt(i); in parse() local 33 val.writeTo(&entry.first); in parse() 34 } else if (!AaptConfig::parse(part, &entry.first)) { in parse() 39 entry.second = mDefault.diff(entry.first); in parse() 42 entry.second &= ~ResTable_config::CONFIG_VERSION; in parse() 45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { in parse() 46 …derr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().s… in parse() 47 entry.first.density = 0; in parse() 48 entry.second &= ~ResTable_config::CONFIG_DENSITY; in parse() 51 mConfigMask |= entry.second; in parse() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManager.java | 211 private void addHeadsUpEntry(NotificationData.Entry entry) { in addHeadsUpEntry() argument 215 headsUpEntry.setEntry(entry); in addHeadsUpEntry() 216 mHeadsUpEntries.put(entry.key, headsUpEntry); in addHeadsUpEntry() 217 entry.row.setHeadsUp(true); in addHeadsUpEntry() 218 setEntryPinned(headsUpEntry, shouldHeadsUpBecomePinned(entry)); in addHeadsUpEntry() 220 listener.onHeadsUpStateChanged(entry, true); in addHeadsUpEntry() 222 entry.row.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED); in addHeadsUpEntry() 225 private boolean shouldHeadsUpBecomePinned(NotificationData.Entry entry) { in shouldHeadsUpBecomePinned() argument 227 && !mIsExpanded || hasFullScreenIntent(entry); in shouldHeadsUpBecomePinned() 230 private boolean hasFullScreenIntent(NotificationData.Entry entry) { in hasFullScreenIntent() argument [all …]
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { in averageTimings() 35 if (counts.containsKey(entry.getKey())) { in averageTimings() 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings() 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); in averageTimings() 39 counts.put(entry.getKey(), 1); in averageTimings() 40 result.put(entry.getKey(), (double) entry.getTime()); in averageTimings() 44 for (Map.Entry<T, Double> entry : result.entrySet()) { in averageTimings() 45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { in averageTimings() 35 if (counts.containsKey(entry.getKey())) { in averageTimings() 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); in averageTimings() 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); in averageTimings() 39 counts.put(entry.getKey(), 1); in averageTimings() 40 result.put(entry.getKey(), (double) entry.getTime()); in averageTimings() 44 for (Map.Entry<T, Double> entry : result.entrySet()) { in averageTimings() 45 result.put(entry.getKey(), entry.getValue() / counts.get(entry.getKey())); in averageTimings()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 65 camera_metadata_entry entry = mData.find(ANDROID_REQUEST_AVAILABLE_CAPABILITIES); in filterUnsupportedFeatures() local 66 if (entry.count == 0 || entry.type != TYPE_BYTE) { in filterUnsupportedFeatures() 68 __FUNCTION__, entry.count, entry.type); in filterUnsupportedFeatures() 73 capabilities.setCapacity(entry.count); in filterUnsupportedFeatures() 74 for (size_t i = 0; i < entry.count; i++) { in filterUnsupportedFeatures() 75 uint8_t capability = entry.data.u8[i]; in filterUnsupportedFeatures() 91 camera_metadata_entry entry = mData.find(ANDROID_SCALER_AVAILABLE_STREAM_CONFIGURATIONS); in filterStreamConfigurations() local 92 if (entry.count == 0 || entry.count % 4 || entry.type != TYPE_INT32) { in filterStreamConfigurations() 94 __FUNCTION__, entry.count, entry.type); in filterStreamConfigurations() 99 filteredStreamConfigs.setCapacity(entry.count); in filterStreamConfigurations() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplaySettings.java | 73 Entry entry; in getOverscanLocked() local 74 if (uniqueId == null || (entry = mEntries.get(uniqueId)) == null) { in getOverscanLocked() 75 entry = mEntries.get(name); in getOverscanLocked() 77 if (entry != null) { in getOverscanLocked() 78 outRect.left = entry.overscanLeft; in getOverscanLocked() 79 outRect.top = entry.overscanTop; in getOverscanLocked() 80 outRect.right = entry.overscanRight; in getOverscanLocked() 81 outRect.bottom = entry.overscanBottom; in getOverscanLocked() 97 Entry entry = mEntries.get(uniqueId); in setOverscanLocked() local 98 if (entry == null) { in setOverscanLocked() [all …]
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | CSVFormatter.java | 42 public String getOutput(TrackerEntry entry) { in getOutput() argument 45 rowOutput.append(entry.getTimestamp()); in getOutput() 47 rowOutput.append(entry.getTag()); in getOutput() 51 if (entry.getType() == EntryType.LOCATION_TYPE) { in getOutput() 52 if (entry.getLocation().hasAccuracy()) { in getOutput() 53 rowOutput.append(entry.getLocation().getAccuracy()); in getOutput() 56 rowOutput.append(entry.getLocation().getLatitude()); in getOutput() 58 rowOutput.append(entry.getLocation().getLongitude()); in getOutput() 60 if (entry.getLocation().hasAltitude()) { in getOutput() 61 rowOutput.append(entry.getLocation().getAltitude()); in getOutput() [all …]
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64GOT.cpp | 43 AArch64GOTEntry* entry = new AArch64GOTEntry(0, NULL); in createGOT() local 44 m_GOT.push_back(entry); in createGOT() 45 return entry; in createGOT() 49 AArch64GOTEntry* entry = new AArch64GOTEntry(0, NULL); in createGOTPLT() local 50 m_GOTPLT.push_back(entry); in createGOTPLT() 51 return entry; in createGOTPLT() 69 AArch64GOTEntry* entry = *it; in finalizeSectionSize() local 70 frag_list.push_back(entry); in finalizeSectionSize() 71 entry->setParent(m_SectionData); in finalizeSectionSize() 72 entry->setOffset(offset); in finalizeSectionSize() [all …]
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMGOT.cpp | 40 ARMGOTEntry* entry = new ARMGOTEntry(0, NULL); in createGOT() local 41 m_GOT.push_back(entry); in createGOT() 42 return entry; in createGOT() 46 ARMGOTEntry* entry = new ARMGOTEntry(0, NULL); in createGOTPLT() local 47 m_GOTPLT.push_back(entry); in createGOTPLT() 48 return entry; in createGOTPLT() 66 ARMGOTEntry* entry = *it; in finalizeSectionSize() local 67 frag_list.push_back(entry); in finalizeSectionSize() 68 entry->setParent(m_SectionData); in finalizeSectionSize() 69 entry->setOffset(offset); in finalizeSectionSize() [all …]
|
/frameworks/support/core-utils/tests/java/android/support/v4/graphics/ |
D | ColorUtilsTest.java | 87 for (TestEntry entry : sEntryList) { in testColorToHSL() 88 verifyColorToHSL(entry.rgb, entry.hsl); in testColorToHSL() 94 for (TestEntry entry : sEntryList) { in testHSLToColor() 95 verifyHSLToColor(entry.hsl, entry.rgb); in testHSLToColor() 103 for (TestEntry entry : sEntryList) { in testColorToHslLimits() 104 ColorUtils.colorToHSL(entry.rgb, hsl); in testColorToHslLimits() 114 for (TestEntry entry : sEntryList) { in testColorToXYZ() 115 verifyColorToXYZ(entry.rgb, entry.xyz); in testColorToXYZ() 121 for (TestEntry entry : sEntryList) { in testColorToLAB() 122 verifyColorToLAB(entry.rgb, entry.lab); in testColorToLAB() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResourceUtils_test.cpp | 24 StringPiece package, type, entry; in TEST() local 25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); in TEST() 28 EXPECT_EQ("foo", entry); in TEST() 30 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); in TEST() 33 EXPECT_EQ("foo", entry); in TEST() 35 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); in TEST() 38 EXPECT_EQ("foo", entry); in TEST() 40 ASSERT_TRUE(ExtractResourceName("android:foo", &package, &type, &entry)); in TEST() 43 EXPECT_EQ("foo", entry); in TEST() 45 EXPECT_FALSE(ExtractResourceName(":string/foo", &package, &type, &entry)); in TEST() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 245 final AppEntry entry = mEntriesMap.get(userId).get(info.packageName); in doResumeIfNeededLocked() local 246 if (entry != null) { in doResumeIfNeededLocked() 247 entry.info = info; in doResumeIfNeededLocked() 297 AppEntry entry = mEntriesMap.get(userId).get(packageName); in getEntry() local 298 if (entry == null) { in getEntry() 309 entry = getEntryLocked(info); in getEntry() 313 return entry; in getEntry() 328 public void ensureIcon(AppEntry entry) { in ensureIcon() argument 329 if (entry.icon != null) { in ensureIcon() 332 synchronized (entry) { in ensureIcon() [all …]
|
/frameworks/rs/rsov/compiler/tests/single_kernel/ |
D | duff.ll | 11 entry: 26 do.body: ; preds = %entry, %sw.bb14 27 %n.0 = phi i32 [ %dec15, %sw.bb14 ], [ %div, %entry ] 28 %x.0 = phi i32 [ %shl, %sw.bb14 ], [ 321, %entry ] 32 sw.bb1: ; preds = %entry, %do.body 33 %n.1 = phi i32 [ %n.0, %do.body ], [ %div, %entry ] 34 %x.1 = phi i32 [ %mul, %do.body ], [ 321, %entry ] 38 sw.bb2: ; preds = %entry, %sw.bb1 39 %n.2 = phi i32 [ %n.1, %sw.bb1 ], [ %div, %entry ] 40 %x.2 = phi i32 [ %dec, %sw.bb1 ], [ 321, %entry ] [all …]
|
/frameworks/base/libs/hwui/font/ |
D | FontCacheHistoryTracker.cpp | 30 void FontCacheHistoryTracker::dumpRenderEntry(String8& log, const RenderEntry& entry) { in dumpRenderEntry() argument 31 if (entry.penX == -1 && entry.penY == -1) { in dumpRenderEntry() 32 log.appendFormat(" glyph skipped in gen: %d\n", entry.glyph.generation); in dumpRenderEntry() 35 dumpCachedGlyph(log, entry.glyph); in dumpRenderEntry() 36 log.appendFormat(" at (%d, %d)\n", entry.penX, entry.penY); in dumpRenderEntry() 64 RenderEntry& entry = mRenderHistory.next(); in glyphRendered() local 65 entry.glyph.generation = generation; in glyphRendered() 66 entry.glyph.texture = glyphInfo->mCacheTexture; in glyphRendered() 67 entry.glyph.startX = glyphInfo->mStartX; in glyphRendered() 68 entry.glyph.startY = glyphInfo->mStartY; in glyphRendered() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
D | VCardExporterTests.java | 101 final ContactEntry entry = mVerifier.addInputEntry(); in testStructuredNameUsePrimaryCommon() local 102 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUsePrimaryCommon() 111 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUsePrimaryCommon() 125 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUsePrimaryCommon() 161 final ContactEntry entry = mVerifier.addInputEntry(); in testStructuredNameUseSuperPrimaryCommon() local 162 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUseSuperPrimaryCommon() 171 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUseSuperPrimaryCommon() 181 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUseSuperPrimaryCommon() 190 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testStructuredNameUseSuperPrimaryCommon() 231 final ContactEntry entry = mVerifier.addInputEntry(); in testStructuredNamePhoneticNameCommon() local [all …]
|
D | VCardJapanizationTests.java | 37 ContactEntry entry = mVerifier.addInputEntry(); in testNameUtf8Common() local 38 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testNameUtf8Common() 65 ContactEntry entry = mVerifier.addInputEntry(); in testNameShiftJis() local 66 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testNameShiftJis() 87 ContactEntry entry = mVerifier.addInputEntry(); in testNameDoCoMo() local 88 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testNameDoCoMo() 113 ContactEntry entry = mVerifier.addInputEntry(); in testPhoneticNameCommon() local 114 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testPhoneticNameCommon() 165 ContactEntry entry = mVerifier.addInputEntry(); in testPhoneticNameForMobileV21_1() local 166 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE) in testPhoneticNameForMobileV21_1() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ZipFileRO.cpp | 41 ZipEntry entry; member in _ZipEntryRO 85 const int32_t error = FindEntry(mHandle, data->name, &(data->entry)); in findEntryByName() 100 bool ZipFileRO::getEntryInfo(ZipEntryRO entry, uint16_t* pMethod, in getEntryInfo() argument 104 const _ZipEntryRO* zipEntry = reinterpret_cast<_ZipEntryRO*>(entry); in getEntryInfo() 105 const ZipEntry& ze = zipEntry->entry; in getEntryInfo() 154 int32_t error = Next(ze->cookie, &(ze->entry), &(ze->name)); in nextEntry() 162 return &(ze->entry); in nextEntry() 170 void ZipFileRO::releaseEntry(ZipEntryRO entry) const in releaseEntry() 172 delete reinterpret_cast<_ZipEntryRO*>(entry); in releaseEntry() 178 int ZipFileRO::getEntryFileName(ZipEntryRO entry, char* buffer, size_t bufLen) in getEntryFileName() argument [all …]
|
/frameworks/base/tools/aapt2/ |
D | StringPool.cpp | 42 StringPool::Ref::Ref(StringPool::Entry* entry) : entry_(entry) { in Ref() argument 95 StringPool::StyleRef::StyleRef(StringPool::StyleEntry* entry) : entry_(entry) { in StyleRef() argument 174 Entry* entry = new Entry(); in MakeRefImpl() local 175 entry->value = str.to_string(); in MakeRefImpl() 176 entry->context = context; in MakeRefImpl() 177 entry->index = strings_.size(); in MakeRefImpl() 178 entry->ref_ = 0; in MakeRefImpl() 179 strings_.emplace_back(entry); in MakeRefImpl() 180 indexed_strings_.insert(std::make_pair(StringPiece(entry->value), entry)); in MakeRefImpl() 181 return Ref(entry); in MakeRefImpl() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | DropBoxManagerService.java | 129 public void add(DropBoxManager.Entry entry) { 130 DropBoxManagerService.this.add(entry); 218 public void add(DropBoxManager.Entry entry) { in add() argument 222 final String tag = entry.getTag(); in add() 224 int flags = entry.getFlags(); in add() 233 input = entry.getInputStream(); in add() 305 entry.close(); in add() 336 for (EntryFile entry : list.contents.tailSet(new EntryFile(millis + 1))) { in getNextEntry() 337 if (entry.tag == null) continue; in getNextEntry() 338 if ((entry.flags & DropBoxManager.IS_EMPTY) != 0) { in getNextEntry() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | FuseAppLoop.java | 146 final CallbackEntry entry = args.entry; 156 final long fileSize = entry.callback.onGetSize(); 166 final long fileSize = entry.callback.onGetSize(); 176 final int readSize = entry.callback.onRead( 186 final int writeSize = entry.callback.onWrite(offset, size, data); 195 entry.callback.onFsync(); 204 entry.callback.onRelease(); 209 mBytesMap.stopUsing(entry.getThreadId()); 244 args.entry = getCallbackEntryOrThrowLocked(inode); 245 if (!args.entry.handler.sendMessage( [all …]
|
/frameworks/base/libs/hwui/ |
D | PathCache.cpp | 212 void PathCache::operator()(PathDescription& entry, PathTexture*& texture) { in operator ()() argument 274 PathTexture* PathCache::addTexture(const PathDescription& entry, const SkPath *path, in addTexture() argument 286 generateTexture(entry, *bitmap, texture); in addTexture() 290 void PathCache::generateTexture(const PathDescription& entry, Bitmap& bitmap, in generateTexture() argument 305 mCache.put(entry, texture); in generateTexture() 366 PathDescription entry(ShapeType::Path, paint); in get() local 367 entry.shape.path.mGenerationID = path->getGenerationID(); in get() 369 PathTexture* texture = mCache.get(entry); in get() 372 texture = addTexture(entry, path, paint); in get() 382 generateTexture(entry, *bitmap, texture, false); in get() [all …]
|