/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/modules/NetworkStack/src/com/android/server/ |
D | NetworkObserverRegistry.java | 90 void sendCallback(NetworkObserver o); in sendCallback() argument 115 invokeForAllObservers(o -> o.onInterfaceClassActivityChanged( in onInterfaceClassActivityChanged() 124 invokeForAllObservers(o -> o.onQuotaLimitReached(alertName, ifName)); in onQuotaLimitReached() 129 invokeForAllObservers(o -> o.onInterfaceDnsServerInfo(ifName, lifetime, servers)); in onInterfaceDnsServerInfo() 135 invokeForAllObservers(o -> o.onInterfaceAddressUpdated(address, ifName)); in onInterfaceAddressUpdated() 142 invokeForAllObservers(o -> o.onInterfaceAddressRemoved(address, ifName)); in onInterfaceAddressRemoved() 147 invokeForAllObservers(o -> o.onInterfaceAdded(ifName)); in onInterfaceAdded() 152 invokeForAllObservers(o -> o.onInterfaceRemoved(ifName)); in onInterfaceRemoved() 157 invokeForAllObservers(o -> o.onInterfaceChanged(ifName, up)); in onInterfaceChanged() 162 invokeForAllObservers(o -> o.onInterfaceLinkStateChanged(ifName, up)); in onInterfaceLinkStateChanged() [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/services/Car/car-lib/src/android/car/ |
D | VehicleGear.java | 74 public static String toString(int o) { in toString() argument 75 if (o == GEAR_UNKNOWN) { in toString() 78 if (o == GEAR_NEUTRAL) { in toString() 81 if (o == GEAR_REVERSE) { in toString() 84 if (o == GEAR_PARK) { in toString() 87 if (o == GEAR_DRIVE) { in toString() 90 if (o == GEAR_FIRST) { in toString() 93 if (o == GEAR_SECOND) { in toString() 96 if (o == GEAR_THIRD) { in toString() 99 if (o == GEAR_FOURTH) { in toString() [all …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | SmsHeader.java | 77 public boolean equals(Object o) { in equals() argument 78 if (this == o) return true; in equals() 79 if (o == null || getClass() != o.getClass()) return false; in equals() 80 SmsHeader smsHeader = (SmsHeader) o; in equals() 107 public boolean equals(Object o) { in equals() argument 108 if (this == o) return true; in equals() 109 if (o == null || getClass() != o.getClass()) return false; in equals() 110 PortAddrs portAddrs = (PortAddrs) o; in equals() 135 public boolean equals(Object o) { in equals() argument 136 if (this == o) return true; in equals() [all …]
|
/packages/modules/NeuralNetworks/common/operations/ |
D | RNN.cpp | 179 for (uint32_t o = 0; o < num_units; o++) { in RNNStep() local 180 output_ptr_batch[o] = biasData[o]; in RNNStep() 184 for (uint32_t o = 0; o < num_units; o++) { in RNNStep() local 186 output_ptr_batch[o] += input_ptr_batch[i] * input_weights_ptr[i]; in RNNStep() 193 for (uint32_t o = 0; o < num_units; o++) { in RNNStep() local 195 output_ptr_batch[o] += aux_input_ptr_batch[i] * aux_input_weights_ptr[i]; in RNNStep() 202 for (uint32_t o = 0; o < num_units; o++) { in RNNStep() local 204 output_ptr_batch[o] += hidden_state_in_ptr_batch[h] * recurrent_weights_ptr[h]; in RNNStep() 210 for (uint32_t o = 0; o < num_units; o++) { in RNNStep() local 211 output_ptr_batch[o] = in RNNStep() [all …]
|
/packages/modules/GeoTZ/common/src/main/java/com/android/timezone/location/common/ |
D | PiiLoggables.java | 94 public boolean equals(Object o) { in fromPiiValue() argument 95 if (this == o) { in fromPiiValue() 98 if (o == null || getClass() != o.getClass()) { in fromPiiValue() 101 PiiLoggableValueImpl<?> that = (PiiLoggableValueImpl<?>) o; in fromPiiValue() 140 public boolean equals(Object o) { in fromString() argument 141 if (this == o) { in fromString() 144 if (o == null || getClass() != o.getClass()) { in fromString() 147 PiiLoggableString that = (PiiLoggableString) o; in fromString() 187 public boolean equals(Object o) { in fromTemplate() argument 188 if (this == o) { in fromTemplate() [all …]
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/tzs2range/ |
D | BankedTzIdSets.java | 57 public boolean equals(Object o) { in equals() argument 58 if (this == o) { in equals() 61 if (o == null || getClass() != o.getClass()) { in equals() 64 BankedTzIdSets that = (BankedTzIdSets) o; in equals() 184 public boolean equals(Object o) { in equals() argument 185 if (this == o) { in equals() 188 if (o == null || getClass() != o.getClass()) { in equals() 191 Bank bank = (Bank) o; in equals() 238 public boolean equals(Object o) { in equals() argument 239 if (this == o) { in equals() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | softmax_v1_2.mod.py | 18 o = Output("op2", "TENSOR_FLOAT32", "{2, 2, 2, 5}") # output 0 variable 24 o: ("TENSOR_QUANT8_ASYMM", 1./256, 0) 30 o: [0.643914213228014, 38 o: [0.2] * 40 43 Model().Operation("SOFTMAX", i, 1.0).To(o) 44 Example(example1).AddVariations("relaxed", "float16", quant8).AddDims([1, 3], i, o) 46 Model().Operation("SOFTMAX", i, 0.000001).To(o) 47 Example(example2).AddVariations("relaxed", "float16", quant8).AddDims([1, 3], i, o) 51 Model("axis").Operation("SOFTMAX", i, 1.0, axis).To(o) 52 Example(example1).AddVariations("relaxed", "float16", quant8).AddAllDimsAndAxis(i, o, axis) [all …]
|
D | local_response_normalization_v1_2.mod.py | 18 o = Output("op2", "TENSOR_FLOAT32", "{2, 2, 2, 6}") # output variable 23 Model("axis").Operation("LOCAL_RESPONSE_NORMALIZATION", i, 20, 9.0, 4.0, 0.5, axis).To(o) 25 o: [-.22, .12, .14, .24, -.14, .02] * 8 26 })).AddAllDimsAndAxis(i, o, axis).AddVariations("relaxed", "float16") 29 Model("axis").Operation("LOCAL_RESPONSE_NORMALIZATION", i, 2, 9.0, 4.0, 0.5, axis).To(o) 31 o: [-.26492569, .12510864, .14011213, .26726127, -.16178755, .0244266] * 8 32 })).AddAllDimsAndAxis(i, o, axis).AddVariations("relaxed", "float16") 35 Model().Operation("LOCAL_RESPONSE_NORMALIZATION", i, 2, 9.0, 4.0, 0.5).To(o) 37 o: [-.26492569, .12510864, .14011213, .26726127, -.16178755, .0244266] * 8 38 })).AddDims([1, 2, 3], i, o, includeDefault=False).AddVariations("relaxed", "float16")
|
/packages/apps/Nfc/nci/jni/ |
D | NativeLlcpSocket.cpp | 42 static jboolean nativeLlcpSocket_doConnect(JNIEnv* e, jobject o, jint nSap) { in nativeLlcpSocket_doConnect() argument 47 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnect() 66 static jboolean nativeLlcpSocket_doConnectBy(JNIEnv* e, jobject o, jstring sn) { in nativeLlcpSocket_doConnectBy() argument 70 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doConnectBy() 94 static jboolean nativeLlcpSocket_doClose(JNIEnv* e, jobject o) { in nativeLlcpSocket_doClose() argument 98 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doClose() 117 static jboolean nativeLlcpSocket_doSend(JNIEnv* e, jobject o, jbyteArray data) { in nativeLlcpSocket_doSend() argument 123 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doSend() 144 static jint nativeLlcpSocket_doReceive(JNIEnv* e, jobject o, in nativeLlcpSocket_doReceive() argument 151 (PeerToPeer::tJNI_HANDLE)nfc_jni_get_nfc_socket_handle(e, o); in nativeLlcpSocket_doReceive() [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeConfigPayload.java | 331 public boolean equals(Object o) { in equals() argument 332 if (!(o instanceof ConfigAttribute)) { in equals() 336 return attributeType == ((ConfigAttribute) o).attributeType; in equals() 466 public boolean equals(Object o) { in equals() argument 467 if (!super.equals(o) || !(o instanceof TunnelModeChildConfigAttrIpv4AddressBase)) { in equals() 472 (TunnelModeChildConfigAttrIpv4AddressBase) o; in equals() 540 public boolean equals(Object o) { in equals() argument 541 if (!super.equals(o) || !(o instanceof IkeConfigAttrIpv4AddressBase)) { in equals() 545 IkeConfigAttrIpv4AddressBase other = (IkeConfigAttrIpv4AddressBase) o; in equals() 773 public boolean equals(Object o) { in equals() argument [all …]
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | softmax_quant8_signed.mod.py | 59 o = Output("op2", "TENSOR_FLOAT32", "{2, 2, 2, 5}") # output 0 variable 65 o: ("TENSOR_QUANT8_ASYMM_SIGNED", 1./256, -128) 71 o: [0.643914213228014, 79 o: [0.2] * 40 84 Model().Operation("SOFTMAX", i, 1.0).To(o) 85 Example(example1).AddVariations(quant8_signed, includeDefault=False).AddDims([1, 3], i, o) 87 Model().Operation("SOFTMAX", i, 0.000001).To(o) 88 Example(example2).AddVariations(quant8_signed, includeDefault=False).AddDims([1, 3], i, o) 93 Model("axis").Operation("SOFTMAX", i, 1.0, axis).To(o) 94 Example(example1).AddVariations(quant8_signed, includeDefault=False).AddAllDimsAndAxis(i, o, axis) [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | ContactsMatchers.java | 73 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/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 148 Object o = carProp.getValue(); in toVehiclePropValue() local 150 if (o instanceof Boolean) { in toVehiclePropValue() 151 v.int32Values.add(((Boolean) o) ? 1 : 0); in toVehiclePropValue() 152 } else if (o instanceof Integer) { in toVehiclePropValue() 153 v.int32Values.add((Integer) o); in toVehiclePropValue() 154 } else if (o instanceof Integer[]) { in toVehiclePropValue() 155 Collections.addAll(v.int32Values, (Integer[]) o); in toVehiclePropValue() 156 } else if (o instanceof Float) { in toVehiclePropValue() 157 v.floatValues.add((Float) o); in toVehiclePropValue() 158 } else if (o instanceof Float[]) { in toVehiclePropValue() [all …]
|
/packages/modules/IPsec/src/java/android/net/eap/ |
D | EapSessionConfig.java | 207 public boolean equals(Object o) { in equals() argument 208 if (!(o instanceof EapSessionConfig)) { in equals() 212 EapSessionConfig other = (EapSessionConfig) o; in equals() 505 public boolean equals(Object o) { in equals() argument 506 if (!(o instanceof EapMethodConfig)) { in equals() 510 return mMethodType == ((EapMethodConfig) o).mMethodType; in equals() 586 public boolean equals(Object o) { in equals() argument 587 if (!super.equals(o) || !(o instanceof EapUiccConfig)) { in equals() 591 EapUiccConfig other = (EapUiccConfig) o; in equals() 728 public boolean equals(Object o) { in equals() argument [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | ObjectCounterTest.java | 56 public boolean equals(Object o) { in equals() argument 57 if (this == o) return true; in equals() 58 if (o == null || getClass() != o.getClass()) return false; in equals() 59 TestKey testKey = (TestKey) o; in equals() 99 public boolean equals(Object o) { in equals() argument 100 if (this == o) return true; in equals() 101 if (o == null || getClass() != o.getClass()) return false; in equals() 102 TestKeyProto that = (TestKeyProto) o; in equals()
|
/packages/modules/NeuralNetworks/common/include/nnapi/ |
D | Result.h | 100 bool nnTryHasValue(const base::expected<T, E>& o) { in nnTryHasValue() argument 101 return o.has_value(); in nnTryHasValue() 105 T nnTryGetValue(base::expected<T, E> o) { in nnTryGetValue() argument 106 return std::move(o).value(); in nnTryGetValue() 110 base::unexpected<E> nnTryGetError(base::expected<T, E> o) { in nnTryGetError() argument 111 return base::unexpected(std::move(o).error()); in nnTryGetError() 115 bool nnTryHasValue(const std::optional<T>& o) { in nnTryHasValue() argument 116 return o.has_value(); in nnTryHasValue() 120 T nnTryGetValue(std::optional<T> o) { in nnTryGetValue() argument 121 return std::move(o).value(); in nnTryGetValue()
|
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/ |
D | Event.java | 59 public boolean equals(Object o) { in equals() argument 60 if (this == o) return true; in equals() 61 if (o == null || getClass() != o.getClass()) return false; in equals() 62 CalendarDetails that = (CalendarDetails) o; in equals() 153 public boolean equals(Object o) { in equals() argument 154 if (this == o) return true; in equals() 155 if (o == null || getClass() != o.getClass()) return false; in equals() 156 Event event = (Event) o; in equals()
|
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/ |
D | Types.java | 163 public boolean equals(Object o) { in equals() argument 164 if (this == o) { in equals() 167 if (o == null || getClass() != o.getClass()) { in equals() 170 TzS2Polygons that = (TzS2Polygons) o; in equals() 323 public boolean equals(Object o) { in equals() argument 324 if (this == o) { in equals() 327 if (o == null || getClass() != o.getClass()) { in equals() 330 TzS2CellUnion that = (TzS2CellUnion) o; in equals() 435 public boolean equals(Object o) { in equals() argument 436 if (this == o) { in equals() [all …]
|
/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/DocumentsUI/tests/res/raw/ |
D | images_tar | 8 …m^p,��MWT�U�,iGqkQ�Ğo��t�� ĩ��YZ�хm�Ջ���ɫBH�����ߝ�o���Q���'$�I`�6�� KV��+�#�'u,��\��%&1\�… 10 …?`3/e*x?V,iy��&��Q����^I1��C�,|�}$ ��M+�х����,�.�|<C�sKⷋHK�6�b��mר��;o����0(���b���XWOw����… 12 ̇�n�Z���e�o�� 17 g!d���+ߏ�������h�̌�f��Q����z+�ȪkO�q���:$B�_�;��䶢���o�s�e}�J�)��h)ΞD[�&Z�/�gY�MN… 19 …5�O :�ڃ�/�=�N�Z���S�=���D)p幬�=�64װ"�[I�T��w��#1S�(�,o�.� ���wT���.r�W�AsG K�~Po�2�W�… 20 {�t̞�H�$]1�g���$���x9ؘ��g��]�46i�C�zT�R��o��u 26 �R�u�fo�?��J⁴���-{��87o(��d]aRK��]��� K纫�|T�s�->^v���������D�6�B�j���;���YN��7��J�ͥ�y… 27 A�4�P]X߸͒x�6w#<[���Kט&gn|o��� ��ºϺ�4����Y����J@��B0-n�M�b˄�vu���>E�㖳a�p�}���oE���c… 30 …:�k:��X�?���,c0�O��YuɄ����E[�����{�`��Xy*g2+ۿ���j�G.z��l��3DN�1�����o��xY/4R��_H�i����6&… 33 ���R(�Ӆ�o��Q��~S(L�W�6'<� [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | UserIdTest.java | 113 DataOutputStream o = new DataOutputStream(output); in testRead_success() local 115 o.writeInt(1); // version in testRead_success() 116 o.writeInt(10); // user id in testRead_success() 127 DataOutputStream o = new DataOutputStream(output); in testRead_failWithInvalidVersion() local 129 o.writeInt(2); // version in testRead_failWithInvalidVersion() 130 o.writeInt(10); // user id in testRead_failWithInvalidVersion() 137 o.close(); in testRead_failWithInvalidVersion() 145 DataOutputStream o = new DataOutputStream(output); in testWrite_writeDataOutputStream() local 147 UserId.write(o, UserId.of(UserHandle.of(12))); in testWrite_writeDataOutputStream() 156 o.close(); in testWrite_writeDataOutputStream()
|
/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/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 …]
|