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

1234567

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DSearchQueue.java44 Entry entry = new Entry();
45 entry.connId = connId;
46 entry.srvcType = srvcType;
47 entry.srvcInstId = srvcInstId;
48 entry.srvcUuidLsb = srvcUuidLsb;
49 entry.srvcUuidMsb = srvcUuidMsb;
50 entry.charUuidLsb = 0;
51 mEntries.add(entry);
58 Entry entry = new Entry();
59 entry
[all...]
H A DHandleMap.java116 for(Entry entry : mEntries) {
117 if (entry.type != TYPE_SERVICE ||
118 entry.serverIf != serverIf ||
119 entry.handle != handle)
122 entry.started = started;
128 for(Entry entry : mEntries) {
129 if (entry.handle == handle)
130 return entry;
137 for(Entry entry : mEntries) {
138 if (entry
[all...]
H A DContextMap.java55 * Application entry mapping UUIDs to appIDs and callbacks.
113 * Add an entry to the application context list.
128 App entry = i.next();
129 if (entry.id == id) {
130 entry.unlinkToDeath();
143 App entry = getById(id);
144 if (entry != null){
172 App entry = i.next();
173 if (entry.id == id) return entry;
[all...]
H A DServiceDeclaration.java92 Entry entry = new Entry(uuid, serviceType, instance);
93 entry.type = TYPE_INCLUDED_SERVICE;
94 mEntries.add(entry);
110 Entry entry = mEntries.get(0);
112 return entry;
116 for (Entry entry : mEntries) {
117 if (entry.uuid.equals(uuid)) {
118 return entry.advertisePreferred;
/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);
83 for (RestrictionEntry entry : entries) {
84 userRestrictions.putBoolean(entry.getKey(), !entry.getSelectedState());
85 if (entry.getKey().equals(UserManager.DISALLOW_SHARE_LOCATION)
86 && !entry
[all...]
/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/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...]
H A DAlbumSetSlotRenderer.java132 AlbumSetEntry entry = mDataWindow.get(index);
134 renderRequestFlags |= renderContent(canvas, entry, width, height);
135 renderRequestFlags |= renderLabel(canvas, entry, width, height);
136 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height);
141 GLCanvas canvas, int index, AlbumSetEntry entry, int width, int height) {
143 if (entry.album != null && entry.album.isCameraRoll()) {
160 } else if ((mHighlightItemPath != null) && (mHighlightItemPath == entry.setPath)) {
162 } else if (mInSelectionMode && mSelectionManager.isItemSelected(entry.setPath)) {
169 GLCanvas canvas, AlbumSetEntry entry, in
140 renderOverlay( GLCanvas canvas, int index, AlbumSetEntry entry, int width, int height) argument
168 renderContent( GLCanvas canvas, AlbumSetEntry entry, int width, int height) argument
190 renderLabel( GLCanvas canvas, AlbumSetEntry entry, int width, int height) argument
[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/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/Settings/src/com/android/settings/applications/
H A DAppViewHolder.java15 public ApplicationsState.AppEntry entry; field in class:AppViewHolder
46 if (ManageApplications.DEBUG) Log.i(ManageApplications.TAG, "updateSizeText of " + entry.label + " " + entry
47 + ": " + entry.sizeStr);
48 if (entry.sizeStr != null) {
51 appSize.setText(entry.internalSizeStr);
54 appSize.setText(entry.externalSizeStr);
57 appSize.setText(entry.sizeStr);
60 } else if (entry.size == ApplicationsState.SIZE_INVALID) {
H A DApplicationsState.java578 AppEntry entry = getEntryLocked(info);
579 entry.ensureLabel(mContext);
580 if (DEBUG) Log.i(TAG, "Using " + info.packageName + ": " + entry);
581 filteredApps.add(entry);
662 final AppEntry entry = mEntriesMap.get(info.packageName);
663 if (entry != null) {
664 entry.info = info;
696 AppEntry entry = mEntriesMap.get(packageName);
697 if (entry == null) {
701 entry
711 ensureIcon(AppEntry entry) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/detail/
H A DContactDetailFragmentTests.java49 DetailViewEntry entry = new ContactDetailFragment.DetailViewEntry();
50 ContactDetailFragment.buildImActions(mContext, entry, im);
51 assertEquals(Intent.ACTION_SENDTO, entry.intent.getAction());
52 assertEquals("xmpp:" + TEST_ADDRESS + "?message", entry.intent.getData().toString());
54 assertNull(entry.secondaryIntent);
67 DetailViewEntry entry = new ContactDetailFragment.DetailViewEntry();
68 ContactDetailFragment.buildImActions(mContext, entry, im);
69 assertEquals(Intent.ACTION_SENDTO, entry.intent.getAction());
70 assertEquals("xmpp:" + TEST_ADDRESS + "?message", entry.intent.getData().toString());
72 assertEquals(Intent.ACTION_SENDTO, entry
[all...]
/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...]
H A DWidgetDatabaseHelper.java118 Entry entry = new Entry();
119 entry.type = TYPE_SINGLE_PHOTO;
120 entry.widgetId = cursor.getInt(0);
121 entry.imageData = cursor.getBlob(1);
122 data.add(entry);
134 Entry entry = new Entry();
135 entry.type = TYPE_SINGLE_PHOTO;
136 entry.widgetId = cursor.getInt(0);
137 entry.imageData = cursor.getBlob(1);
138 entry
281 updateEntry(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...]
H A DFileCache.java104 FileEntry entry = new FileEntry();
105 entry.hashCode = Utils.crc64Long(downloadUrl);
106 entry.contentUrl = downloadUrl;
107 entry.filename = file.getName();
108 entry.size = file.length();
109 entry.lastAccess = System.currentTimeMillis();
110 if (entry.size >= mCapacity) {
112 throw new IllegalArgumentException("file too large: " + entry.size);
118 entry.filename = original.filename;
119 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/Mms/src/com/android/mms/dom/smil/
H A DSmilPlayer.java221 TimelineEntry entry = new TimelineEntry(beginOffset,
223 timeline.add(entry);
234 TimelineEntry entry = new TimelineEntry(endOffset,
236 timeline.add(entry);
376 private synchronized boolean isBeginOfSlide(TimelineEntry entry) { argument
377 return (TimelineEntry.ACTION_BEGIN == entry.getAction())
378 && (entry.getElement() instanceof SmilParElementImpl);
386 TimelineEntry entry = mAllEntries.get(i);
387 actionEntry(entry);
393 TimelineEntry entry
515 actionEntry(TimelineEntry entry) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
H A DGalleryWidgetMigrator.java85 // Check each entry's relativePath. If exists, update bucket id using relative
90 for (Entry entry : entries) {
91 Path path = Path.fromString(entry.albumPath);
94 if (entry.relativePath != null && entry.relativePath.length() > 0) {
95 // update entry using relative path + external storage path
96 updateEntryUsingRelativePath(entry, dbHelper);
99 localEntries.put(bucketId, entry);
140 Entry entry = entries.remove(oldBucketId);
141 if (entry !
159 updateEntryUsingRelativePath(Entry entry, WidgetDatabaseHelper dbHelper) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DIconCache.java155 CacheEntry entry = cacheLocked(application.componentName, info, labelCache);
157 application.title = entry.title;
158 application.iconBitmap = entry.icon;
171 CacheEntry entry = cacheLocked(component, resolveInfo, null);
172 return entry.icon;
183 CacheEntry entry = cacheLocked(component, resolveInfo, labelCache);
184 return entry.icon;
194 CacheEntry entry = mCache.get(componentName);
195 if (entry == null) {
196 entry
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailFragment.java557 final DetailViewEntry entry = DetailViewEntry.fromValues(mContext, dataItem,
559 entry.maxLines = kind.maxLinesForDisplay;
561 final boolean hasData = !TextUtils.isEmpty(entry.data);
569 entry.data = phone.getFormattedPhoneNumber();
571 CallUtil.getCallIntent(entry.data) : null;
575 Uri.fromParts(CallUtil.SCHEME_SMSTO, entry.data, null));
581 entry.intent = phoneIntent;
582 entry.secondaryIntent = smsIntent;
583 entry.secondaryActionIcon = kind.iconAltRes;
584 entry
958 buildImActions(Context context, DetailViewEntry entry, ImDataItem im) argument
1313 collapseWith(DetailViewEntry entry) argument
1342 shouldCollapseWith(DetailViewEntry entry) argument
1672 bindDetailView(int position, View view, DetailViewEntry entry) argument
[all...]

Completed in 386 milliseconds

1234567