/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/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattDebugUtils.java | 159 StringBuilder b = new StringBuilder(); in logUsageInfo() local 160 b.append("------------ GATT TEST ACTIONS ----------------"); in logUsageInfo() 161 b.append("\nGATT_TEST_ENABLE"); in logUsageInfo() 162 b.append("\n [--ez enable <bool>] Enable or disable,"); in logUsageInfo() 163 b.append("\n defaults to true (enable).\n"); in logUsageInfo() 164 b.append("\nGATT_TEST_CONNECT"); in logUsageInfo() 165 b.append("\n --es address <bda>"); in logUsageInfo() 166 b.append("\n [--ei addr_type <type>] Possible values:"); in logUsageInfo() 167 b.append("\n 0 = Static (default)"); in logUsageInfo() 168 b.append("\n 1 = Random\n"); in logUsageInfo() [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/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 …]
|
D | db_utilities.h | 102 inline double db_maxd(double a,double b) in db_maxd() argument 104 if(b>a) return(b); in db_maxd() 110 inline double db_mind(double a,double b) in db_mind() argument 112 if(b<a) return(b); in db_mind() 120 inline int db_maxi(int a,int b) in db_maxi() argument 122 if(b>a) return(b); in db_maxi() 129 inline int db_mini(int a,int b) in db_mini() argument 131 if(b<a) return(b); in db_mini() 137 inline long db_maxl(long a,long b) in db_maxl() argument 139 if(b>a) return(b); in db_maxl() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | documenttest.cpp | 365 Document b(std::move(a)); in TYPED_TEST() local 367 EXPECT_TRUE(b.IsArray()); in TYPED_TEST() 368 EXPECT_EQ(3u, b.Size()); in TYPED_TEST() 370 EXPECT_EQ(&b.GetAllocator(), &allocator); in TYPED_TEST() 372 b.Parse("{\"Foo\": \"Bar\", \"Baz\": 42}"); in TYPED_TEST() 373 EXPECT_FALSE(b.HasParseError()); in TYPED_TEST() 374 EXPECT_TRUE(b.IsObject()); in TYPED_TEST() 375 EXPECT_EQ(2u, b.MemberCount()); in TYPED_TEST() 378 Document c = std::move(b); in TYPED_TEST() 379 EXPECT_TRUE(b.IsNull()); in TYPED_TEST() [all …]
|
D | bigintegertest.cpp | 56 BigInteger b = kUint64Max; in TEST() local 57 b += 1u; in TEST() 58 EXPECT_TRUE(kTwo64 == b); in TEST() 59 b += RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0xFFFFFFFF); in TEST() 60 EXPECT_TRUE(BIGINTEGER_LITERAL("36893488147419103231") == b); in TEST() 70 BigInteger b = kOne; in TEST() local 71 b *= static_cast<uint64_t>(1); in TEST() 72 EXPECT_TRUE(kOne == b); in TEST() 73 b *= static_cast<uint64_t>(0); in TEST() 74 EXPECT_TRUE(kZero == b); in TEST() [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 …]
|
D | FastScrollingIndexCacheTest.java | 98 Bundle b; in testPutAndGet() local 99 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); in testPutAndGet() 100 assertBundle(TITLES_0, COUNTS_0, b); in testPutAndGet() 102 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1); in testPutAndGet() 103 assertBundle(TITLES_1, COUNTS_1, b); in testPutAndGet() 105 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2); in testPutAndGet() 106 assertBundle(TITLES_2, COUNTS_2, b); in testPutAndGet() 108 b = putAndGetBundle(mCache, URI_B, "s", PROJECTION_2, "so", "ce", TITLES_3, COUNTS_3); in testPutAndGet() 109 assertBundle(TITLES_3, COUNTS_3, b); in testPutAndGet() 127 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); in testPutAndGet() [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/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/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/Camera2/src/com/android/camera/data/ |
D | FilmstripItemUtils.java | 130 Bitmap b = BitmapFactory.decodeStream(stream, null, opts); in loadImageThumbnailFromStream() local 132 if (b == null) { in loadImageThumbnailFromStream() 139 if (b.getWidth() > GL11.GL_MAX_TEXTURE_SIZE || b.getHeight() > in loadImageThumbnailFromStream() 141 int maxEdge = Math.max(b.getWidth(), b.getHeight()); in loadImageThumbnailFromStream() 142 b = Bitmap.createScaledBitmap(b, b.getWidth() * GL11.GL_MAX_TEXTURE_SIZE / maxEdge, in loadImageThumbnailFromStream() 143 b.getHeight() * GL11.GL_MAX_TEXTURE_SIZE / maxEdge, false); in loadImageThumbnailFromStream() 147 if (orientation != 0 && b != null) { in loadImageThumbnailFromStream() 150 b = Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), m, false); in loadImageThumbnailFromStream() 153 return b; in loadImageThumbnailFromStream()
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControl.java | 124 IndicatorButton b = new IndicatorButton(context, pref); in addIndicator() local 125 b.setSettingChangedListener(this); in addIndicator() 126 b.setContentDescription(pref.getTitle()); in addIndicator() 127 addView(b); in addIndicator() 128 mIndicators.add(b); in addIndicator() 129 return b; in addIndicator() 134 OtherSettingIndicatorButton b = new OtherSettingIndicatorButton( in addOtherSettingIndicator() local 136 b.setSettingChangedListener(this); in addOtherSettingIndicator() 137 b.setContentDescription(getResources().getString( in addOtherSettingIndicator() 139 addView(b); in addOtherSettingIndicator() [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/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneAccountRegistrarTest.java | 987 PhoneAccountHandle b = new PhoneAccountHandle(new ComponentName("packageA", "class2"), in testSamePhoneAccountHandlePackage() local 995 assertTrue(PhoneAccountHandle.areFromSamePackage(a, b)); in testSamePhoneAccountHandlePackage() 997 assertTrue(PhoneAccountHandle.areFromSamePackage(b, c)); in testSamePhoneAccountHandlePackage() 999 assertFalse(PhoneAccountHandle.areFromSamePackage(b, d)); in testSamePhoneAccountHandlePackage() 1002 assertFalse(PhoneAccountHandle.areFromSamePackage(b, null)); in testSamePhoneAccountHandlePackage() 1088 private static void assertPhoneAccountHandleEquals(PhoneAccountHandle a, PhoneAccountHandle b) { in assertPhoneAccountHandleEquals() argument 1089 if (a != b) { in assertPhoneAccountHandleEquals() 1092 b.getComponentName().getPackageName()); in assertPhoneAccountHandleEquals() 1095 b.getComponentName().getClassName()); in assertPhoneAccountHandleEquals() 1096 assertEquals(a.getId(), b.getId()); in assertPhoneAccountHandleEquals() [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | redEyeMath.c | 22 int value(int r, int g, int b) { in value() argument 23 return MAX(r, MAX(g, b)); in value() 27 int b = src[p + 2]; in isRed() local 30 int max = MAX(g, b); in isRed() 45 int b = src[p + 2]; in findPossible() local 49 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible() 84 char b = (mask[row + x] | mask[row + x + 1] | mask[row + x - 1] in dialateMaskIfRed() local 86 if (b != 0 && isRed(src, p)) in dialateMaskIfRed() 106 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument 107 img[off + 2] = b; in stuff() [all …]
|
D | wbalance.c | 45 int b = histB[i]; in estmateWhite() local 48 sum_b += b; in estmateWhite() 58 if (b>0){ in estmateWhite() 71 int b = histB[i]; in estmateWhite() local 74 tmp_b += b; in estmateWhite() 85 sum15b += b*i; in estmateWhite() 86 count15b += b; in estmateWhite() 106 int b = 0; in estmateWhiteBox() local 124 b += src[BLUE]; in estmateWhiteBox() 130 *wb = b/sum; in estmateWhiteBox() [all …]
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelecomAccountRegistry.java | 561 PersistableBundle b = in isCarrierVideoPauseSupported() local 563 return b != null && in isCarrierVideoPauseSupported() 564 b.getBoolean(CarrierConfigManager.KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL); in isCarrierVideoPauseSupported() 574 PersistableBundle b = in isCarrierVideoPresenceSupported() local 576 boolean carrierConfigEnabled = b != null in isCarrierVideoPresenceSupported() 577 && b.getBoolean(CarrierConfigManager.KEY_USE_RCS_PRESENCE_BOOL); in isCarrierVideoPresenceSupported() 601 PersistableBundle b = in isCarrierInstantLetteringSupported() local 603 return b != null && in isCarrierInstantLetteringSupported() 604 b.getBoolean(CarrierConfigManager.KEY_CARRIER_INSTANT_LETTERING_AVAILABLE_BOOL); in isCarrierInstantLetteringSupported() 613 PersistableBundle b = in isCarrierAdhocConferenceCallSupported() local [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | GsmUmtsCallOptions.java | 66 PersistableBundle b = null; in init() local 68 b = PhoneGlobals.getInstance().getCarrierConfigForSubId(subInfoHelper.getSubId()); in init() 70 b = PhoneGlobals.getInstance().getCarrierConfig(); in init() 74 if (b != null && b.getBoolean( in init() 84 if (b != null && b.getBoolean( in init() 97 if (b != null && (b.getBoolean( in init() 99 || b.getBoolean( in init() 111 if (b != null && b.getBoolean(CarrierConfigManager.KEY_CALL_BARRING_VISIBILITY_BOOL)) { in init()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | SplineMath.java | 59 double b = (x - x1) / delta; in calculatetCurve() local 60 double a = 1 - b; in calculatetCurve() 62 double tb = b * y2; in calculatetCurve() 64 double td = (b * b * b - b) * derivatives[pivot + 1]; in calculatetCurve() 100 double b = (x - x1) / delta; in getValue() local 101 double a = 1 - b; in getValue() 103 double tb = b * y2; in getValue() 105 double td = (b * b * b - b) * mDerivatives[pivot + 1]; in getValue()
|
D | ColorSpaceMatrix.java | 185 public float getRed(int r, int g, int b) { in getRed() argument 186 return r * mMatrix[0] + g * mMatrix[4] + b * mMatrix[8] + mMatrix[12]; in getRed() 197 public float getGreen(int r, int g, int b) { in getGreen() argument 198 return r * mMatrix[1] + g * mMatrix[5] + b * mMatrix[9] + mMatrix[13]; in getGreen() 209 public float getBlue(int r, int g, int b) { in getBlue() argument 210 return r * mMatrix[2] + g * mMatrix[6] + b * mMatrix[10] + mMatrix[14]; in getBlue() 213 private float getRedf(float r, float g, float b) { in getRedf() argument 214 return r * mMatrix[0] + g * mMatrix[4] + b * mMatrix[8] + mMatrix[12]; in getRedf() 217 private float getGreenf(float r, float g, float b) { in getGreenf() argument 218 return r * mMatrix[1] + g * mMatrix[5] + b * mMatrix[9] + mMatrix[13]; in getGreenf() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | vp_motionmodel.h | 244 #define VP_PRINT_TRANS(msg,b) do { \ argument 248 MXX(b),MXY(b),MXZ(b),MXW(b), \ 249 MYX(b),MYY(b),MYZ(b),MYW(b), \ 250 MZX(b),MZY(b),MZZ(b),MZW(b), \ 251 MWX(b),MWY(b),MWZ(b),MWW(b)); \
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | Point.java | 60 public float crossProduct(Point a, Point b) { in crossProduct() argument 61 return (a.x - x) * (b.y - y) - (a.y - y) * (b.x - x); in crossProduct() 68 public float dotProduct(Point a, Point b) { in dotProduct() argument 69 return (a.x - x) * (b.x - x) + (a.y - y) * (b.y - y); in dotProduct() 78 public float getAngle(Point a, Point b) { in getAngle() argument 80 float dist2 = dist(b); in getAngle() 86 float crossProduct = crossProduct(a, b); in getAngle() 87 float dotProduct = dotProduct(a, b); in getAngle()
|