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

1234567891011>>

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DScanFilterQueue.java93 Entry entry = new Entry();
94 entry.type = TYPE_DEVICE_ADDRESS;
95 entry.address = address;
96 entry.addr_type = type;
97 mEntries.add(entry);
101 Entry entry = new Entry();
102 entry.type = TYPE_SERVICE_DATA_CHANGED;
103 mEntries.add(entry);
107 Entry entry = new Entry();
108 entry
[all...]
H A DHandleMap.java114 for(Entry entry : mEntries) {
115 if (entry.type != TYPE_SERVICE ||
116 entry.serverIf != serverIf ||
117 entry.handle != handle)
120 entry.started = started;
126 for(Entry entry : mEntries) {
127 if (entry.handle == handle)
128 return entry;
135 for(Entry entry : mEntries) {
136 if (entry
[all...]
/packages/apps/Settings/src/com/android/settings/applications/
H A DProcessStatsPreference.java37 public void init(ProcStatsPackageEntry entry, PackageManager pm, double maxMemory, argument
39 mEntry = entry;
40 String title = TextUtils.isEmpty(entry.mUiLabel) ? entry.mPackage : entry.mUiLabel;
45 if (entry.mUiTargetApp != null) {
46 setIcon(entry.mUiTargetApp.loadIcon(pm));
50 boolean statsForeground = entry.mRunWeight > entry.mBgWeight;
51 double amount = avg ? (statsForeground ? entry
[all...]
H A DAppViewHolder.java31 public ApplicationsState.AppEntry entry; field in class:AppViewHolder
63 + entry.label + " " + entry + ": " + entry.sizeStr);
64 if (entry.sizeStr != null) {
67 summary.setText(entry.internalSizeStr);
70 summary.setText(entry.externalSizeStr);
73 summary.setText(entry.sizeStr);
76 } else if (entry.size == ApplicationsState.SIZE_INVALID) {
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DProfile.java39 // This is a watchdog entry for one thread.
109 for (WatchEntry entry : mList) {
110 if (currentTime > entry.wakeTime) {
111 entry.wakeTime += entry.cycleTime;
112 Thread thread = entry.thread;
113 sampleStack(entry);
116 if (entry.wakeTime > nextWakeTime) {
117 nextWakeTime = entry.wakeTime;
125 private void sampleStack(WatchEntry entry) { argument
[all...]
H A DIdentityCache.java44 Entry<K, V> entry = (Entry<K, V>) mQueue.poll();
45 while (entry != null) {
46 mWeakMap.remove(entry.mKey);
47 entry = (Entry<K, V>) mQueue.poll();
53 Entry<K, V> entry = mWeakMap.put(
55 return entry == null ? null : entry.get();
60 Entry<K, V> entry = mWeakMap.get(key);
61 return entry == null ? null : entry
[all...]
/packages/apps/Email/provider_src/com/android/email/mail/internet/
H A DAuthenticationCache.java67 CacheEntry entry = null;
69 entry = getEntry(context, account);
71 synchronized (entry) {
72 final long actualExpiration = entry.mExpirationTime - EXPIRATION_THRESHOLD;
77 refreshEntry(context, entry);
79 return entry.mAccessToken;
85 CacheEntry entry = getEntry(context, account);
86 synchronized (entry) {
87 refreshEntry(context, entry);
88 return entry
115 refreshEntry(Context context, CacheEntry entry) argument
141 saveEntry(Context context, CacheEntry entry) argument
154 clearEntry(Context context, CacheEntry entry) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DContactRecipientEntryUtils.java48 * Construct a special "Send to xxx" entry for a given destination.
55 * Construct a generated contact entry but with rendered avatar.
80 public static String getDisplayNameForContactList(final RecipientEntry entry) { argument
81 if (entry.getContactId() == CONTACT_ID_SENDTO_DESTINATION) {
83 R.string.contact_list_send_to_text, formatDestination(entry));
84 } else if (!TextUtils.isEmpty(entry.getDisplayName())) {
85 return entry.getDisplayName();
87 return formatDestination(entry);
91 public static String formatDestination(final RecipientEntry entry) { argument
92 return PhoneUtils.getDefault().formatForDisplay(entry
98 isAvatarAndNumberOnlyContact(final RecipientEntry entry) argument
105 isSendToDestinationContact(final RecipientEntry entry) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumSetSlidingWindow.java212 AlbumSetEntry entry = mData[slotIndex % mData.length];
213 if (entry.coverLoader != null) entry.coverLoader.startLoad();
214 if (entry.labelLoader != null) entry.labelLoader.startLoad();
219 AlbumSetEntry entry = mData[slotIndex % mData.length];
220 if (entry.coverLoader != null) entry.coverLoader.cancelLoad();
221 if (entry.labelLoader != null) entry
239 isLabelChanged( AlbumSetEntry entry, String title, int totalCount, int sourceType) argument
246 updateAlbumSetEntry(AlbumSetEntry entry, int slotIndex) argument
[all...]
H A DPhotoFallbackEffect.java74 Entry entry = mList.get(i);
75 if (entry.path == path) return entry;
83 Entry entry = mList.get(i);
84 if (entry.index < 0) continue;
85 entry.dest = mPositionProvider.getPosition(entry.index);
86 drawEntry(canvas, entry);
91 private void drawEntry(GLCanvas canvas, Entry entry) { argument
92 if (!entry
[all...]
H A DAlbumSlidingWindow.java81 public PanoSupportListener (AlbumEntry entry) { argument
82 mEntry = entry;
183 AlbumEntry entry = mData[index % mData.length];
184 if (entry.bitmapTexture != null) {
185 mTileUploader.addTexture(entry.bitmapTexture);
196 AlbumEntry entry = mData[i % mData.length];
197 if (entry.bitmapTexture != null) {
198 mTileUploader.addTexture(entry.bitmapTexture);
228 AlbumEntry entry = mData[slotIndex % mData.length];
229 if (entry
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DLruCache.java53 Entry<K, V> entry = (Entry<K, V>) mQueue.poll();
54 while (entry != null) {
55 mWeakMap.remove(entry.mKey);
56 entry = (Entry<K, V>) mQueue.poll();
63 Entry<K, V> entry = mWeakMap.put(
65 return entry == null ? null : entry.get();
72 Entry<K, V> entry = mWeakMap.get(key);
73 return entry == null ? null : entry
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
H A DManageExternalSources.java69 public boolean filterApp(ApplicationsState.AppEntry entry) {
70 if (!(entry.extraInfo instanceof InstallAppsState)) {
71 loadInstallAppsState(entry);
73 InstallAppsState state = (InstallAppsState) entry.extraInfo;
99 ApplicationsState.AppEntry entry) {
101 switchPref.setTitle(entry.label);
102 switchPref.setKey(entry.info.packageName);
103 mApplicationsState.ensureIcon(entry);
104 switchPref.setIcon(entry.icon);
106 setCanInstallApps(entry, (Boolea
98 bindPreference(@onNull Preference preference, ApplicationsState.AppEntry entry) argument
118 canChange(ApplicationsState.AppEntry entry) argument
133 getPreferenceSummary(ApplicationsState.AppEntry entry) argument
157 setCanInstallApps(ApplicationsState.AppEntry entry, boolean newState) argument
189 loadInstallAppsState(ApplicationsState.AppEntry entry) argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactFragment.java234 public void onPrimaryAction(ViewEntry entry); argument
235 public void onSecondaryAction(ViewEntry entry); argument
245 public void onPrimaryAction(ViewEntry entry) { argument
246 Intent intent = entry.intent;
256 public void onSecondaryAction(ViewEntry entry) { argument
257 Intent intent = entry.secondaryIntent;
274 ViewEntry entry = ViewAdapter.getEntry(mSections, position, SHOW_SEPARATORS);
275 if (entry != null) {
276 mController.onPrimaryAction(entry);
371 final ViewEntry entry
589 collapseWith(ViewEntry entry) argument
623 shouldCollapseWith(ViewEntry entry) argument
655 ViewEntry entry; field in class:ContactFragment.ViewCache
708 bindView(View view, ViewEntry entry) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/util/
H A DFileUtil.java39 for (File entry : directory.listFiles()) {
40 if (entry.isDirectory()) {
41 deleteDirectoryRecursively(entry);
43 if (!entry.delete()) {
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
H A DAppInfo.java34 public AppInfo(Context context, ApplicationsState.AppEntry entry) { argument
36 mEntry = entry;
39 public void setEntry(ApplicationsState.AppEntry entry) { argument
41 mEntry = entry;
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
H A Dprobability_entry_test.cpp30 const ProbabilityEntry entry(flag, probability);
31 const uint64_t encodedEntry = entry.encode(false /* hasHistoricalInfo */);
45 const ProbabilityEntry entry(flag, &historicalInfo);
47 const uint64_t encodedEntry = entry.encode(true /* hasHistoricalInfo */);
/packages/apps/Settings/src/com/android/settings/users/
H A DRestrictionUtils.java66 RestrictionEntry entry = new RestrictionEntry(
69 entry.setTitle(res.getString(sRestrictionTitles[i]));
70 entry.setDescription(res.getString(sRestrictionDescriptions[i]));
71 entry.setType(RestrictionEntry.TYPE_BOOLEAN);
72 entries.add(entry);
81 for (RestrictionEntry entry : entries) {
82 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
H A DRestrictionUtils.java57 RestrictionEntry entry = new RestrictionEntry(
60 entry.setTitle(res.getString(sRestrictionTitles[i]));
61 entry.setDescription(res.getString(sRestrictionDescriptions[i]));
62 entry.setType(RestrictionEntry.TYPE_BOOLEAN);
63 entries.add(entry);
73 for (RestrictionEntry entry : entries) {
74 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user);
/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DAnimationLayerSet.java52 Map.Entry<View, Integer> entry = itr.next();
53 View v = entry.getKey();
54 entry.setValue(v.getLayerType());
66 Map.Entry<View, Integer> entry = itr.next();
67 entry.getKey().setLayerType(entry.getValue(), null);
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DPhotoAppWidgetProvider.java40 static RemoteViews buildWidget(Context context, int id, Entry entry) { argument
42 switch (entry.type) {
45 return buildStackWidget(context, id, entry);
47 return buildFrameWidget(context, id, entry);
49 throw new RuntimeException("invalid type - " + entry.type);
64 Entry entry = helper.getEntry(id);
65 if (entry != null) {
66 RemoteViews views = buildWidget(context, id, entry);
80 private static RemoteViews buildStackWidget(Context context, int widgetId, Entry entry) { argument
86 intent.putExtra(WidgetService.EXTRA_WIDGET_TYPE, entry
104 buildFrameWidget(Context context, int appWidgetId, Entry entry) argument
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DLruCache.java57 Entry<K, V> entry = (Entry<K, V>) mQueue.poll();
58 while (entry != null) {
59 mWeakMap.remove(entry.mKey);
60 entry = (Entry<K, V>) mQueue.poll();
72 Entry<K, V> entry = mWeakMap.put(
74 return entry == null ? null : entry.get();
81 Entry<K, V> entry = mWeakMap.get(key);
82 return entry == null ? null : entry
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DPhotoDataAdapter.java296 ImageEntry entry = mImageCache.get(path);
299 if (entry == null || entry.screenNailTask != future) {
304 entry.screenNailTask = null;
307 if (entry.screenNail instanceof TiledScreenNail) {
308 TiledScreenNail original = (TiledScreenNail) entry.screenNail;
313 entry.failToLoad = true;
315 entry.failToLoad = false;
316 entry.screenNail = screenNail;
321 if (i == 0) updateTileProvider(entry);
610 updateTileProvider(ImageEntry entry) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
H A DArchive.java95 * Returns a valid, normalized path for an entry.
97 public static String getEntryPath(ZipEntry entry) { argument
98 Preconditions.checkArgument(entry.isDirectory() == entry.getName().endsWith("/"),
100 if (entry.getName().startsWith("/")) {
101 return entry.getName();
103 return "/" + entry.getName();
144 for (final ZipEntry entry : parentList) {
145 addCursorRow(result, entry);
162 final ZipEntry entry
272 addCursorRow(MatrixCursor cursor, ZipEntry entry) argument
288 getMimeTypeForEntry(ZipEntry entry) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DIconCache.java184 CacheEntry entry = cacheLocked(application.componentName, info, labelCache,
187 application.title = entry.title;
188 application.iconBitmap = entry.icon;
189 application.contentDescription = entry.contentDescription;
205 CacheEntry entry = cacheLocked(component, launcherActInfo, null, user);
206 return entry.icon;
217 CacheEntry entry = cacheLocked(component, info, labelCache, info.getUser());
218 return entry.icon;
229 CacheEntry entry = mCache.get(cacheKey);
230 if (entry
[all...]

Completed in 2175 milliseconds

1234567891011>>