/frameworks/base/libs/androidfw/tests/ |
H A D | ResourceUtils_test.cpp | 24 StringPiece package, type, entry; local 25 ASSERT_TRUE(ExtractResourceName("android:string/foo", &package, &type, &entry)); 28 EXPECT_EQ("foo", entry); 30 ASSERT_TRUE(ExtractResourceName("string/foo", &package, &type, &entry)); 33 EXPECT_EQ("foo", entry); 35 ASSERT_TRUE(ExtractResourceName("foo", &package, &type, &entry)); 38 EXPECT_EQ("foo", entry); 40 ASSERT_TRUE(ExtractResourceName("android:foo", &package, &type, &entry)); 43 EXPECT_EQ("foo", entry); 45 EXPECT_FALSE(ExtractResourceName(":string/foo", &package, &type, &entry)); [all...] |
/frameworks/base/tools/aapt/tests/ |
H A D | AaptGroupEntry_test.cpp | 26 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const String8& dirName, argument 28 if (entry.initFromDirName(dirName, outType)) { 34 static ::testing::AssertionResult TestParse(AaptGroupEntry& entry, const char* input, argument 36 return TestParse(entry, String8(input), outType); 40 AaptGroupEntry entry; local 42 EXPECT_TRUE(TestParse(entry, "menu", &type)); 47 AaptGroupEntry entry; local 49 EXPECT_TRUE(TestParse(entry, "anim", &type)); 52 EXPECT_TRUE(TestParse(entry, "animator", &type));
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
H A D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { 35 if (counts.containsKey(entry.getKey())) { 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); 39 counts.put(entry.getKey(), 1); 40 result.put(entry.getKey(), (double) entry [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | TimedEvent.java | 34 for (TimedEvent<T> entry : events) { 35 if (counts.containsKey(entry.getKey())) { 36 counts.put(entry.getKey(), counts.get(entry.getKey()) + 1); 37 result.put(entry.getKey(), result.get(entry.getKey()) + entry.getTime()); 39 counts.put(entry.getKey(), 1); 40 result.put(entry.getKey(), (double) entry [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | CSVFormatter.java | 42 public String getOutput(TrackerEntry entry) { argument 45 rowOutput.append(entry.getTimestamp()); 47 rowOutput.append(entry.getTag()); 49 //rowOutput.append(entry.getType()); 51 if (entry.getType() == EntryType.LOCATION_TYPE) { 52 if (entry.getLocation().hasAccuracy()) { 53 rowOutput.append(entry.getLocation().getAccuracy()); 56 rowOutput.append(entry.getLocation().getLatitude()); 58 rowOutput.append(entry.getLocation().getLongitude()); 60 if (entry [all...] |
H A D | IFormatter.java | 25 String getOutput(TrackerEntry entry); argument
|
/frameworks/compile/mclinker/lib/MC/ |
H A D | SearchDirs.cpp | 92 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); local 97 while (entry != enEnd) { 98 if (file == entry.path()->filename().native()) 99 return entry.path(); 100 ++entry; 105 while (entry != enEnd) { 106 if (file == entry.path()->stem().native()) { 108 entry.path()->extension().native()) { 109 return entry.path(); 112 ++entry; 157 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); local [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardEntryHandler.java | 34 * The method called when one vCard entry is created. Children come before their parent in 38 * In the following vCard, the entry for "entry2" comes before one for "entry1". 48 public void onEntryCreated(final VCardEntry entry); argument
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence.cpp | 22 const RegistryEntry* entry = Registry::Find(stream); local 24 if (!entry) return NULL; 26 FrameSequence* frameSequence = entry->createFrameSequence(stream);
|
/frameworks/base/core/java/android/content/res/ |
H A D | ConfigurationBoundResourceCache.java | 38 final ConstantState<T> entry = get(key, theme); 39 if (entry != null) { 40 return entry.newInstance(resources, theme); 47 public boolean shouldInvalidateEntry(ConstantState<T> entry, @Config int configChanges) { argument 48 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations());
|
H A D | DrawableCache.java | 35 final Drawable.ConstantState entry = get(key, theme); 36 if (entry != null) { 37 return entry.newDrawable(resources, theme); 44 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { argument 45 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations());
|
/frameworks/compile/mclinker/unittests/ |
H A D | DirIteratorTest.cpp | 47 Directory::iterator entry = m_pDir->begin(); local 51 while (entry != enEnd) { 52 if (0 != entry.path()) { 53 size = entry.path()->native().size(); 57 ++entry;
|
/frameworks/base/core/java/com/android/internal/net/ |
H A D | NetworkStatsFactory.java | 102 final NetworkStats.Entry entry = new NetworkStats.Entry(); 109 entry.iface = reader.nextString(); 110 entry.uid = UID_ALL; 111 entry.set = SET_ALL; 112 entry.tag = TAG_NONE; 117 entry.rxBytes = reader.nextLong(); 118 entry.rxPackets = reader.nextLong(); 119 entry.txBytes = reader.nextLong(); 120 entry.txPackets = reader.nextLong(); 124 entry [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerStreamListener.cpp | 56 QueueEntry entry; local 57 entry.mIsCommand = false; 58 entry.mIndex = index; 59 entry.mSize = size; 60 entry.mOffset = 0; 63 mQueue.push_back(entry); 78 QueueEntry entry; local 79 entry.mIsCommand = true; 80 entry.mCommand = cmd; 81 entry 113 QueueEntry *entry = &*mQueue.begin(); local [all...] |
/frameworks/base/tools/aapt/ |
H A D | ResourceFilter.cpp | 27 std::pair<ConfigDescription, uint32_t>& entry = mConfigs.editItemAt(i); local 33 val.writeTo(&entry.first); 34 } else if (!AaptConfig::parse(part, &entry.first)) { 39 entry.second = mDefault.diff(entry.first); 42 entry.second &= ~ResTable_config::CONFIG_VERSION; 45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { 46 fprintf(stderr, "warning: ignoring flag -c %s. Use --preferred-density instead.\n", entry.first.toString().string()); 47 entry.first.density = 0; 48 entry 71 scriptsMatch(const ResTable_config& config, const ResTable_config& entry) argument 109 const std::pair<ConfigDescription, uint32_t>& entry = mConfigs[i]; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | LayerUpdateQueue.cpp | 32 for (Entry& entry : mEntries) { 33 if (CC_UNLIKELY(entry.renderNode == renderNode)) { 34 entry.damage.unionWith(damage);
|
/frameworks/base/libs/hwui/font/ |
H A D | FontCacheHistoryTracker.cpp | 30 void FontCacheHistoryTracker::dumpRenderEntry(String8& log, const RenderEntry& entry) { argument 31 if (entry.penX == -1 && entry.penY == -1) { 32 log.appendFormat(" glyph skipped in gen: %d\n", entry.glyph.generation); 35 dumpCachedGlyph(log, entry.glyph); 36 log.appendFormat(" at (%d, %d)\n", entry.penX, entry.penY); 64 RenderEntry& entry = mRenderHistory.next(); local 65 entry.glyph.generation = generation; 66 entry [all...] |
/frameworks/base/tools/aapt2/flatten/ |
H A D | ResourceTypeExtensions.h | 30 android::ResTable_entry entry; member in struct:aapt::ResTable_entry_ext
|
/frameworks/base/tools/aapt2/optimize/ |
H A D | ResourceDeduper.cpp | 31 * Based on the dominator tree, we can remove a value of an entry if: 33 * 1. The configuration for the entry's value is dominated by a configuration 34 * with an equivalent entry value. 35 * 2. All compatible configurations for the entry (those not in conflict and 36 * unrelated by domination with the configuration for the entry's value) have 37 * an equivalent entry value. 43 explicit DominatedKeyValueRemover(IAaptContext* context, ResourceEntry* entry) argument 44 : context_(context), entry_(entry) {} 60 // Compare compatible configs for this entry and ensure the values are 93 static void DedupeEntry(IAaptContext* context, ResourceEntry* entry) { argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplaySettings.java | 71 // Try to get the entry with the unique if possible. 73 Entry entry; 74 if (uniqueId == null || (entry = mEntries.get(uniqueId)) == null) { 75 entry = mEntries.get(name); 77 if (entry != null) { 78 outRect.left = entry.overscanLeft; 79 outRect.top = entry.overscanTop; 80 outRect.right = entry.overscanRight; 81 outRect.bottom = entry.overscanBottom; 91 // we have no need for the entry [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
H A D | SimpleRecipientChip.java | 42 public SimpleRecipientChip(final RecipientEntry entry) { argument 43 mDisplay = entry.getDisplayName(); 44 mValue = entry.getDestination().trim(); 45 mContactId = entry.getContactId(); 46 mDirectoryId = entry.getDirectoryId(); 47 mLookupKey = entry.getLookupKey(); 48 mDataId = entry.getDataId(); 49 mEntry = entry;
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | AAtomizer.cpp | 42 List<AString> &entry = mAtoms.editItemAt(index); local 43 List<AString>::iterator it = entry.begin(); 44 while (it != entry.end()) { 51 entry.push_back(AString(name)); 53 return (*--entry.end()).c_str();
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
H A D | AArch64GOT.cpp | 43 AArch64GOTEntry* entry = new AArch64GOTEntry(0, NULL); local 44 m_GOT.push_back(entry); 45 return entry; 49 AArch64GOTEntry* entry = new AArch64GOTEntry(0, NULL); local 50 m_GOTPLT.push_back(entry); 51 return entry; 69 AArch64GOTEntry* entry = *it; local 70 frag_list.push_back(entry); 71 entry->setParent(m_SectionData); 72 entry 83 AArch64GOTEntry* entry = *it; local [all...] |
/frameworks/compile/mclinker/lib/Target/ARM/ |
H A D | ARMGOT.cpp | 40 ARMGOTEntry* entry = new ARMGOTEntry(0, NULL); local 41 m_GOT.push_back(entry); 42 return entry; 46 ARMGOTEntry* entry = new ARMGOTEntry(0, NULL); local 47 m_GOTPLT.push_back(entry); 48 return entry; 66 ARMGOTEntry* entry = *it; local 67 frag_list.push_back(entry); 68 entry->setParent(m_SectionData); 69 entry 80 ARMGOTEntry* entry = *it; local [all...] |
/frameworks/base/tools/aapt2/filter/ |
H A D | ConfigFilter.cpp | 42 // the locale script of entry. 54 static bool ScriptsMatch(const ConfigDescription& config, const ConfigDescription& entry) { argument 56 const char* entry_script = entry.localeScript; 69 android::localeDataComputeScript(script_buffer, entry.language, entry.country); 86 for (const auto& entry : configs_) { 87 const ConfigDescription& target = entry.first; 88 const uint32_t diff_mask = entry.second; 104 config.localeVariant[0] == '\0' && config.language[0] == entry.first.language[0] && 105 config.language[1] == entry [all...] |