/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | MockSuggestionProviderCursor.java | 112 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/ |
D | MtpBitmapFetch.java | 49 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/ |
D | DiscourseLoggerTest.java | 42 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/nxp/jni/ |
D | com_android_nfc.cpp | 153 struct nfc_jni_native_data* nfc_jni_get_nat(JNIEnv *e, jobject o) in nfc_jni_get_nat() argument 156 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nfc_jni_get_nat() 158 return (struct nfc_jni_native_data*) e->GetLongField(o, f); in nfc_jni_get_nat() 228 phLibNfc_Handle nfc_jni_get_p2p_device_handle(JNIEnv *e, jobject o) in nfc_jni_get_p2p_device_handle() argument 230 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nfc_jni_get_p2p_device_handle() 232 return e->GetIntField(o, f); in nfc_jni_get_p2p_device_handle() 235 jshort nfc_jni_get_p2p_device_mode(JNIEnv *e, jobject o) in nfc_jni_get_p2p_device_mode() argument 237 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); in nfc_jni_get_p2p_device_mode() 239 return e->GetShortField(o, f); in nfc_jni_get_p2p_device_mode() 243 int nfc_jni_get_connected_tech_index(JNIEnv *e, jobject o) in nfc_jni_get_connected_tech_index() argument [all …]
|
D | com_android_nfc_NativeLlcpSocket.cpp | 112 static jboolean com_android_nfc_NativeLlcpSocket_doConnect(JNIEnv *e, jobject o, jint nSap) in com_android_nfc_NativeLlcpSocket_doConnect() argument 122 hRemoteDevice = nfc_jni_get_p2p_device_handle(e,o); in com_android_nfc_NativeLlcpSocket_doConnect() 123 hLlcpSocket = nfc_jni_get_nfc_socket_handle(e,o); in com_android_nfc_NativeLlcpSocket_doConnect() 166 static jboolean com_android_nfc_NativeLlcpSocket_doConnectBy(JNIEnv *e, jobject o, jstring sn) in com_android_nfc_NativeLlcpSocket_doConnectBy() argument 177 hRemoteDevice = nfc_jni_get_p2p_device_handle(e,o); in com_android_nfc_NativeLlcpSocket_doConnectBy() 178 hLlcpSocket = nfc_jni_get_nfc_socket_handle(e,o); in com_android_nfc_NativeLlcpSocket_doConnectBy() 227 static jboolean com_android_nfc_NativeLlcpSocket_doClose(JNIEnv *e, jobject o) in com_android_nfc_NativeLlcpSocket_doClose() argument 233 hLlcpSocket = nfc_jni_get_nfc_socket_handle(e,o); in com_android_nfc_NativeLlcpSocket_doClose() 248 static jboolean com_android_nfc_NativeLlcpSocket_doSend(JNIEnv *e, jobject o, jbyteArray data) in com_android_nfc_NativeLlcpSocket_doSend() argument 259 hRemoteDevice = nfc_jni_get_p2p_device_handle(e,o); in com_android_nfc_NativeLlcpSocket_doSend() [all …]
|
D | com_android_nfc.h | 239 struct nfc_jni_native_data* nfc_jni_get_nat(JNIEnv *e, jobject o); 251 phLibNfc_Handle nfc_jni_get_p2p_device_handle(JNIEnv *e, jobject o); 252 jshort nfc_jni_get_p2p_device_mode(JNIEnv *e, jobject o); 255 jint nfc_jni_get_connected_technology(JNIEnv *e, jobject o); 256 jint nfc_jni_get_connected_technology_libnfc_type(JNIEnv *e, jobject o); 257 phLibNfc_Handle nfc_jni_get_connected_handle(JNIEnv *e, jobject o); 258 jintArray nfc_jni_get_nfc_tag_type(JNIEnv *e, jobject o); 261 phLibNfc_Handle nfc_jni_get_nfc_socket_handle(JNIEnv *e, jobject o);
|
D | com_android_nfc_NativeP2pDevice.cpp | 120 static jboolean com_android_nfc_NativeP2pDevice_doConnect(JNIEnv *e, jobject o) in com_android_nfc_NativeP2pDevice_doConnect() argument 137 handle = nfc_jni_get_p2p_device_handle(e, o); in com_android_nfc_NativeP2pDevice_doConnect() 169 target_cls.reset(e->GetObjectClass(o)); in com_android_nfc_NativeP2pDevice_doConnect() 186 e->SetObjectField(o, f, generalBytes); in com_android_nfc_NativeP2pDevice_doConnect() 201 static jboolean com_android_nfc_NativeP2pDevice_doDisconnect(JNIEnv *e, jobject o) in com_android_nfc_NativeP2pDevice_doDisconnect() argument 210 handle = nfc_jni_get_p2p_device_handle(e, o); in com_android_nfc_NativeP2pDevice_doDisconnect() 271 jobject o, jbyteArray data) in com_android_nfc_NativeP2pDevice_doTransceive() argument 279 phLibNfc_Handle handle = nfc_jni_get_p2p_device_handle(e, o); in com_android_nfc_NativeP2pDevice_doTransceive() 357 JNIEnv *e, jobject o) in com_android_nfc_NativeP2pDevice_doReceive() argument 368 handle = nfc_jni_get_p2p_device_handle(e, o); in com_android_nfc_NativeP2pDevice_doReceive() [all …]
|
D | com_android_nfc_NativeNfcTag.cpp | 179 jobject o) in com_android_nfc_NativeNfcTag_doRead() argument 194 handle = nfc_jni_get_connected_handle(e, o); in com_android_nfc_NativeNfcTag_doRead() 238 jobject o, jbyteArray buf) in com_android_nfc_NativeNfcTag_doWrite() argument 244 phLibNfc_Handle handle = nfc_jni_get_connected_handle(e, o); in com_android_nfc_NativeNfcTag_doWrite() 442 jobject o, phLibNfc_Handle handle) in com_android_nfc_NativeNfcTag_doConnect() argument 487 set_target_pollBytes(e, o, pRemDevInfo); in com_android_nfc_NativeNfcTag_doConnect() 488 set_target_activationBytes(e, o, pRemDevInfo); in com_android_nfc_NativeNfcTag_doConnect() 546 jobject o) in com_android_nfc_NativeNfcTag_doReconnect() argument 550 int libNfcType = nfc_jni_get_connected_technology_libnfc_type(e, o); in com_android_nfc_NativeNfcTag_doReconnect() 555 phLibNfc_Handle handle = nfc_jni_get_connected_handle(e,o); in com_android_nfc_NativeNfcTag_doReconnect() [all …]
|
D | com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 58 static jboolean com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo(JNIEnv *e, jobject o, jint … in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() argument 69 hRemoteDevice = nfc_jni_get_p2p_device_handle(e,o); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 70 hLlcpSocket = nfc_jni_get_nfc_socket_handle(e,o); in com_android_nfc_NativeLlcpConnectionlessSocket_doSendTo() 120 static jobject com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom(JNIEnv *e, jobject o, j… in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() argument 156 hRemoteDevice = nfc_jni_get_p2p_device_handle(e,o); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 157 hLlcpSocket = nfc_jni_get_nfc_socket_handle(e,o); in com_android_nfc_NativeLlcpConnectionlessSocket_doReceiveFrom() 208 static jboolean com_android_nfc_NativeLlcpConnectionlessSocket_doClose(JNIEnv *e, jobject o) in com_android_nfc_NativeLlcpConnectionlessSocket_doClose() argument 215 hLlcpSocket = nfc_jni_get_nfc_socket_handle(e,o); in com_android_nfc_NativeLlcpConnectionlessSocket_doClose()
|
/packages/apps/Nfc/nci/jni/ |
D | NativeLlcpSocket.cpp | 39 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 …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | IntentStore.java | 119 Object o = intent.getExtra(key); in writeExtras() local 120 if (o instanceof String) { in writeExtras() 121 writeTag(serializer, TAG_STRING, key, (String) o); in writeExtras() 122 } else if (o instanceof Integer) { in writeExtras() 123 writeTag(serializer, TAG_INTEGER, key, o.toString()); in writeExtras() 124 } else if (o instanceof Long) { in writeExtras() 125 writeTag(serializer, TAG_LONG, key, o.toString()); in writeExtras() 126 } else if (o instanceof Boolean) { in writeExtras() 127 writeTag(serializer, TAG_BOOLEAN, key, o.toString()); in writeExtras() 128 } else if (o instanceof ComponentName) { in writeExtras() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarInfoService.java | 63 Object o = findFromCache(key); in getInt() local 64 if (o != null) { in getInt() 65 return (int[])o; in getInt() 77 Object o = findFromCache(key); in getFloat() local 78 if (o != null) { in getFloat() 79 return (float[])o; in getFloat() 91 Object o = findFromCache(key); in getLong() local 92 if (o != null) { in getLong() 93 return (long[])o; in getLong() 110 Object o = findFromCache(key); in getString() local [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 85 Object o = hvacProp.getValue(); in toVehiclePropValue() local 88 int vectorLength = (o instanceof Object[] ? ((Object[]) o).length : 0); in toVehiclePropValue() 90 if (o instanceof Boolean) { in toVehiclePropValue() 92 builder.addInt32Values(((Boolean )o) ? 1 : 0); in toVehiclePropValue() 93 } else if (o instanceof Integer) { in toVehiclePropValue() 95 builder.addInt32Values((Integer) o); in toVehiclePropValue() 96 } else if (o instanceof Float) { in toVehiclePropValue() 98 builder.addFloatValues((Float) o); in toVehiclePropValue() 99 } else if (o instanceof Integer[]) { in toVehiclePropValue() 103 for (Integer i : (Integer[]) o) { in toVehiclePropValue() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
D | ContactRequest.java | 52 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | EvenMoreAsserts.java | 102 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/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
D | HTML.java | 130 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/Launcher3/src/com/android/launcher3/model/ |
D | WidgetsAndShortcutNameComparator.java | 74 private ComponentKey getComponentKey(Object o) { in getComponentKey() argument 75 if (o instanceof LauncherAppWidgetProviderInfo) { in getComponentKey() 76 LauncherAppWidgetProviderInfo widgetInfo = (LauncherAppWidgetProviderInfo) o; in getComponentKey() 79 ResolveInfo shortcutInfo = (ResolveInfo) o; in getComponentKey() 90 private String getLabel(Object o) { in getLabel() argument 91 if (o instanceof LauncherAppWidgetProviderInfo) { in getLabel() 92 LauncherAppWidgetProviderInfo widgetInfo = (LauncherAppWidgetProviderInfo) o; in getLabel() 95 ResolveInfo shortcutInfo = (ResolveInfo) o; in getLabel()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | DebugLogUtils.java | 35 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/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | document.h | 585 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/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | PgmImage.cpp | 241 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/ |
D | Key.java | 493 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/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | valuetest.cpp | 933 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/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Message.java | 234 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | DynamicGridKeyboard.java | 172 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/OpenWnn/libs/libwnnDictionary/ |
D | OpenWnnDictionaryImplJni.c | 64 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 …]
|