Searched defs:entry (Results 1 - 25 of 95) sorted by last modified time

1234

/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java1399 private boolean relax(int[] locations, Arc entry) { argument
1400 if (!entry.valid) {
1403 Interval span = entry.span;
1406 int value = entry.value.value;
1550 // External entry points
2096 // this overwrite duplicates, retaining the last equivalent entry
/frameworks/support/volley/src/com/android/volley/
H A DCache.java24 * Retrieves an entry from the cache.
31 * Adds or replaces an entry to the cache.
33 * @param entry Data to store and metadata for cache coherency, TTL, etc.
35 public void put(String key, Entry entry); argument
44 * Invalidates an entry in the cache.
46 * @param fullExpire True to fully expire the entry, false to soft expire
51 * Removes an entry from the cache.
62 * Data and metadata for an entry returned by the cache.
80 /** True if the entry is expired. */
H A DRequest.java75 * the network, the cache entry will be stored here so that in the event of
204 * Annotates this request with an entry retrieved for it from cache.
207 public void setCacheEntry(Cache.Entry entry) { argument
208 mCacheEntry = entry;
212 * Returns the annotated cache entry, or null if there isn't one.
294 for (Map.Entry<String, String> entry : postParams.entrySet()) {
295 encodedParams.append(URLEncoder.encode(entry.getKey(), postParamsEncoding));
297 encodedParams.append(URLEncoder.encode(entry.getValue(), postParamsEncoding));
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DBasicNetwork.java179 private void addCacheHeaders(Map<String, String> headers, Cache.Entry entry) { argument
180 // If there's no cache entry, we're done.
181 if (entry == null) {
185 if (entry.etag != null) {
186 headers.put("If-None-Match", entry.etag);
189 if (entry.serverDate > 0) {
190 Date refTime = new Date(entry.serverDate);
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...]
H A DNoCache.java35 public void put(String key, Entry entry) { argument
/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/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardEntryTests.java70 public void onEntryCreated(VCardEntry entry) { argument
73 mEntries.add(entry);
203 VCardEntry entry = new VCardEntry();
209 entry.addProperty(property);
222 entry.addProperty(property);
230 entry.addProperty(property);
238 entry.addProperty(property);
247 entry.addProperty(property);
256 entry.addProperty(property);
266 entry
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DContentValuesVerifier.java45 public void onEntryCreated(VCardEntry entry) { argument
47 mContentValuesVerifierElemList.get(mIndex).onEntryCreated(entry);
H A DContentValuesVerifierElem.java50 public void onEntryCreated(VCardEntry entry) { argument
51 mHandler.onEntryCreated(entry);
/frameworks/rs/
H A DrsFileA3D.cpp75 A3DIndexEntry *entry = new A3DIndexEntry(); local
76 headerStream->loadString(&entry->mObjectName);
77 //ALOGV("Header data, entry name = %s", entry->mObjectName.string());
78 entry->mType = (RsA3DClassID)headerStream->loadU32();
80 entry->mOffset = headerStream->loadOffset();
81 entry->mLength = headerStream->loadOffset();
83 entry->mOffset = headerStream->loadU32();
84 entry->mLength = headerStream->loadU32();
86 entry
229 FileA3D::A3DIndexEntry *entry = mIndex[index]; local
421 const FileA3D::A3DIndexEntry *entry = fa3d->getIndexEntry(i); local
[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/opt/mms/src/java/com/google/android/mms/util/
H A DPduCache.java95 synchronized public boolean put(Uri uri, PduCacheEntry entry) { argument
96 int msgBoxId = entry.getMessageBox();
103 long threadId = entry.getThreadId();
111 boolean result = super.put(finalKey, entry);
165 PduCacheEntry entry = super.purge(key);
166 if (entry != null) {
167 removeFromThreads(key, entry);
168 removeFromMessageBoxes(key, entry);
169 return entry;
185 * @return Uri The normalized key of cached entry
231 removeFromThreads(Uri key, PduCacheEntry entry) argument
255 removeFromMessageBoxes(Uri key, PduCacheEntry entry) argument
[all...]
/frameworks/ex/chips/src/com/android/ex/chips/
H A DBaseRecipientAdapter.java230 // Note: At this point each entry doesn't contain any photo
311 final RecipientEntry entry = (RecipientEntry)resultValue;
312 final String displayName = entry.getDisplayName();
313 final String emailAddress = entry.getDestination();
634 private void putOneEntry(TemporaryEntry entry, boolean isAggregatedEntry, argument
638 if (existingDestinations.contains(entry.destination)) {
642 existingDestinations.add(entry.destination);
646 entry.displayName,
647 entry.displayNameSource,
648 entry
727 tryFetchPhoto(final RecipientEntry entry) argument
744 fetchPhotoAsync(final RecipientEntry entry, final Uri photoThumbnailUri) argument
774 fetchPhoto(final RecipientEntry entry, final Uri photoThumbnailUri) argument
[all...]
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;
H A DRecipientEditTextView.java474 // autocomplete text entry area. Make sure to leave space for padding
517 // autocomplete text entry area. Make sure to leave space for padding
551 // TODO: cache this in the recipient entry?
874 Log.d(TAG, "There were extra characters after the last tokenizable entry."
884 * point, this chip will be attached to a real contact entry, if one exists.
897 RecipientEntry entry = createTokenizedEntry(token);
898 if (entry != null) {
899 String destText = createAddressText(entry);
910 entry,
913 TextUtils.isEmpty(entry
1495 createAddressText(RecipientEntry entry) argument
1524 createChipDisplayText(RecipientEntry entry) argument
1547 createChip(RecipientEntry entry, boolean pressed) argument
2055 replaceChip(RecipientChip chip, RecipientEntry entry) argument
2326 createFreeChip(RecipientEntry entry) argument
[all...]
H A DSingleRecipientArrayAdapter.java33 public SingleRecipientArrayAdapter(Context context, int resourceId, RecipientEntry entry) { argument
35 entry
54 private void bindView(View view, Context context, RecipientEntry entry) { argument
57 display.setText(entry.getDisplayName());
61 destination.setText(Rfc822Tokenizer.tokenize(entry.getDestination())[0].getAddress());
/frameworks/native/include/utils/
H A DBasicHashtable.h33 // may need to seek further along the chain to find the entry.
36 // The present flag indicates that the bucket contains an initialized entry value.
41 // hash code of the entry's key.
48 // Storage for the entry begins here.
49 char entry[0]; member in struct:android::BasicHashtableImpl::Bucket
69 size_t add(hash_t hash, const void* __restrict__ entry);
73 const size_t mBucketSize; // number of bytes per bucket including the entry
74 const bool mHasTrivialDestructor; // true if the entry type does not require destruction
92 virtual void initializeBucketEntry(Bucket& bucket, const void* __restrict__ entry) const = 0;
156 * TEntry: The entry typ
292 add(hash_t hash, const TEntry& entry) argument
380 memcpy(&entryFor(bucket), entry, sizeof(TEntry)); local
[all...]
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/native/libs/utils/
H A DBasicHashtable.cpp148 size_t BasicHashtableImpl::add(hash_t hash, const void* entry) { argument
179 initializeBucketEntry(*bucket, entry);
225 initializeBucketEntry(*toBucket, fromBucket.entry);
280 initializeBucketEntry(toBucket, fromBucket.entry);
H A DZipFileCRO.cpp45 ZipEntryRO entry = (ZipEntryRO)entryToken; local
46 return zip->getEntryInfo(entry, pMethod, pUncompLen, pCompLen, pOffset,
52 ZipEntryRO entry = (ZipEntryRO)entryToken; local
53 return zip->uncompressEntry(entry, fd);
H A DZipFileRO.cpp89 #define kCDECRC 16 // offset to entry CRC
119 int ZipFileRO::entryToIndex(const ZipEntryRO entry) const
121 long ent = ((intptr_t) entry) - kZipEntryAdj;
123 ALOGW("Invalid ZipEntryRO %p (%ld)\n", entry, ent);
373 ALOGW("bad LFH offset %ld at entry %d\n", localHdrOffset, i);
389 ALOGW("bad CD advance (%d vs " ZD ") at entry %d\n",
415 * Add a new entry to the hash table.
432 * Find a matching entry.
439 * If the ZipFileRO instance is not initialized, the entry number will
465 * Find the Nth entry
494 getEntryInfo(ZipEntryRO entry, int* pMethod, size_t* pUncompLen, size_t* pCompLen, off64_t* pOffset, long* pModWhen, long* pCrc32) const argument
641 getEntryFileName(ZipEntryRO entry, char* buffer, int bufLen) const argument
691 uncompressEntry(ZipEntryRO entry, void* buffer) const argument
752 uncompressEntry(ZipEntryRO entry, int fd) const argument
[all...]
/frameworks/native/libs/utils/tests/
H A DBasicHashtable_test.cpp145 static void getKeyValue(const TEntry& entry, int* key, int* value);
147 template <> void getKeyValue(const SimpleEntry& entry, int* key, int* value) { argument
148 *key = entry.key;
149 *value = entry.value;
152 template <> void getKeyValue(const ComplexEntry& entry, int* key, int* value) { argument
153 *key = entry.key.k;
154 *value = entry.value.v;
397 const SimpleEntry& entry = h.entryAt(index); local
398 ASSERT_GE(entry.key, 0);
399 ASSERT_LT(entry
[all...]
/frameworks/compile/libbcc/tools/bcc/
H A DMain.cpp113 OptRunEntry("R", llvm::cl::desc("Run the entry method after successfully load "
117 OptEntryFunction("entry-function", llvm::cl::desc("Specify the entry function "
123 "runs the entry method"));
383 // Retrieve the address of entry function.
384 void *entry = loader->getSymbolAddress(OptEntryFunction.c_str()); local
385 if (entry == NULL) {
386 llvm::errs() << "Couldn't find entry method `" << OptEntryFunction
393 // Execute the entry function.
394 int run_result = reinterpret_cast<int (*)()>(entry)();
[all...]
/frameworks/compile/mclinker/include/mcld/MC/
H A DMCLDOptions.h112 const std::string& entry() const function in class:mcld::GeneralOptions

Completed in 220 milliseconds

1234