Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java251 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/LegacyCamera/jni/feature_mos/src/mosaic/
DImageUtils.cpp30 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 …]
DtrsMatrix.cpp24 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()
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DImageUtils.cpp30 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 …]
DtrsMatrix.cpp24 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()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.h39 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 …]
Ddb_utilities.h102 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/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.h39 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 …]
Ddb_utilities.h102 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/Bluetooth/src/com/android/bluetooth/gatt/
DGattDebugUtils.java159 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/services/Telephony/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java126 byte b = (byte)pushbackq.dequeue(); in fillBuffer()
130 if (b != '=') { in fillBuffer()
131 byteq.enqueue(b); in fillBuffer()
138 if (b == '\r') { in fillBuffer()
141 … } else if ((b >= '0' && b <= '9') || (b >= 'A' && b <= 'F') || (b >= 'a' && b <= 'f')) { in fillBuffer()
143 msdChar = b; // save until next digit encountered in fillBuffer()
145 } else if (b == '=') { in fillBuffer()
158 + "[0-9A-Z], got " + b); in fillBuffer()
162 byteq.enqueue(b); in fillBuffer()
166 if (b == '\n') { in fillBuffer()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DQuotedPrintableInputStream.java126 byte b = (byte)pushbackq.dequeue(); in fillBuffer()
130 if (b != '=') { in fillBuffer()
131 byteq.enqueue(b); in fillBuffer()
138 if (b == '\r') { in fillBuffer()
141 … } else if ((b >= '0' && b <= '9') || (b >= 'A' && b <= 'F') || (b >= 'a' && b <= 'f')) { in fillBuffer()
143 msdChar = b; // save until next digit encountered in fillBuffer()
145 } else if (b == '=') { in fillBuffer()
158 + "[0-9A-Z], got " + b); in fillBuffer()
162 byteq.enqueue(b); in fillBuffer()
166 if (b == '\n') { in fillBuffer()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java1834 PersistableBundle b = PhoneGlobals.getInstance().getCarrierConfig(); in turnOnNoiseSuppression() local
1835 if (!b.getBoolean(CarrierConfigManager.KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL)) { in turnOnNoiseSuppression()
1857 PersistableBundle b = PhoneGlobals.getInstance().getCarrierConfig(); in restoreNoiseSuppression() local
1858 if (!b.getBoolean(CarrierConfigManager.KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL)) { in restoreNoiseSuppression()
1870 PersistableBundle b = PhoneGlobals.getInstance().getCarrierConfig(); in isNoiseSuppressionOn() local
1871 if (!b.getBoolean(CarrierConfigManager.KEY_HAS_IN_CALL_NOISE_SUPPRESSION_BOOL)) { in isNoiseSuppressionOn()
2325 StringBuilder b = new StringBuilder(128); in dumpCallState() local
2328 b.setLength(0); in dumpCallState()
2329 b.append(" - FG call: ").append(call.getState()); in dumpCallState()
2330 b.append(" isAlive ").append(call.getState().isAlive()); in dumpCallState()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DPackedStringTests.java55 PackedString.Builder b = new PackedString.Builder(); in testPackedStringBuilderCreate() local
56 b.put("tag1", "value1"); in testPackedStringBuilderCreate()
57 b.put("tag2", "value2"); in testPackedStringBuilderCreate()
58 b.put("tag3", "value3"); in testPackedStringBuilderCreate()
59 b.put("tag4", "value4"); in testPackedStringBuilderCreate()
62 String packedOut = b.toString(); in testPackedStringBuilderCreate()
74 PackedString.Builder b = new PackedString.Builder(PACKED_STRING_TAGGED); in testPackedStringBuilderEdit() local
76 assertEquals("val1", b.get("tag1")); in testPackedStringBuilderEdit()
77 assertEquals("val2", b.get("tag2")); in testPackedStringBuilderEdit()
78 assertEquals("val3", b.get("tag3")); in testPackedStringBuilderEdit()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2TransactionTest.java179 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.TIMES_CONTACTED, 200001); 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 …]
DFastScrollingIndexCacheTest.java99 Bundle b; in testPutAndGet() local
100 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); in testPutAndGet()
101 assertBundle(TITLES_0, COUNTS_0, b); in testPutAndGet()
103 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_0, "*so*", "*ce*", TITLES_1, COUNTS_1); in testPutAndGet()
104 assertBundle(TITLES_1, COUNTS_1, b); in testPutAndGet()
106 b = putAndGetBundle(mCache, URI_A, "*s*", PROJECTION_1, "*so*", "*ce*", TITLES_2, COUNTS_2); in testPutAndGet()
107 assertBundle(TITLES_2, COUNTS_2, b); in testPutAndGet()
109 b = putAndGetBundle(mCache, URI_B, "s", PROJECTION_2, "so", "ce", TITLES_3, COUNTS_3); in testPutAndGet()
110 assertBundle(TITLES_3, COUNTS_3, b); in testPutAndGet()
128 b = putAndGetBundle(mCache, null, null, null, null, null, TITLES_0, COUNTS_0); in testPutAndGet()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBitmapPool.java194 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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java299 private static void assertPhoneAccountHandleEquals(PhoneAccountHandle a, PhoneAccountHandle b) { in assertPhoneAccountHandleEquals() argument
300 if (a != b) { in assertPhoneAccountHandleEquals()
303 b.getComponentName().getPackageName()); in assertPhoneAccountHandleEquals()
306 b.getComponentName().getClassName()); in assertPhoneAccountHandleEquals()
307 assertEquals(a.getId(), b.getId()); in assertPhoneAccountHandleEquals()
311 private static void assertIconEquals(Icon a, Icon b) { in assertIconEquals() argument
312 if (a != b) { in assertIconEquals()
313 if (a != null && b != null) { in assertIconEquals()
314 assertEquals(a.toString(), b.toString()); in assertIconEquals()
316 fail("Icons not equal: " + a + ", " + b); in assertIconEquals()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/event/
DEditEventHelperTest.java242 ContentProviderOperation.Builder b; in addOwnerAttendeeToOps() local
243 b = ContentProviderOperation.newInsert(Attendees.CONTENT_URI).withValues(mExpectedValues); in addOwnerAttendeeToOps()
244 b.withValueBackReference(Reminders.EVENT_ID, id); in addOwnerAttendeeToOps()
245 expectedOps.add(b.build()); in addOwnerAttendeeToOps()
251 ContentProviderOperation.Builder b; in addOwnerAttendeeToOps() local
252 b = ContentProviderOperation.newInsert(Attendees.CONTENT_URI).withValues(mExpectedValues); in addOwnerAttendeeToOps()
253 expectedOps.add(b.build()); in addOwnerAttendeeToOps()
266 ContentProviderOperation.Builder b = in addAttendeeChangesOps() local
268 b.withSelection(EditEventHelper.ATTENDEES_DELETE_PREFIX + "?)", in addAttendeeChangesOps()
270 expectedOps.add(b.build()); in addAttendeeChangesOps()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dsaturation.rs73 float b = 1.f;
76 rsMatrixSet(&colorMatrix_max, 0, 0, b * (Rt + S));
77 rsMatrixSet(&colorMatrix_max, 1, 0, b * Gt);
78 rsMatrixSet(&colorMatrix_max, 2, 0, b * Bt);
79 rsMatrixSet(&colorMatrix_max, 0, 1, b * Rt);
80 rsMatrixSet(&colorMatrix_max, 1, 1, b * (Gt + S));
81 rsMatrixSet(&colorMatrix_max, 2, 1, b * Bt);
82 rsMatrixSet(&colorMatrix_max, 0, 2, b * Rt);
83 rsMatrixSet(&colorMatrix_max, 1, 2, b * Gt);
84 rsMatrixSet(&colorMatrix_max, 2, 2, b * (Bt + S));
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java130 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/
DIndicatorControl.java124 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/apps/Calendar/src/com/android/calendar/event/
DEditEventHelper.java326 ContentProviderOperation.Builder b = ContentProviderOperation.newInsert( in saveEvent() local
328 ops.add(b.build()); in saveEvent()
352 ContentProviderOperation.Builder b = ContentProviderOperation.newInsert( in saveEvent() local
354 ops.add(b.build()); in saveEvent()
378 ContentProviderOperation.Builder b = ContentProviderOperation.newUpdate(uri) in saveEvent() local
380 ops.add(b.build()); in saveEvent()
438 ContentProviderOperation.Builder b; in saveEvent() local
455 b = ContentProviderOperation.newInsert(Attendees.CONTENT_URI) in saveEvent()
457 b.withValueBackReference(Attendees.EVENT_ID, eventIdIndex); in saveEvent()
460 b = ContentProviderOperation.newInsert(Attendees.CONTENT_URI) in saveEvent()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DIntentUtilities.java47 final Uri.Builder b = new Uri.Builder(); in createActivityIntentUrlBuilder() local
48 b.scheme(ACTIVITY_INTENT_SCHEME); in createActivityIntentUrlBuilder()
49 b.authority(ACTIVITY_INTENT_HOST); in createActivityIntentUrlBuilder()
50 b.path(path); in createActivityIntentUrlBuilder()
51 return b; in createActivityIntentUrlBuilder()
57 public static void setAccountId(Uri.Builder b, long accountId) { in setAccountId() argument
59 b.appendQueryParameter(ACCOUNT_ID_PARAM, Long.toString(accountId)); in setAccountId()
66 public static void setAccountName(Uri.Builder b, String accountName) { in setAccountName() argument
68 b.appendQueryParameter(ACCOUNT_NAME_PARAM, accountName); in setAccountName()
75 public static void setMailboxId(Uri.Builder b, long mailboxId) { in setMailboxId() argument
[all …]
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c20 int value(int r, int g, int b) { in value() argument
21 return MAX(r, MAX(g, b)); in value()
25 int b = src[p + 2]; in isRed() local
28 int max = MAX(g, b); in isRed()
43 int b = src[p + 2]; in findPossible() local
47 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible()
82 char b = (mask[row + x] | mask[row + x + 1] | mask[row + x - 1] in dialateMaskIfRed() local
84 if (b != 0 && isRed(src, p)) in dialateMaskIfRed()
104 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument
105 img[off + 2] = b; in stuff()
[all …]

12345678910>>...20