Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 61) sorted by relevance

123

/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DDiskLruCache.java380 Entry entry = lruEntries.get(key); in readJournalLine() local
381 if (entry == null) { in readJournalLine()
382 entry = new Entry(key); in readJournalLine()
383 lruEntries.put(key, entry); in readJournalLine()
387 entry.readable = true; in readJournalLine()
388 entry.currentEditor = null; in readJournalLine()
389 entry.setLengths(copyOfRange(parts, 2, parts.length)); in readJournalLine()
391 entry.currentEditor = new Editor(entry); in readJournalLine()
406 Entry entry = i.next(); in processJournal() local
407 if (entry.currentEditor == null) { in processJournal()
[all …]
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
DLocationDataManager.java77 public final void addPoint(LocationEntry entry) { in addPoint() argument
79 List<LocationEntry> points = getPoints(entry.calendar); in addPoint()
81 mDbHelper.insert(entry); in addPoint()
85 points.add(entry); in addPoint()
86 mPointsMap.put(entry.day, points); in addPoint()
88 if (!points.contains(entry)) { in addPoint()
89 mDbHelper.insert(entry); in addPoint()
90 points.add(entry); in addPoint()
DPhoneMainActivity.java109 for (LocationEntry entry : entries) { in showTrack()
110 LatLng latLng = new LatLng(entry.latitude, entry.longitude); in showTrack()
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DAppRestrictionSchemaFragment.java118 for (RestrictionEntry entry : entries) { in resolveRestrictions()
119 String key = entry.getKey(); in resolveRestrictions()
122 updateCanSayHello(entry, restrictions); in resolveRestrictions()
124 updateMessage(entry, restrictions); in resolveRestrictions()
126 updateNumber(entry, restrictions); in resolveRestrictions()
128 updateRank(entry, restrictions); in resolveRestrictions()
130 updateApprovals(entry, restrictions); in resolveRestrictions()
132 updateProfile(entry, restrictions); in resolveRestrictions()
134 updateItems(entry, restrictions); in resolveRestrictions()
139 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { in updateCanSayHello() argument
[all …]
/development/ndk/platforms/android-3/include/linux/
Dworkqueue.h23 struct list_head entry; member
34 #define __WORK_INITIALIZER(n, f, d) { .entry = { &(n).entry, &(n).entry }, .func = (f), .data…
40 #define INIT_WORK(_work, _func, _data) do { INIT_LIST_HEAD(&(_work)->entry); (_work)->pending…
Dtimer.h22 struct list_head entry; member
/development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
DCustomRestrictionsFragment.java118 for (RestrictionEntry entry : mRestrictions) { in onActivityCreated()
119 if (entry.getKey().equals(GetRestrictionsReceiver.KEY_BOOLEAN)) { in onActivityCreated()
120 mBooleanPref.setChecked(entry.getSelectedState()); in onActivityCreated()
121 mBooleanEntry = entry; in onActivityCreated()
122 } else if (entry.getKey().equals(GetRestrictionsReceiver.KEY_CHOICE)) { in onActivityCreated()
123 mChoicePref.setValue(entry.getSelectedString()); in onActivityCreated()
124 mChoiceEntry = entry; in onActivityCreated()
125 } else if (entry.getKey().equals(GetRestrictionsReceiver.KEY_MULTI_SELECT)) { in onActivityCreated()
127 for (String value : entry.getAllSelectedStrings()) { in onActivityCreated()
131 mMultiEntry = entry; in onActivityCreated()
DGetRestrictionsReceiver.java57 public static void populateBooleanEntry(Resources res, RestrictionEntry entry) { in populateBooleanEntry() argument
58 entry.setType(RestrictionEntry.TYPE_BOOLEAN); in populateBooleanEntry()
59 entry.setTitle(res.getString(R.string.boolean_entry_title)); in populateBooleanEntry()
128 for (RestrictionEntry entry : newEntries) { in createRestrictions()
129 final String key = entry.getKey(); in createRestrictions()
131 entry.setSelectedState(existingRestrictions.getBoolean(KEY_BOOLEAN)); in createRestrictions()
134 entry.setSelectedString(existingRestrictions.getString(KEY_CHOICE)); in createRestrictions()
138 entry.setAllSelectedStrings(existingRestrictions.getStringArray(key)); in createRestrictions()
/development/ndk/platforms/android-9/arch-x86/include/asm/
Ddesc_32.h64 #define write_ldt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
65 #define write_gdt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
66 #define write_idt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
/development/host/windows/usb/api/
Dadb_interface_enum.cpp78 AdbInstanceEnumEntry& entry = *current_interface_; in Next() local
81 if ((NULL == info) || (*size < entry.GetFlatSize())) { in Next()
82 *size = entry.GetFlatSize(); in Next()
88 entry.Save(info); in Next()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/
DLocationDbHelper.java83 public final long insert(LocationEntry entry) { in insert() argument
92 values.put(COLUMN_NAME_DAY, entry.day); in insert()
93 values.put(COLUMN_NAME_LONGITUDE, entry.longitude); in insert()
94 values.put(COLUMN_NAME_LATITUDE, entry.latitude); in insert()
95 values.put(COLUMN_NAME_TIME, entry.calendar.getTimeInMillis()); in insert()
136 LocationEntry entry = new LocationEntry(cal, cursor.getDouble(1), in read() local
138 result.add(entry); in read()
/development/tools/mkstubs/src/com/android/mkstubs/
DStubGenerator.java60 for (Entry<String, ClassReader> entry : classes.entrySet()) { in generateStubbedJar()
61 ClassReader cr = entry.getValue(); in generateStubbedJar()
90 for (Entry<String, byte[]> entry : all.entrySet()) { in createJar()
91 String name = entry.getKey(); in createJar()
94 jar.write(entry.getValue()); in createJar()
DAsmAnalyzer.java49 ZipEntry entry; in parseInputJar() local
51 entry = entries.nextElement(); in parseInputJar()
52 if (entry.getName().endsWith(".class")) { in parseInputJar()
53 ClassReader cr = new ClassReader(zip.getInputStream(entry)); in parseInputJar()
DSourceGenerator.java56 for (Entry<String, ClassReader> entry : classes.entrySet()) { in generateSource()
57 ClassReader cr = entry.getValue(); in generateSource()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmStorage.java90 for (Map.Entry<String, ?> entry : mSharedPreferences.getAll().entrySet()) { in getAlarms()
91 alarms.add(Alarm.fromJson(entry.getValue().toString())); in getAlarms()
104 for (Map.Entry<String, ?> entry : mSharedPreferences.getAll().entrySet()) { in deleteAlarm()
105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); in deleteAlarm()
/development/samples/browseable/BasicAndroidKeyStore/src/com.example.android.basicandroidkeystore/
DBasicAndroidKeyStoreFragment.java212 KeyStore.Entry entry = ks.getEntry(mAlias, null); in signData() local
221 if (entry == null) { in signData()
232 if (!(entry instanceof KeyStore.PrivateKeyEntry)) { in signData()
246 s.initSign(((KeyStore.PrivateKeyEntry) entry).getPrivateKey()); in signData()
297 KeyStore.Entry entry = ks.getEntry(mAlias, null); in verifyData() local
299 if (entry == null) { in verifyData()
305 if (!(entry instanceof KeyStore.PrivateKeyEntry)) { in verifyData()
317 s.initVerify(((KeyStore.PrivateKeyEntry) entry).getCertificate()); in verifyData()
/development/ndk/platforms/android-21/include/linux/netfilter_ipv6/
Dip6_tables.h102 struct ip6t_entry entry; member
107 struct ip6t_entry entry; member
112 #define IP6T_STANDARD_INIT(__verdict) { .entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_standard)), …
114 #define IP6T_ERROR_INIT { .entry = IP6T_ENTRY_INIT(sizeof(struct ip6t_error)), .target = XT_TA…
/development/ndk/platforms/android-21/include/linux/netfilter/
Dx_tables.h114 …h_foreach(pos, entry) for ((pos) = (struct xt_entry_match *)entry->elems; (pos) < (struct xt_e… argument
/development/samples/Vault/src/com/example/android/vault/
DSecretKeyWrapper.java66 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStore.getEntry( in SecretKeyWrapper() local
68 mPair = new KeyPair(entry.getCertificate().getPublicKey(), entry.getPrivateKey()); in SecretKeyWrapper()
/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/provider/
DTouristAttractions.java134 for (Map.Entry<String, LatLng> entry: CITY_LOCATIONS.entrySet()) { in getClosestCity()
135 double distance = SphericalUtil.computeDistanceBetween(curLatLng, entry.getValue()); in getClosestCity()
138 closestCity = entry.getKey(); in getClosestCity()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectorySelectionFragment.java178 DirectoryEntry entry = new DirectoryEntry(); in updateDirectoryEntries() local
179 entry.fileName = childCursor.getString(0); in updateDirectoryEntries()
180 entry.mimeType = childCursor.getString(1); in updateDirectoryEntries()
181 directoryEntries.add(entry); in updateDirectoryEntries()
/development/ndk/platforms/android-21/include/linux/
Dflat.h27 unsigned long entry; member
/development/samples/training/network-usage/src/com/example/android/networkusage/
DNetworkActivity.java250 for (Entry entry : entries) { in loadXmlFromNetwork()
252 htmlString.append(entry.link); in loadXmlFromNetwork()
253 htmlString.append("'>" + entry.title + "</a></p>"); in loadXmlFromNetwork()
257 htmlString.append(entry.summary); in loadXmlFromNetwork()
/development/samples/ApiDemos/src/com/example/android/apis/security/
DKeyStoreUsage.java362 KeyStore.Entry entry = ks.getEntry(alias, null); in doInBackground() local
363 if (!(entry instanceof PrivateKeyEntry)) { in doInBackground()
368 s.initSign(((PrivateKeyEntry) entry).getPrivateKey()); in doInBackground()
433 KeyStore.Entry entry = ks.getEntry(alias, null); in doInBackground() local
434 if (!(entry instanceof PrivateKeyEntry)) { in doInBackground()
439 s.initVerify(((PrivateKeyEntry) entry).getCertificate()); in doInBackground()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DScopedDirectoryAccessFragment.java204 DirectoryEntry entry = new DirectoryEntry(); in updateDirectoryEntries() local
205 entry.fileName = childCursor.getString(childCursor.getColumnIndex( in updateDirectoryEntries()
207 entry.mimeType = childCursor.getString(childCursor.getColumnIndex( in updateDirectoryEntries()
209 mDirectoryEntries.add(entry); in updateDirectoryEntries()

123