/packages/modules/Bluetooth/system/embdrv/lc3/test/neon/ |
D | neon.h | 56 static int32x4_t vmull_s16(int16x4_t a, int16x4_t b) in vmull_s16() argument 58 return (int32x4_t){ { a.e[0] * b.e[0], a.e[1] * b.e[1], in vmull_s16() 59 a.e[2] * b.e[2], a.e[3] * b.e[3] } }; in vmull_s16() 63 static int32x4_t vmlal_s16(int32x4_t r, int16x4_t a, int16x4_t b) in vmlal_s16() argument 66 r.e[0] + a.e[0] * b.e[0], r.e[1] + a.e[1] * b.e[1], in vmlal_s16() 67 r.e[2] + a.e[2] * b.e[2], r.e[3] + a.e[3] * b.e[3] } }; in vmlal_s16() 71 static int64x2_t vpadalq_s32(int64x2_t a, int32x4_t b) in vpadalq_s32() argument 75 r.e[0] = a.e[0] + ((int64_t)b.e[0] + b.e[1]); in vpadalq_s32() 76 r.e[1] = a.e[1] + ((int64_t)b.e[2] + b.e[3]); in vpadalq_s32() 104 static int16x4_t vext_s16(int16x4_t a, int16x4_t b, const int n) in vext_s16() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PositionController.java | 251 Box b = mBoxes.get(0); in setViewSize() local 252 b.mCurrentScale = b.mScaleMin; in setViewSize() 272 Box b = mBoxes.get(index); in forceImageSize() 273 b.mImageW = s.width; in forceImageSize() 274 b.mImageH = s.height; in forceImageSize() 296 Box b = mBoxes.get(i); in setBoxSize() local 297 boolean wasViewSize = b.mUseViewSize; in setBoxSize() 302 b.mUseViewSize = isViewSize; in setBoxSize() 304 if (width == b.mImageW && height == b.mImageH) { in setBoxSize() 316 ? (float) b.mImageW / width in setBoxSize() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/interface/utils/ |
D | ImsMediaTrace.h | 50 #define IMLOGD_PACKET2(type, format, a, b) \ argument 52 ImsMediaTrace::IM_StripFileName((char*)__FILE__), __LINE__, a, b) 53 #define IMLOGD_PACKET3(type, format, a, b, c) \ argument 55 ImsMediaTrace::IM_StripFileName((char*)__FILE__), __LINE__, a, b, c) 56 #define IMLOGD_PACKET4(type, format, a, b, c, d) \ argument 58 ImsMediaTrace::IM_StripFileName((char*)__FILE__), __LINE__, a, b, c, d) 59 #define IMLOGD_PACKET5(type, format, a, b, c, d, e) \ argument 61 ImsMediaTrace::IM_StripFileName((char*)__FILE__), __LINE__, a, b, c, d, e) 62 #define IMLOGD_PACKET6(type, format, a, b, c, d, e, f) \ argument 64 ImsMediaTrace::IM_StripFileName((char*)__FILE__), __LINE__, a, b, c, d, e, f) [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | trsMatrix.cpp | 24 void mult33d(double a[3][3], double b[3][3], double c[3][3]) in mult33d() 26 a[0][0] = b[0][0]*c[0][0] + b[0][1]*c[1][0] + b[0][2]*c[2][0]; in mult33d() 27 a[0][1] = b[0][0]*c[0][1] + b[0][1]*c[1][1] + b[0][2]*c[2][1]; in mult33d() 28 a[0][2] = b[0][0]*c[0][2] + b[0][1]*c[1][2] + b[0][2]*c[2][2]; in mult33d() 29 a[1][0] = b[1][0]*c[0][0] + b[1][1]*c[1][0] + b[1][2]*c[2][0]; in mult33d() 30 a[1][1] = b[1][0]*c[0][1] + b[1][1]*c[1][1] + b[1][2]*c[2][1]; in mult33d() 31 a[1][2] = b[1][0]*c[0][2] + b[1][1]*c[1][2] + b[1][2]*c[2][2]; in mult33d() 32 a[2][0] = b[2][0]*c[0][0] + b[2][1]*c[1][0] + b[2][2]*c[2][0]; in mult33d() 33 a[2][1] = b[2][0]*c[0][1] + b[2][1]*c[1][1] + b[2][2]*c[2][1]; in mult33d() 34 a[2][2] = b[2][0]*c[0][2] + b[2][1]*c[1][2] + b[2][2]*c[2][2]; in mult33d()
|
D | ImageUtils.cpp | 30 int r,g,b, a; in rgba2yvu() local 40 b = (*image++); in rgba2yvu() 47 if (b < 0) b = 0; in rgba2yvu() 48 if (b > 255) b = 255; in rgba2yvu() 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 75 int r,g,b; in rgb2yvu() local 85 b = (*image++); in rgb2yvu() 91 if (b < 0) b = 0; in rgb2yvu() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | GattDebugUtils.java | 168 StringBuilder b = new StringBuilder(); in logUsageInfo() local 169 b.append("------------ GATT TEST ACTIONS ----------------"); in logUsageInfo() 170 b.append("\nGATT_TEST_ENABLE"); in logUsageInfo() 171 b.append("\n [--ez enable <bool>] Enable or disable,"); in logUsageInfo() 172 b.append("\n defaults to true (enable).\n"); in logUsageInfo() 173 b.append("\nGATT_TEST_CONNECT"); in logUsageInfo() 174 b.append("\n --es address <bda>"); in logUsageInfo() 175 b.append("\n [--ei addr_type <type>] Possible values:"); in logUsageInfo() 176 b.append("\n 0 = Static (default)"); in logUsageInfo() 177 b.append("\n 1 = Random\n"); in logUsageInfo() [all …]
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/util/ |
D | BundleUtilTest.java | 82 Bundle b = createThoroughBundle(); in testDeepEquals_thorough_notEqual() local 84 assertThat(b.containsKey("doubleArray")).isTrue(); in testDeepEquals_thorough_notEqual() 85 b.putDoubleArray("doubleArray", new double[] {18., i}); in testDeepEquals_thorough_notEqual() 86 inputs[i] = b; in testDeepEquals_thorough_notEqual() 164 Bundle b = createThoroughBundle(); in testDeepHashCode_different() local 166 assertThat(b.containsKey("doubleArray")).isTrue(); in testDeepHashCode_different() 167 b.putDoubleArray("doubleArray", new double[] {18., i}); in testDeepHashCode_different() 168 inputs[i] = b; in testDeepHashCode_different() 208 Bundle b = new Bundle(); in testDeepHashCode_differentKeys() local 209 b.putString("key" + i, "value"); in testDeepHashCode_differentKeys() [all …]
|
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/ |
D | UceActivity.java | 99 StringBuilder b = new StringBuilder("onCapabilitiesReceived:\n"); in initLayout() 101 b.append(getReadableCapability(c)); in initLayout() 102 b.append("\n"); in initLayout() 104 mCapabilityResult.append(b.toString() + "\n"); in initLayout() 105 Log.i(TAG, b.toString()); in initLayout() 139 StringBuilder b = new StringBuilder("onCapabilitiesReceived:\n"); in initLayout() 141 b.append(getReadableCapability(c)); in initLayout() 142 b.append("\n"); in initLayout() 144 mCapabilityResult.append(b.toString() + "\n"); in initLayout() 145 Log.i(TAG, b.toString()); in initLayout() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities_poly.h | 39 inline void db_SolveQuadratic(double *roots,int *nr_roots,double a,double b,double c) in db_SolveQuadratic() argument 47 if(b==0.0) *nr_roots=0; in db_SolveQuadratic() 50 roots[0]= -c/b; in db_SolveQuadratic() 56 rs=b*b-4.0*a*c; in db_SolveQuadratic() 61 q= -0.5*(b+db_sign(b)*srs); in db_SolveQuadratic() 79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d); 84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double … 89 DB_API void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,d… 96 inline void db_MultiplyPoly1_1(double *d,const double *a,const double *b) in db_MultiplyPoly1_1() argument 101 b0=b[0];b1=b[1]; in db_MultiplyPoly1_1() [all …]
|
/packages/modules/GeoTZ/validation/geonames/known_diffs/ |
D | known_diffs1000.prototxt | 14 bugUri: "http://b/bugId" 29 bugUri: "http://b/bugId" 44 bugUri: "http://b/bugId" 59 bugUri: "http://b/bugId" 74 bugUri: "http://b/bugId" 89 bugUri: "http://b/bugId" 104 bugUri: "http://b/bugId" 119 bugUri: "http://b/bugId" 134 bugUri: "http://b/bugId" 151 bugUri: "http://b/bugId" [all …]
|
D | known_diffs15000.prototxt | 12 bugUri: "http://b/bugId" 27 bugUri: "http://b/bugId" 42 bugUri: "http://b/bugId" 57 bugUri: "http://b/bugId" 72 bugUri: "http://b/bugId" 89 bugUri: "http://b/bugId" 104 bugUri: "http://b/bugId" 119 bugUri: "http://b/bugId" 134 bugUri: "http://b/bugId" 149 bugUri: "http://b/bugId" [all …]
|
D | known_diffs5000.prototxt | 14 bugUri: "http://b/bugId" 29 bugUri: "http://b/bugId" 44 bugUri: "http://b/bugId" 59 bugUri: "http://b/bugId" 74 bugUri: "http://b/bugId" 89 bugUri: "http://b/bugId" 106 bugUri: "http://b/bugId" 121 bugUri: "http://b/bugId" 136 bugUri: "http://b/bugId" 151 bugUri: "http://b/bugId" [all …]
|
D | known_diffs500.prototxt | 14 bugUri: "http://b/bugId" 29 bugUri: "http://b/bugId" 44 bugUri: "http://b/bugId" 59 bugUri: "http://b/bugId" 74 bugUri: "http://b/bugId" 89 bugUri: "http://b/bugId" 104 bugUri: "http://b/bugId" 119 bugUri: "http://b/bugId" 136 bugUri: "http://b/bugId" 151 bugUri: "http://b/bugId" [all …]
|
/packages/modules/NeuralNetworks/common/cpu_operations/ |
D | Reduce.cpp | 106 return compute<_Float16>(context, 1, [](_Float16 a, _Float16 b) -> _Float16 { in executeProd() argument 108 if (a == 0 || b == 0) return 0; in executeProd() 109 return a * b; in executeProd() 112 return compute<float>(context, 1, [](float a, float b) -> float { in executeProd() argument 114 if (a == 0 || b == 0) return 0; in executeProd() 115 return a * b; in executeProd() 125 return compute<_Float16>(context, 0, [](_Float16 a, _Float16 b) { return a + b; }); in executeSum() argument 127 return compute<float>(context, 0, [](float a, float b) { return a + b; }); in executeSum() argument 137 [](_Float16 a, _Float16 b) { return std::max(a, b); }); in executeMax() argument 140 [](float a, float b) { return std::max(a, b); }); in executeMax() argument [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/ |
D | acl_manager_test.py | 49 cert_acl.send_first(b'\x26\x00\x07\x00This is just SomeAclData from the Cert') 50 dut_acl.send(b'\x29\x00\x07\x00This is just SomeMoreAclData from the DUT') 52 assertThat(cert_acl).emits(lambda packet: b'SomeMoreAclData' in packet.payload) 53 assertThat(dut_acl).emits(lambda packet: b'SomeAclData' in packet.payload) 64 dut_acl.send(b'\x29\x00\x07\x00This is just SomeMoreAclData from the DUT') 66 cert_acl.send_first(b'\x26\x00\x07\x00This is just SomeAclData from the Cert') 68 assertThat(cert_acl).emits(lambda packet: b'SomeMoreAclData' in packet.payload) 69 assertThat(dut_acl).emits(lambda packet: b'SomeAclData' in packet.payload) 82 b'\x26\x00\x07\x00This is a Broadcast from the Cert') 86 b'\x26\x00\x07\x00This is just SomeAclData from the Cert') [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsProvider2TransactionTest.java | 179 ContentProviderOperation.Builder b; in addInsertContactOperations() local 180 b = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI); in addInsertContactOperations() 181 b.withValue(RawContacts.STARRED, 1); in addInsertContactOperations() 182 b.withValue(RawContacts.LAST_TIME_CONTACTED, 86400 * 21); in addInsertContactOperations() 183 ops.add(b.build()); in addInsertContactOperations() 185 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertContactOperations() 186 b.withValueBackReference(Data.RAW_CONTACT_ID, ops.size() - 1); in addInsertContactOperations() 187 b.withValue(StructuredName.DISPLAY_NAME, "Regular Contact"); in addInsertContactOperations() 188 b.withValue(StructuredName.GIVEN_NAME, "Regular"); in addInsertContactOperations() 189 b.withValue(StructuredName.FAMILY_NAME, "Contact"); in addInsertContactOperations() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BitmapPool.java | 194 Bitmap b = null; in decodeSampledBitmapFromResource() local 196 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp); in decodeSampledBitmapFromResource() 201 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp); in decodeSampledBitmapFromResource() 213 return b; in decodeSampledBitmapFromResource() 233 Bitmap b = null; in decodeSampledBitmapFromInputStream() local 235 b = BitmapFactory.decodeStream(inputStream, null, optionsTmp); in decodeSampledBitmapFromInputStream() 240 b = BitmapFactory.decodeStream(inputStream, null, optionsTmp); in decodeSampledBitmapFromInputStream() 252 return b; in decodeSampledBitmapFromInputStream() 273 Bitmap b = null; in decodeByteArray() local 275 b = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, optionsTmp); in decodeByteArray() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountComparator.java | 33 public int compare(AccountWithDataSet a, AccountWithDataSet b) { in compare() argument 34 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type) in compare() 35 && Objects.equal(a.dataSet, b.dataSet)) { in compare() 37 } else if (b.name == null || b.type == null) { in compare() 43 } else if (isWritableGoogleAccount(b) && b.equals(mDefaultAccount)) { in compare() 45 } else if (isWritableGoogleAccount(a) && !isWritableGoogleAccount(b)) { in compare() 47 } else if (isWritableGoogleAccount(b) && !isWritableGoogleAccount(a)) { in compare() 50 int diff = a.name.compareToIgnoreCase(b.name); in compare() 54 diff = a.type.compareToIgnoreCase(b.type); in compare() 61 return b.dataSet == null ? 1 : a.dataSet.compareToIgnoreCase(b.dataSet); in compare()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/util/ |
D | ByteArrayBuffer.java | 57 public void append(final byte[] b, int off, int len) { in append() argument 58 if (b == null) { in append() 62 || (off > b.length) in append() 65 || ((off + len) > b.length)) { in append() 75 System.arraycopy(b, off, this.buffer, this.len, len); in append() 79 public void append(int b) { in append() argument 84 this.buffer[this.len] = (byte) b; in append() 88 public void append(final char[] b, int off, int len) { in append() argument 89 if (b == null) { in append() 93 || (off > b.length) in append() [all …]
|
/packages/modules/NeuralNetworks/common/types/src/ |
D | TypeUtils.cpp | 790 bool operator==(const Timing& a, const Timing& b) { in operator ==() argument 791 return a.timeOnDevice == b.timeOnDevice && a.timeInDriver == b.timeInDriver; in operator ==() 793 bool operator!=(const Timing& a, const Timing& b) { in operator !=() argument 794 return !(a == b); in operator !=() 797 bool operator==(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b) { in operator ==() argument 798 return a.execTime == b.execTime && a.powerUsage == b.powerUsage; in operator ==() 800 bool operator!=(const Capabilities::PerformanceInfo& a, const Capabilities::PerformanceInfo& b) { in operator !=() argument 801 return !(a == b); in operator !=() 805 const Capabilities::OperandPerformance& b) { in operator ==() argument 806 return a.type == b.type && a.info == b.info; in operator ==() [all …]
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | FilmstripItemUtils.java | 131 Bitmap b = BitmapFactory.decodeStream(stream, null, opts); in loadImageThumbnailFromStream() local 133 if (b == null) { in loadImageThumbnailFromStream() 140 if (b.getWidth() > GL11.GL_MAX_TEXTURE_SIZE || b.getHeight() > in loadImageThumbnailFromStream() 142 int maxEdge = Math.max(b.getWidth(), b.getHeight()); in loadImageThumbnailFromStream() 143 b = Bitmap.createScaledBitmap(b, b.getWidth() * GL11.GL_MAX_TEXTURE_SIZE / maxEdge, in loadImageThumbnailFromStream() 144 b.getHeight() * GL11.GL_MAX_TEXTURE_SIZE / maxEdge, false); in loadImageThumbnailFromStream() 148 if (orientation != 0 && b != null) { in loadImageThumbnailFromStream() 151 b = Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), m, false); in loadImageThumbnailFromStream() 154 return b; in loadImageThumbnailFromStream()
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/l2cap/classic/ |
D | l2cap_test.py | 42 SAMPLE_PACKET_DATA = b"\x19\x26\x08\x17" 143 dut_channel.send(b'abc') 144 assertThat(cert_channel).emits(L2capMatchers.Data(b'abc')) 168 dut_channel.send(b'abc' * 34) 169 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc' * 34)) 191 dut_channel.send(b'hello') 192 assertThat(cert_channel).emits(L2capMatchers.Data(b'hello')) 213 dut_channel.send(b'a' * 48) 214 assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * 48)) 339 dut_channel.send(b"a" * 44) [all …]
|
/packages/services/Telephony/src/com/android/services/telephony/rcs/ |
D | SipDialog.java | 208 StringBuilder b = new StringBuilder("SipDialog["); in toString() local 211 b.append("early"); in toString() 214 b.append("confirmed"); in toString() 217 b.append("closed"); in toString() 220 b.append(mState); in toString() 222 b.append("] bId="); in toString() 223 b.append(mBranchId); in toString() 224 b.append(", cId="); in toString() 225 b.append(mCallId); in toString() 226 b.append(", f="); in toString() [all …]
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | VoicemailDialogUtil.java | 44 AlertDialog.Builder b = new AlertDialog.Builder(parent); in getDialog() local 53 b.setNegativeButton(R.string.close_dialog, parent); in getDialog() 61 b.setNegativeButton(R.string.close_dialog, parent); in getDialog() 66 b.setPositiveButton(R.string.close_dialog, parent); in getDialog() 71 b.setPositiveButton(R.string.close_dialog, parent); in getDialog() 75 b.setPositiveButton(R.string.alert_dialog_yes, parent); in getDialog() 76 b.setNegativeButton(R.string.alert_dialog_no, parent); in getDialog() 81 b.setIconAttribute(android.R.attr.alertDialogIcon); in getDialog() 82 b.setPositiveButton(R.string.ok, parent); in getDialog() 88 b.setNeutralButton(R.string.close_dialog, parent); in getDialog() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareUtils.java | 47 byte b = serviceNameData[index]; in validateServiceName() 48 if ((b & 0x80) == 0x00) { in validateServiceName() 49 if (!((b >= '0' && b <= '9') || (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') in validateServiceName() 50 || b == '-' || b == '.' || b == '_')) { in validateServiceName()
|