Searched refs:entry (Results 1 - 25 of 413) sorted by relevance

1234567891011>>

/frameworks/base/tools/aapt/tests/
H A DAaptGroupEntry_test.cpp26 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/volley/src/test/java/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java55 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
57 assertNotNull(entry);
58 assertNull(entry.etag);
59 assertEquals(0, entry.serverDate);
60 assertEquals(0, entry.lastModified);
61 assertEquals(0, entry.ttl);
62 assertEquals(0, entry.softTtl);
68 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
70 assertNotNull(entry);
71 assertNotNull(entry
[all...]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DCSVFormatter.java42 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 DIFormatter.java25 String getOutput(TrackerEntry entry); argument
/frameworks/compile/mclinker/lib/MC/
H A DSearchDirs.cpp92 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/volley/src/test/java/com/android/volley/utils/
H A DCacheTestUtils.java12 * Makes a random cache entry.
14 * @param isExpired Whether the TTLs should be set such that this entry is expired
15 * @param needsRefresh Whether the TTLs should be set such that this entry needs refresh
20 Cache.Entry entry = new Cache.Entry();
22 entry.data = data;
24 entry.data = new byte[random.nextInt(1024)];
26 entry.etag = String.valueOf(random.nextLong());
27 entry.lastModified = random.nextLong();
28 entry.ttl = isExpired ? 0 : Long.MAX_VALUE;
29 entry
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardEntryHandler.java34 * 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 DFrameSequence.cpp22 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 DConfigurationBoundResourceCache.java46 final ConstantState<T> entry = get(key, theme);
47 if (entry != null) {
48 return entry.newInstance(mResources, theme);
55 public boolean shouldInvalidateEntry(ConstantState<T> entry, int configChanges) { argument
56 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations());
H A DDrawableCache.java45 final Drawable.ConstantState entry = get(key, theme);
46 if (entry != null) {
47 return entry.newDrawable(mResources, theme);
54 public boolean shouldInvalidateEntry(Drawable.ConstantState entry, int configChanges) { argument
55 return Configuration.needNewResources(configChanges, entry.getChangingConfigurations());
/frameworks/compile/mclinker/unittests/
H A DDirIteratorTest.cpp47 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/tools/aapt/
H A DResourceFilter.cpp27 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
69 const std::pair<ConfigDescription, uint32_t>& entry = mConfigs[i]; local
[all...]
/frameworks/base/core/java/com/android/internal/net/
H A DNetworkStatsFactory.java96 final NetworkStats.Entry entry = new NetworkStats.Entry();
103 entry.iface = reader.nextString();
104 entry.uid = UID_ALL;
105 entry.set = SET_ALL;
106 entry.tag = TAG_NONE;
111 entry.rxBytes = reader.nextLong();
112 entry.rxPackets = reader.nextLong();
113 entry.txBytes = reader.nextLong();
114 entry.txPackets = reader.nextLong();
118 entry
[all...]
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerStreamListener.cpp56 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/libs/androidfw/
H A DTypeWrappers.cpp41 ALOGE("Type's entry indices extend beyond its boundaries");
51 ALOGE("Index %u points to entry with unaligned offset 0x%08x", mIndex, entryOffset);
55 const ResTable_entry* entry = reinterpret_cast<const ResTable_entry*>( local
57 if (reinterpret_cast<uintptr_t>(entry) > containerEnd - sizeof(*entry)) {
60 } else if (reinterpret_cast<uintptr_t>(entry) + dtohs(entry->size) > containerEnd) {
63 } else if (dtohs(entry->size) < sizeof(*entry)) {
64 ALOGE("Entry at index %u is too small (%u)", mIndex, dtohs(entry
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplaySettings.java66 // Try to get the entry with the unique if possible.
68 Entry entry;
69 if (uniqueId == null || (entry = mEntries.get(uniqueId)) == null) {
70 entry = mEntries.get(name);
72 if (entry != null) {
73 outRect.left = entry.overscanLeft;
74 outRect.top = entry.overscanTop;
75 outRect.right = entry.overscanRight;
76 outRect.bottom = entry.overscanBottom;
85 // we have no need for the entry
[all...]
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DSimpleRecipientChip.java42 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 DAAtomizer.cpp42 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 DAArch64GOT.cpp43 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 DARMGOT.cpp40 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/core/java/android/net/
H A DNetworkStats.java229 NetworkStats.Entry entry = null;
231 entry = getValues(i, entry);
232 clone.addValues(entry);
252 * Add new stats entry, copying from given {@link Entry}. The {@link Entry}
255 public NetworkStats addValues(Entry entry) { argument
270 iface[size] = entry.iface;
271 uid[size] = entry.uid;
272 set[size] = entry.set;
273 tag[size] = entry
344 combineValues(Entry entry) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DRestrictionsManagerTest.java42 for (RestrictionEntry entry : manifestRestrictions) {
43 if ("bundle_key".equals(entry.getKey())) {
44 assertEquals("bundle_key entry should have 2 children entries",
45 2, entry.getRestrictions().length);
46 verifiedKeys.remove(entry.getKey());
47 } else if ("bundle_array_key".equals(entry.getKey())) {
49 2, entry.getRestrictions().length);
50 assertNotNull(entry.getRestrictions());
51 for (RestrictionEntry childEntry : entry.getRestrictions()) {
54 assertEquals("bundle_array_bundle_key should have 1 child entry",
[all...]
/frameworks/base/tools/aapt2/
H A DStringPool.cpp38 StringPool::Ref::Ref(StringPool::Entry* entry) : mEntry(entry) { argument
87 StringPool::StyleRef::StyleRef(StringPool::StyleEntry* entry) : mEntry(entry) { argument
144 Entry* entry = new Entry(); local
145 entry->value = str.toString();
146 entry->context = context;
147 entry->index = mStrings.size();
148 entry->ref = 0;
149 mStrings.emplace_back(entry);
159 Entry* entry = new Entry(); local
179 Entry* entry = new Entry(); local
[all...]
/frameworks/av/services/camera/libcameraservice/common/
H A DCameraModule.cpp45 camera_metadata_entry entry = chars.find(ANDROID_CONTROL_AVAILABLE_SCENE_MODES); local
46 if (entry.count > 1 || entry.data.u8[0] != ANDROID_CONTROL_SCENE_MODE_DISABLED) {
54 entry = chars.find(ANDROID_CONTROL_AE_AVAILABLE_MODES);
55 if (entry.count > 0) {
56 for (size_t i = 0; i < entry.count; i++) {
57 if (entry.data.u8[i] == ANDROID_CONTROL_AE_MODE_OFF) {
63 entry = chars.find(ANDROID_CONTROL_AF_AVAILABLE_MODES);
64 if (entry.count > 0) {
65 for (size_t i = 0; i < entry
141 camera_metadata_entry entry = chars.find(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE); local
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DDiskBasedCache.java103 * Returns the cache entry with the specified key if it exists, null otherwise.
107 CacheHeader entry = mEntries.get(key);
108 // if the entry does not exist, return.
109 if (entry == null) {
119 return entry.toCacheEntry(data);
156 CacheHeader entry = CacheHeader.readHeader(fis);
157 entry.size = file.length();
158 putEntry(entry.key, entry);
174 * Invalidates an entry i
195 put(String key, Entry entry) argument
297 putEntry(String key, CacheHeader entry) argument
371 CacheHeader(String key, Entry entry) argument
[all...]

Completed in 560 milliseconds

1234567891011>>