Home
last modified time | relevance | path

Searched refs:object (Results 1 – 25 of 84) sorted by relevance

1234

/packages/apps/Mms/src/com/android/mms/model/
DSlideModel.java177 private boolean internalRemove(Object object) { in internalRemove() argument
178 if (mMedia.remove(object)) { in internalRemove()
179 if (object instanceof TextModel) { in internalRemove()
181 } else if (object instanceof ImageModel) { in internalRemove()
184 } else if (object instanceof AudioModel) { in internalRemove()
187 } else if (object instanceof VideoModel) { in internalRemove()
195 int decreaseSize = ((MediaModel) object).getMediaResizable() ? 0 in internalRemove()
196 : ((MediaModel) object).getMediaSize(); in internalRemove()
200 ((Model) object).unregisterAllModelChangedObservers(); in internalRemove()
276 public boolean add(MediaModel object) { in add() argument
[all …]
DSlideshowModel.java373 public boolean add(SlideModel object) { in add() argument
374 int increaseSize = object.getSlideSize(); in add()
377 if ((object != null) && mSlides.add(object)) { in add()
379 object.registerModelChangedObserver(this); in add()
381 object.registerModelChangedObserver(observer); in add()
407 public boolean contains(Object object) { in contains() argument
408 return mSlides.contains(object); in contains()
423 public boolean remove(Object object) { in remove() argument
424 if ((object != null) && mSlides.remove(object)) { in remove()
425 SlideModel slide = (SlideModel) object; in remove()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java103 public <T extends Entry> T cursorToObject(Cursor cursor, T object) { in cursorToObject() argument
110 field.set(object, cursor.isNull(columnIndex) in cursorToObject()
115 field.setBoolean(object, cursor.getShort(columnIndex) == 1); in cursorToObject()
118 field.setShort(object, cursor.getShort(columnIndex)); in cursorToObject()
121 field.setInt(object, cursor.getInt(columnIndex)); in cursorToObject()
124 field.setLong(object, cursor.getLong(columnIndex)); in cursorToObject()
127 field.setFloat(object, cursor.getFloat(columnIndex)); in cursorToObject()
130 field.setDouble(object, cursor.getDouble(columnIndex)); in cursorToObject()
133 field.set(object, cursor.isNull(columnIndex) in cursorToObject()
139 return object; in cursorToObject()
[all …]
DUtils.java63 public static <T> T checkNotNull(T object) { in checkNotNull() argument
64 if (object == null) throw new NullPointerException(); in checkNotNull()
65 return object; in checkNotNull()
261 public static void waitWithoutInterrupt(Object object) { in waitWithoutInterrupt() argument
263 object.wait(); in waitWithoutInterrupt()
265 Log.w(TAG, "unexpected interrupt: " + object); in waitWithoutInterrupt()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDetailViewPagerAdapter.java77 public int getItemPosition(Object object) { in getItemPosition() argument
80 if (object == mAboutFragmentView) { in getItemPosition()
84 if (object == mUpdatesFragmentView && mFragmentViewCount > 1) { in getItemPosition()
109 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
110 ((View) object).setVisibility(View.GONE); in destroyItem()
118 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument
119 return ((View) object) == view; in isViewFromObject()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java120 MediaObject object = mDataManager.getMediaObject(path); in query() local
121 if (object == null) { in query()
125 if (PicasaSource.isPicasaImage(object)) { in query()
126 return queryPicasaItem(object, in query()
128 } else if (object instanceof MtpImage) { in query()
129 return queryMtpItem((MtpImage) object, in query()
207 MediaObject object = mDataManager.getMediaObject(path); in openFile() local
208 if (object == null) { in openFile()
211 if (PicasaSource.isPicasaImage(object)) { in openFile()
212 return PicasaSource.openFile(getContext(), object, mode); in openFile()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DRangeBoolArray.java35 public void put(int i, boolean object) { in put() argument
36 mData[i - mOffset] = object; in put()
43 public int indexOf(boolean object) { in indexOf() argument
45 if (mData[i] == object) return i + mOffset; in indexOf()
DRangeIntArray.java35 public void put(int i, int object) { in put() argument
36 mData[i - mOffset] = object; in put()
43 public int indexOf(int object) { in indexOf() argument
45 if (mData[i] == object) return i + mOffset; in indexOf()
DRangeArray.java38 public void put(int i, T object) { in put() argument
39 mData[i - mOffset] = object; in put()
46 public int indexOf(T object) { in indexOf() argument
48 if (mData[i] == object) return i + mOffset; in indexOf()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp47 static jlong latinime_BinaryDictionary_open(JNIEnv *env, jobject object, in latinime_BinaryDictionary_open() argument
129 static int latinime_BinaryDictionary_getSuggestions(JNIEnv *env, jobject object, jlong dict, in latinime_BinaryDictionary_getSuggestions() argument
158 static int latinime_BinaryDictionary_getBigrams(JNIEnv *env, jobject object, jlong dict, in latinime_BinaryDictionary_getBigrams() argument
176 static jint latinime_BinaryDictionary_getFrequency(JNIEnv *env, jobject object, jlong dict, in latinime_BinaryDictionary_getFrequency() argument
186 static jboolean latinime_BinaryDictionary_isValidBigram(JNIEnv *env, jobject object, jlong dict, in latinime_BinaryDictionary_isValidBigram() argument
200 static jfloat latinime_BinaryDictionary_calcNormalizedScore(JNIEnv *env, jobject object, in latinime_BinaryDictionary_calcNormalizedScore() argument
211 static jint latinime_BinaryDictionary_editDistance(JNIEnv *env, jobject object, in latinime_BinaryDictionary_editDistance() argument
222 static void latinime_BinaryDictionary_close(JNIEnv *env, jobject object, jlong dict) { in latinime_BinaryDictionary_close() argument
Dcom_android_inputmethod_keyboard_ProximityInfo.cpp32 static jlong latinime_Keyboard_setProximityInfo(JNIEnv *env, jobject object, in latinime_Keyboard_setProximityInfo() argument
71 static void latinime_Keyboard_release(JNIEnv *env, jobject object, jlong proximityInfo) { in latinime_Keyboard_release() argument
/packages/apps/Email/src/com/android/email/provider/
DContentCache.java129 /*package*/ synchronized int subtract(T object) { in subtract() argument
130 Integer refCount = mMap.get(object); in subtract()
137 mMap.put(object, newCount); in subtract()
140 mMap.remove(object); in subtract()
145 /*package*/ synchronized void add(T object) { in add() argument
146 Integer refCount = mMap.get(object); in add()
148 mMap.put(object, 1); in add()
150 mMap.put(object, refCount + 1); in add()
154 /*package*/ synchronized boolean contains(T object) { in contains() argument
155 return mMap.containsKey(object); in contains()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DMovieEffect.java177 public boolean equals(Object object) { in equals() argument
178 if (!(object instanceof MovieEffect)) { in equals()
181 return mUniqueId.equals(((MovieEffect)object).mUniqueId); in equals()
DMovieOverlay.java200 public boolean equals(Object object) { in equals() argument
201 if (!(object instanceof MovieOverlay)) { in equals()
204 return mUniqueId.equals(((MovieOverlay)object).mUniqueId); in equals()
DMovieAudioTrack.java433 public boolean equals(Object object) { in equals() argument
434 if (!(object instanceof MovieAudioTrack)) { in equals()
437 return mUniqueId.equals(((MovieAudioTrack)object).mUniqueId); in equals()
DMovieMediaItem.java479 public boolean equals(Object object) { in equals() argument
480 if (!(object instanceof MovieMediaItem)) { in equals()
483 return mUniqueId.equals(((MovieMediaItem)object).mUniqueId); in equals()
DMovieTransition.java336 public boolean equals(Object object) { in equals() argument
337 if (!(object instanceof MovieTransition)) { in equals()
340 return mUniqueId.equals(((MovieTransition)object).mUniqueId); in equals()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DUtil.java33 static byte[] toBytes(Object object) { in toBytes() argument
37 os.writeObject(object); in toBytes()
40 Log.w(TAG, "toBytes(): " + e + ": " + object); in toBytes()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbumSet.java225 MediaObject object = manager.peekMediaObject(path); in getLocalAlbum() local
226 if (object != null) return (MediaSet) object; in getLocalAlbum()
326 public boolean equals(Object object) { in equals() argument
327 if (!(object instanceof BucketEntry)) return false; in equals()
328 BucketEntry entry = (BucketEntry) object; in equals()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactsSource.java275 public boolean equals(Object object) { in equals() argument
276 if (object instanceof EditType) { in equals()
277 final EditType other = (EditType)object; in equals()
DEntityDelta.java274 public boolean equals(Object object) { in equals() argument
275 if (object instanceof EntityDelta) { in equals()
276 final EntityDelta other = (EntityDelta)object; in equals()
736 public boolean equals(Object object) { in equals() argument
737 if (object instanceof ValuesDelta) { in equals()
739 final ValuesDelta other = (ValuesDelta)object; in equals()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculator.java314 public void destroyItem(View container, int position, Object object) { in destroyItem() argument
315 ((ViewGroup) container).removeView((View) object); in destroyItem()
323 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument
324 return view == object; in isViewFromObject()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DUploadedTexture.java98 public boolean equals(Object object) { in equals() argument
99 if (!(object instanceof BorderKey)) return false; in equals()
100 BorderKey o = (BorderKey) object; in equals()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountType.java390 public boolean equals(Object object) { in equals() argument
391 if (object instanceof EditType) { in equals()
392 final EditType other = (EditType)object; in equals()
/packages/apps/Contacts/src/com/android/contacts/activities/
DPeopleActivity.java841 public int getItemPosition(Object object) { in getItemPosition() argument
843 if (object == mAllFragment) { in getItemPosition()
847 if (object == mFavoritesFragment) { in getItemPosition()
850 if (object == mAllFragment) { in getItemPosition()
853 if (object == mGroupsFragment) { in getItemPosition()
899 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
903 mCurTransaction.hide((Fragment) object); in destroyItem()
916 public boolean isViewFromObject(View view, Object object) { in isViewFromObject() argument
917 return ((Fragment) object).getView() == view; in isViewFromObject()
921 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
[all …]

1234