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

123456789

/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
H A DKMLFormatter.java43 public String getOutput(TrackerEntry entry) { argument
46 if (entry.getType() == EntryType.LOCATION_TYPE) {
48 Location loc = entry.getLocation();
53 + entry.getDistFromNetLocation());
56 builder.addLine("<when>" + entry.getTimestamp() + "</when>");
/frameworks/support/volley/tests/src/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.serverDate = 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/base/core/java/android/net/http/
H A DIdleCache.java78 Entry entry = mEntries[i];
79 if (entry.mHost == null) {
80 entry.mHost = host;
81 entry.mConnection = connection;
82 entry.mTimeout = time + TIMEOUT;
102 Entry entry = mEntries[i];
103 HttpHost eHost = entry.mHost;
105 ret = entry.mConnection;
106 entry.mHost = null;
107 entry
[all...]
/frameworks/compile/mclinker/unittests/
H A DDirIteratorTest.cpp52 Directory::iterator entry = m_pDir->begin(); local
56 while( entry!=enEnd ) {
57 if (0 != entry.path())
58 size = entry.path()->native().size();
60 ++entry;
H A DHashTableTest.cpp85 HashTableTy::entry_type* entry = 0; local
87 entry = hashTable->insert(pA, exist);
117 HashTableTy::iterator entry = hashTable->find(key); local
118 EXPECT_EQ(999, entry.getEntry()->value());
128 HashTableTy::entry_type* entry = 0; local
130 entry = hashTable->insert(key, exist);
133 EXPECT_FALSE(NULL == entry);
134 EXPECT_EQ(key, entry->key());
135 entry->setValue(key+10);
150 HashTableTy::entry_type* entry local
175 HashTableTy::entry_type* entry = 0; local
199 HashTableTy::entry_type* entry = 0; local
235 HashTableTy::entry_type* entry = 0; local
256 HashTableTy::entry_type* entry = 0; local
279 HashTableTy::entry_type* entry = 0; local
310 HashTableTy::entry_type* entry = 0; local
[all...]
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DHttpHeaderParserTest.java49 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
51 assertNotNull(entry);
52 assertNull(entry.etag);
53 assertEquals(0, entry.serverDate);
54 assertEquals(0, entry.ttl);
55 assertEquals(0, entry.softTtl);
61 Cache.Entry entry = HttpHeaderParser.parseCacheHeaders(response);
63 assertNotNull(entry);
64 assertEquals("Yow!", entry.etag);
72 Cache.Entry 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...]
H A DNuPlayerRenderer.cpp243 QueueEntry *entry = &*mAudioQueue.begin(); local
245 if (entry->mBuffer == NULL) {
248 notifyEOS(true /* audio */, entry->mFinalResult);
251 entry = NULL;
255 if (entry->mOffset == 0) {
257 CHECK(entry->mBuffer->meta()->findInt64("timeUs", &mediaTimeUs));
280 size_t copy = entry->mBuffer->size() - entry->mOffset;
286 entry->mBuffer->data() + entry
316 QueueEntry &entry = *mVideoQueue.begin(); local
355 QueueEntry *entry = &*mVideoQueue.begin(); local
433 QueueEntry entry; local
510 QueueEntry entry; local
560 QueueEntry *entry = &*queue->begin(); local
[all...]
/frameworks/compile/mclinker/lib/MC/
H A DSearchDirs.cpp55 MCLDDirectory::iterator entry = (*mcld_dir)->begin(); local
60 while (entry!=enEnd) {
61 if (file == entry.path()->stem().native() ) {
62 if(mcld::sys::fs::detail::shared_library_extension == entry.path()->extension().native()) {
63 return entry.path();
66 ++entry;
71 entry = (*mcld_dir)->begin();
73 while ( entry!=enEnd ) {
74 if (file == entry.path()->stem().native() &&
75 mcld::sys::fs::detail::static_library_extension == entry
[all...]
/frameworks/base/core/java/com/android/internal/net/
H A DNetworkStatsFactory.java75 final NetworkStats.Entry entry = new NetworkStats.Entry();
82 entry.iface = reader.nextString();
83 entry.uid = UID_ALL;
84 entry.set = SET_ALL;
85 entry.tag = TAG_NONE;
90 entry.rxBytes = reader.nextLong();
91 entry.rxPackets = reader.nextLong();
92 entry.txBytes = reader.nextLong();
93 entry.txPackets = reader.nextLong();
97 entry
[all...]
/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/support/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java101 * Returns the cache entry with the specified key if it exists, null otherwise.
105 CacheHeader entry = mEntries.get(key);
106 // if the entry does not exist, return.
107 if (entry == null) {
117 return entry.toCacheEntry(data);
147 CacheHeader entry = CacheHeader.readHeader(fis);
148 entry.size = file.length();
149 putEntry(entry.key, entry);
165 * Invalidates an entry i
186 put(String key, Entry entry) argument
283 putEntry(String key, CacheHeader entry) argument
350 CacheHeader(String key, Entry entry) argument
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkStats.java185 NetworkStats.Entry entry = null;
187 entry = getValues(i, entry);
188 clone.addValues(entry);
208 * Add new stats entry, copying from given {@link Entry}. The {@link Entry}
211 public NetworkStats addValues(Entry entry) { argument
225 iface[size] = entry.iface;
226 uid[size] = entry.uid;
227 set[size] = entry.set;
228 tag[size] = entry
295 combineValues(Entry entry) argument
[all...]
/frameworks/base/libs/hwui/
H A DLayerCache.cpp90 LayerEntry entry(width, height);
91 ssize_t index = mCache.indexOf(entry);
94 entry = mCache.itemAt(index);
97 layer = entry.mLayer;
102 LAYER_LOGD("Creating new layer %dx%d", entry.mWidth, entry.mHeight);
104 layer = new Layer(entry.mWidth, entry.mHeight);
126 const LayerEntry& entry = mCache.itemAt(i); local
127 LAYER_LOGD(" Layer size %dx%d", entry
[all...]
H A DShapeCache.cpp34 RoundRectShapeCacheEntry entry(width, height, rx, ry, paint);
35 PathTexture* texture = get(entry);
43 texture = addTexture(entry, &path, paint);
58 CircleShapeCacheEntry entry(radius, paint);
59 PathTexture* texture = get(entry);
65 texture = addTexture(entry, &path, paint);
80 OvalShapeCacheEntry entry(width, height, paint);
81 PathTexture* texture = get(entry);
89 texture = addTexture(entry, &path, paint);
104 RectShapeCacheEntry entry(widt
[all...]
H A DGradientCache.h45 GradientCacheEntry(const GradientCacheEntry& entry) { argument
46 copy(entry.colors, entry.positions, entry.count);
54 GradientCacheEntry& operator=(const GradientCacheEntry& entry) { argument
55 if (this != &entry) {
59 copy(entry.colors, entry.positions, entry.count);
108 * Used as a callback when an entry i
[all...]
/frameworks/support/volley/tests/src/com/android/volley/mock/
H A DMockCache.java32 public void setEntryToReturn(Entry entry) { argument
33 mFakeEntry = entry;
47 public void put(String key, Entry entry) { argument
50 entryPut = entry;
/frameworks/native/include/utils/
H A DGenerationCache.h46 sp<Entry<EntryKey, EntryValue> > parent; // next older entry
47 sp<Entry<EntryKey, EntryValue> > child; // next younger entry
89 void attachToCache(const sp<Entry<K, V> >& entry);
90 void detachFromCache(const sp<Entry<K, V> >& entry);
123 sp<Entry<K, V> > entry = mCache.valueAt(i); local
125 (*mListener)(entry->key, entry->value);
153 const sp<Entry<K, V> >& entry = mCache.valueAt(index); local
154 detachFromCache(entry);
155 attachToCache(entry);
170 sp<Entry<K, V> > entry = new Entry<K, V>(key, value); local
192 sp<Entry<K, V> > entry = mCache.valueAt(index); local
217 attachToCache(const sp<Entry<K, V> >& entry) argument
228 detachFromCache(const sp<Entry<K, V> >& entry) argument
[all...]
/frameworks/ex/chips/src/com/android/ex/chips/
H A DRecipientChip.java43 public RecipientChip(Drawable drawable, RecipientEntry entry, int offset) { argument
45 mDisplay = entry.getDisplayName();
46 mValue = entry.getDestination().trim();
47 mContactId = entry.getContactId();
48 mDataId = entry.getDataId();
49 mEntry = entry;
/frameworks/base/tools/aapt/
H A DStringPool.h42 struct entry { struct in class:StringPool
43 entry() : offset(0) { } function in struct:StringPool::entry
44 entry(const String16& _value) : value(_value), offset(0), hasStyles(false) { } function in struct:StringPool::entry
45 entry(const entry& o) : value(o.value), offset(o.offset), function in struct:StringPool::entry
58 int compare(const entry& o) const;
60 inline bool operator<(const entry& o) const { return compare(o) < 0; }
61 inline bool operator<=(const entry& o) const { return compare(o) <= 0; }
62 inline bool operator==(const entry& o) const { return compare(o) == 0; }
63 inline bool operator!=(const entry
[all...]
/frameworks/support/volley/src/com/android/volley/
H A DCacheDispatcher.java101 Cache.Entry entry = mCache.get(request.getCacheKey());
102 if (entry == null) {
110 if (entry.isExpired()) {
112 request.setCacheEntry(entry);
120 new NetworkResponse(entry.data));
123 if (!entry.refreshNeeded()) {
131 request.setCacheEntry(entry);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardExporterTests.java101 final ContactEntry entry = mVerifier.addInputEntry();
102 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
111 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
125 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
161 final ContactEntry entry = mVerifier.addInputEntry();
162 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
171 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
181 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
190 entry.addContentValues(StructuredName.CONTENT_ITEM_TYPE)
231 final ContactEntry entry
[all...]

Completed in 269 milliseconds

123456789