Home
last modified time | relevance | path

Searched refs:o (Results 1 – 25 of 222) sorted by relevance

123456789

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionProviderCursor.java112 Object o = mValues[column]; in getDouble() local
113 if (o == null) return 0d; in getDouble()
114 if (o instanceof Double) return (Double) o; in getDouble()
115 return Double.valueOf(o.toString()); in getDouble()
119 Object o = mValues[column]; in getFloat() local
120 if (o == null) return 0f; in getFloat()
121 if (o instanceof Float) return (Float) o; in getFloat()
122 return Float.valueOf(o.toString()); in getFloat()
126 Object o = mValues[column]; in getInt() local
127 if (o == null) return 0; in getInt()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java49 BitmapFactory.Options o = new BitmapFactory.Options(); in getThumbnail() local
50 o.inJustDecodeBounds = true; in getThumbnail()
51 BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length, o); in getThumbnail()
52 if (o.outWidth == 0 || o.outHeight == 0) { in getThumbnail()
55 o.inBitmap = GalleryBitmapPool.getInstance().get(o.outWidth, o.outHeight); in getThumbnail()
56 o.inMutable = true; in getThumbnail()
57 o.inJustDecodeBounds = false; in getThumbnail()
58 o.inSampleSize = 1; in getThumbnail()
60 return BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length, o); in getThumbnail()
82 BitmapFactory.Options o = new BitmapFactory.Options(); in getFullsize() local
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DDiscourseLoggerTest.java42 private static Object[] o(Object... objects) { in o() method in DiscourseLoggerTest
47 checkDiscourseStore(4, o(), s()); in testDiscourseLogger()
49 o( in testDiscourseLogger()
56 o( in testDiscourseLogger()
69 o( in testDiscourseLogger()
83 o( in testDiscourseLogger()
90 o( in testDiscourseLogger()
99 o( in testDiscourseLogger()
109 o( in testDiscourseLogger()
128 for (Object o : discource) { in checkDiscourseStore()
[all …]
/packages/apps/Nfc/nci/jni/
DNativeLlcpSocket.cpp39 static jboolean nativeLlcpSocket_doConnect (JNIEnv* e, jobject o, jint nSap) in nativeLlcpSocket_doConnect() argument
43 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnect()
63 static jboolean nativeLlcpSocket_doConnectBy (JNIEnv* e, jobject o, jstring sn) in nativeLlcpSocket_doConnectBy() argument
67 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnectBy()
92 static jboolean nativeLlcpSocket_doClose(JNIEnv *e, jobject o) in nativeLlcpSocket_doClose() argument
96 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doClose()
116 static jboolean nativeLlcpSocket_doSend (JNIEnv* e, jobject o, jbyteArray data) in nativeLlcpSocket_doSend() argument
122 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doSend()
143 static jint nativeLlcpSocket_doReceive(JNIEnv *e, jobject o, jbyteArray origBuffer) in nativeLlcpSocket_doReceive() argument
149 … PeerToPeer::tJNI_HANDLE jniHandle = (PeerToPeer::tJNI_HANDLE) nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doReceive()
[all …]
DNativeNfcTag.cpp46 extern nfc_jni_native_data* getNative(JNIEnv *e, jobject o);
808 static jint nativeNfcTag_doHandleReconnect (JNIEnv *e, jobject o, jint targetHandle) in nativeNfcTag_doHandleReconnect() argument
811 return nativeNfcTag_doConnect (e, o, targetHandle); in nativeNfcTag_doHandleReconnect()
915 static jbyteArray nativeNfcTag_doTransceive (JNIEnv* e, jobject o, jbyteArray data, jboolean raw, j… in nativeNfcTag_doTransceive() argument
1022 nativeNfcTag_doReconnect (e, o); in nativeNfcTag_doTransceive()
1202 static jint nativeNfcTag_doCheckNdef (JNIEnv* e, jobject o, jintArray ndefInfo) in nativeNfcTag_doCheckNdef() argument
1221 nativeNfcTag_doReconnect (e, o); in nativeNfcTag_doCheckNdef()
1306 nativeNfcTag_doReconnect (e, o); in nativeNfcTag_doCheckNdef()
1453 jobject o, jint /*libNfcType*/, jbyteArray, jbyteArray, in nativeNfcTag_doIsNdefFormatable() argument
1487 jbyteArray respBytes = nativeNfcTag_doTransceive(e, o, versionCmd, JNI_TRUE, NULL); in nativeNfcTag_doIsNdefFormatable()
[all …]
DNativeNfcManager.cpp151 static void nfcManager_doSetScreenState(JNIEnv* e, jobject o, jint screen_state_mask);
171 nfc_jni_native_data *getNative (JNIEnv* e, jobject o) in getNative() argument
176 sCachedNat = nfc_jni_get_nat(e, o); in getNative()
557 static jboolean nfcManager_initNativeStruc (JNIEnv* e, jobject o) in nfcManager_initNativeStruc() argument
571 nat->manager = e->NewGlobalRef(o); in nfcManager_initNativeStruc()
573 ScopedLocalRef<jclass> cls(e, e->GetObjectClass(o)); in nfcManager_initNativeStruc()
575 e->SetLongField(o, f, (jlong)nat); in nfcManager_initNativeStruc()
929 static jboolean nfcManager_doInitialize (JNIEnv* e, jobject o) in nfcManager_doInitialize() argument
977 RoutingManager::getInstance().initialize(getNative(e, o)); in nfcManager_doInitialize()
979 NfcTag::getInstance().initialize (getNative(e, o)); in nfcManager_doInitialize()
[all …]
DNfcJniUtil.cpp119 int nfc_jni_get_nfc_socket_handle (JNIEnv *e, jobject o) in nfc_jni_get_nfc_socket_handle() argument
121 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nfc_jni_get_nfc_socket_handle()
123 return e->GetIntField(o, f); in nfc_jni_get_nfc_socket_handle()
138 struct nfc_jni_native_data* nfc_jni_get_nat(JNIEnv *e, jobject o) in nfc_jni_get_nat() argument
140 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nfc_jni_get_nat()
143 return (struct nfc_jni_native_data*) e->GetLongField(o, f); in nfc_jni_get_nat()
/packages/services/Car/service/src/com/android/car/hal/
DCarPropertyUtils.java72 Object o = carProp.getValue(); in toVehiclePropValue() local
74 if (o instanceof Boolean) { in toVehiclePropValue()
75 v.int32Values.add(((Boolean )o) ? 1 : 0); in toVehiclePropValue()
76 } else if (o instanceof Integer) { in toVehiclePropValue()
77 v.int32Values.add((Integer) o); in toVehiclePropValue()
78 } else if (o instanceof Float) { in toVehiclePropValue()
79 v.floatValues.add((Float) o); in toVehiclePropValue()
80 } else if (o instanceof Integer[]) { in toVehiclePropValue()
81 Collections.addAll(v.int32Values, (Integer[]) o); in toVehiclePropValue()
82 } else if (o instanceof Float[]) { in toVehiclePropValue()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Ddocument.h585 Allocator::Free(data_.o.members);
710 if (data_.o.size != rhs.data_.o.size)
829 SizeType MemberCount() const { RAPIDJSON_ASSERT(IsObject()); return data_.o.size; }
832 bool ObjectEmpty() const { RAPIDJSON_ASSERT(IsObject()); return data_.o.size == 0; }
882 … MemberBegin() const { RAPIDJSON_ASSERT(IsObject()); return ConstMemberIterator(data_.o.members); }
885 …nst { RAPIDJSON_ASSERT(IsObject()); return ConstMemberIterator(data_.o.members + data_.o.size); }
888 … MemberBegin() { RAPIDJSON_ASSERT(IsObject()); return MemberIterator(data_.o.members); }
891 … { RAPIDJSON_ASSERT(IsObject()); return MemberIterator(data_.o.members + data_.o.size); }
997 Object& o = data_.o;
998 if (o.size >= o.capacity) {
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DContactsMatchers.java73 public boolean matches(Object o) { in hasCount()
74 if (!(o instanceof Cursor)) return false; in hasCount()
75 return ((Cursor)o).getCount() == count; in hasCount()
89 public boolean matches(Object o) {
90 if (!(o instanceof Cursor)) return false;
91 final Cursor cursor = (Cursor)o;
107 public boolean matches(Object o) {
108 if (!(o instanceof Cursor)) return false;
109 final Cursor cursor = (Cursor)o;
131 public boolean matches(Object o) {
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp933 Value o(kObjectType); in TEST() local
934 o.AddMember("true", true, allocator); in TEST()
935 o.AddMember("false", false, allocator); in TEST()
936 o.AddMember("int", -1, allocator); in TEST()
937 o.AddMember("uint", 1u, allocator); in TEST()
938 o.AddMember("int64", INT64_C(-4294967296), allocator); in TEST()
939 o.AddMember("uint64", UINT64_C(4294967296), allocator); in TEST()
940 o.AddMember("double", 3.14, allocator); in TEST()
941 o.AddMember("string", "Jelly", allocator); in TEST()
943 EXPECT_TRUE(o["true"].GetBool()); in TEST()
[all …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/
DOpenWnnDictionaryImplJni.c64 int i, o; in convertStringToNjChar() local
67 for( i = o = 0 ; src[ i ] != 0x00 && o < maxChars ; ) { in convertStringToNjChar()
69 dst_tmp = ( NJ_UINT8* )&( dst[ o ] ); in convertStringToNjChar()
77 o++; in convertStringToNjChar()
87 o++; in convertStringToNjChar()
97 o++; in convertStringToNjChar()
106 if( !( o < maxChars - 1 ) ) { in convertStringToNjChar()
122 o += 2; in convertStringToNjChar()
127 dst[ o ] = NJ_CHAR_NUL; in convertStringToNjChar()
140 int i, o; in convertNjCharToString() local
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DContactRequest.java52 public boolean equals(final Object o) { in equals() argument
53 if (this == o) { in equals()
56 if (o == null || getClass() != o.getClass()) { in equals()
60 final ContactRequest that = (ContactRequest) o; in equals()
124 public boolean equals(final Object o) { in equals() argument
125 if (this == o) { in equals()
128 if (o == null || getClass() != o.getClass()) { in equals()
132 final ContactRequestHolder that = (ContactRequestHolder) o; in equals()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKey.java493 private boolean equalsInternal(final Key o) { in equalsInternal() argument
494 if (this == o) return true; in equalsInternal()
495 return o.mX == mX in equalsInternal()
496 && o.mY == mY in equalsInternal()
497 && o.mWidth == mWidth in equalsInternal()
498 && o.mHeight == mHeight in equalsInternal()
499 && o.mCode == mCode in equalsInternal()
500 && TextUtils.equals(o.mLabel, mLabel) in equalsInternal()
501 && TextUtils.equals(o.mHintLabel, mHintLabel) in equalsInternal()
502 && o.mIconId == mIconId in equalsInternal()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java234 public boolean equals(Object o) { in equals() argument
235 return this == o || (o != null && o instanceof Message in equals()
236 && Objects.equal(uri, ((Message) o).uri)); in equals()
251 public boolean isEqual(Message o) { in isEqual() argument
252 return TextUtils.equals(this.getFrom(), o.getFrom()) && in isEqual()
253 this.sendingState == o.sendingState && in isEqual()
254 this.starred == o.starred && in isEqual()
255 this.read == o.read && in isEqual()
256 TextUtils.equals(this.getTo(), o.getTo()) && in isEqual()
257 TextUtils.equals(this.getCc(), o.getCc()) && in isEqual()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEvenMoreAsserts.java102 BitmapFactory.Options o = new BitmapFactory.Options(); in getImageDimensions() local
103 o.inJustDecodeBounds = true; in getImageDimensions()
104 BitmapFactory.decodeByteArray(imageData, 0, imageData.length, o); in getImageDimensions()
106 return "[" + o.outWidth + " x " + o.outHeight + "]"; in getImageDimensions()
111 for (Object o : values) { in assertUnique()
112 Assert.assertFalse("Duplicate found: " + o, set.contains(o)); in assertUnique()
113 set.add(o); in assertUnique()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java1255 public abstract void writeToXml(T o, XmlSerializer serializer, Context context)
1469 public void writeToXml(State o, XmlSerializer serializer, Context context)
1471 if (o != null) {
1476 for (DefaultPhoneAccountHandle defaultPhoneAccountHandle : o
1484 for (PhoneAccount m : o.accounts) {
1562 public void writeToXml(DefaultPhoneAccountHandle o, XmlSerializer serializer,
1564 if (o != null) {
1566 final long serialNumber = userManager.getSerialNumberForUser(o.userHandle);
1570 writeNonNullString(GROUP_ID, o.groupId, serializer);
1572 sPhoneAccountHandleXml.writeToXml(o.phoneAccountHandle, serializer,
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DWidgetPreviewLoader.java191 public Bitmap getPreview(final Object o) { in getPreview() argument
192 String name = getObjectName(o); in getPreview()
196 packageValid = !sInvalidPackages.contains(getObjectPackage(o)); in getPreview()
245 final Bitmap generatedPreview = generatePreview(o, unusedBitmap); in getPreview()
248 throw new RuntimeException("generatePreview is not recycling the bitmap " + o); in getPreview()
259 writeToDb(o, generatedPreview); in getPreview()
268 public void recycleBitmap(Object o, Bitmap bitmapToRecycle) { in recycleBitmap() argument
269 String name = getObjectName(o); in recycleBitmap()
324 private static String getObjectName(Object o) { in getObjectName() argument
328 if (o instanceof AppWidgetProviderInfo) { in getObjectName()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHTML.java130 public boolean equals(Object o) { in equals() argument
131 if (o == this) { in equals()
134 if (o instanceof HTML.Element) { in equals()
135 HTML.Element that = (HTML.Element) o; in equals()
222 public boolean equals(Object o) { in equals() argument
223 if (o == this) { in equals()
226 if (o instanceof HTML.Attribute) { in equals()
227 HTML.Attribute that = (HTML.Attribute) o; in equals()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
DPgmImage.cpp241 std::ostream& operator<< (std::ostream& o, const PgmImage& im) in operator <<() argument
243 o << "PGM Image Info:\n"; in operator <<()
244 o << "Size: " << im.m_w << " x " << im.m_h << "\n"; in operator <<()
245 o << "Comment: " << im.m_comment << "\n"; in operator <<()
249 o << "Format: RGB binary pixmap"; in operator <<()
252 o << "Format: PPM binary graymap"; in operator <<()
255 o << "Format: Invalid"; in operator <<()
258 o << endl; in operator <<()
259 return o; in operator <<()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DDynamicGridKeyboard.java172 for (final Object o : keys) { in loadRecentKeys()
174 if (o instanceof Integer) { in loadRecentKeys()
175 final int code = (Integer)o; in loadRecentKeys()
177 } else if (o instanceof String) { in loadRecentKeys()
178 final String outputText = (String)o; in loadRecentKeys()
181 Log.w(TAG, "Invalid object: " + o); in loadRecentKeys()
251 public boolean equals(final Object o) { in equals() argument
252 if (!(o instanceof Key)) return false; in equals()
253 final Key key = (Key)o; in equals()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDebugLogUtils.java35 public static String s(final Object o) { in s() argument
36 return null == o ? "null" : o.toString(); in s()
91 for (final Object o : args) { in l()
92 sb.append(s(o).toString()); in l()
108 for (final Object o : args) { in r()
109 sb.append(s(o).toString()); in r()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DBlend.cpp471 for (int o = tw; o >= 0; o--) in DoMergeAndBlend() local
474 imgMos.V.ptr[y][x - o] = idx2; in DoMergeAndBlend()
476 imgMos.U.ptr[y][x - o] = 50 + (99 - 50) * o / tw; in DoMergeAndBlend()
479 for (int o = 1; o <= tw; o++) in DoMergeAndBlend() local
482 imgMos.V.ptr[y][x + o] = idx1; in DoMergeAndBlend()
484 imgMos.U.ptr[y][x + o] = imgMos.U.ptr[y][x - o]; in DoMergeAndBlend()
524 for (int o = tw; o >= 0; o--) in DoMergeAndBlend() local
527 imgMos.V.ptr[y - o][x] = idx2; in DoMergeAndBlend()
529 imgMos.U.ptr[y - o][x] = 50 + (99 - 50) * o / tw; in DoMergeAndBlend()
532 for (int o = 1; o <= tw; o++) in DoMergeAndBlend() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DNgramContext.java87 public boolean equals(Object o) { in equals() argument
88 if (this == o) return true; in equals()
89 if (!(o instanceof WordInfo)) return false; in equals()
90 final WordInfo wordInfo = (WordInfo)o; in equals()
239 public boolean equals(Object o) { in equals() argument
240 if (this == o) return true; in equals()
241 if (!(o instanceof NgramContext)) return false; in equals()
242 final NgramContext prevWordsInfo = (NgramContext)o; in equals()
/packages/services/Telephony/src/com/android/phone/
DCallLogger.java123 Object o = conn.getUserData(); in getCallerInfoFromConnection() local
125 if ((o == null) || (o instanceof CallerInfo)) { in getCallerInfoFromConnection()
126 ci = (CallerInfo) o; in getCallerInfoFromConnection()
127 } else if (o instanceof Uri) { in getCallerInfoFromConnection()
128 ci = CallerInfo.getCallerInfo(mApplication.getApplicationContext(), (Uri) o); in getCallerInfoFromConnection()
130 ci = ((PhoneUtils.CallerInfoToken) o).currentInfo; in getCallerInfoFromConnection()

123456789