/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() local 51 if (val < 0) val = 0; in rgba2yvu() 52 if (val > 255) val = 255; in rgba2yvu() 53 *(yimg) = val; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 56 if (val < 0) val = 0; in rgba2yvu() 57 if (val > 255) val = 255; in rgba2yvu() 58 *(vimg) = val; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 61 if (val < 0) val = 0; in rgba2yvu() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() local 51 if (val < 0) val = 0; in rgba2yvu() 52 if (val > 255) val = 255; in rgba2yvu() 53 *(yimg) = val; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 56 if (val < 0) val = 0; in rgba2yvu() 57 if (val > 255) val = 255; in rgba2yvu() 58 *(vimg) = val; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 61 if (val < 0) val = 0; in rgba2yvu() [all …]
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/ |
D | waveform.rs | 65 float val = fabs(sin(0.013f * (wave1pos + i)) * amp1 69 if (val < 2.f && val > -2.f) val = 2.f; 70 points[i*8+1] = val + off; 71 points[i*8+5] = -val + off; 95 float val = fabs(points[i*8+1]); 96 val = val * FADEOUT_FACTOR; 97 if (val < 2.f) val = 2.f; 98 points[i*8+1] = val; 99 points[i*8+5] = -val; 121 float val = fabs(points[i*8+1]); [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | SymmetricalLinearTween.java | 94 float val = diff/(float)duration; 96 val = 1.0f - val; 98 if (val > 1.0f) { 99 val = 1.0f; 100 } else if (val < 0.0f) { 101 val = 0.0f; 104 mValue = val; 105 mCallback.onTweenValueChanged(val, old);
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/ |
D | many.rs | 174 float val = sin(0.013f * (wave1pos + i * 4)) * amp1 178 if (val < 2.f && val > -2.f) val = 2.f; 179 points[i*8+1] = val + off; 180 points[i*8+5] = -val + off; 201 float val = fabs(points[i*8+1]); 202 val = val * FADEOUT_FACTOR; 203 if (val < 2.f) val = 2.f; 204 points[i*8+1] = val; 205 points[i*8+5] = -val; 227 float val = fabs(points[i*8+1]); [all …]
|
D | Visualization5RS.java | 333 int val = mVizData[i]; in updateWave() local 334 if (val < 0) { in updateWave() 335 val = -val; in updateWave() 337 volt += val; in updateWave()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis3/ |
D | Visualization3RS.java | 103 int val = val1 * val1 + val2 * val2; in update() local 104 short newval = (short)(val * (i/16+1)); in update() 122 float val = mAnalyzer[srcidx] / 8; in update() local 123 if (val < 1f && val > -1f) val = 1; in update() 124 mPointData[(i + skip) * 8 + 1] = val; in update() 125 mPointData[(i + skip) * 8 + 5] = -val; in update()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
D | PolarClockWallpaper.java | 117 String val; in parseXmlPaletteTag() local 118 if ((val = xrp.getAttributeValue(null, "background")) != null) in parseXmlPaletteTag() 119 pal.mBackgroundColor = Color.parseColor(val); in parseXmlPaletteTag() 120 if ((val = xrp.getAttributeValue(null, "second")) != null) in parseXmlPaletteTag() 121 pal.mSecondColor = Color.parseColor(val); in parseXmlPaletteTag() 122 if ((val = xrp.getAttributeValue(null, "minute")) != null) in parseXmlPaletteTag() 123 pal.mMinuteColor = Color.parseColor(val); in parseXmlPaletteTag() 124 if ((val = xrp.getAttributeValue(null, "hour")) != null) in parseXmlPaletteTag() 125 pal.mHourColor = Color.parseColor(val); in parseXmlPaletteTag() 126 if ((val = xrp.getAttributeValue(null, "day")) != null) in parseXmlPaletteTag() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
D | Parser.java | 184 public void setDebug(boolean val) { in setDebug() argument 185 logging = val; in setDebug() 198 public void setLoggingTag(String val) { in setLoggingTag() argument 199 logTag = val; in setLoggingTag() 256 String val = text; in getValue() local 263 return val; in getValue() 280 int val = num; in getValueInt() local 287 return val; in getValueInt()
|
D | EmailSyncAdapter.java | 598 int val = getValueInt(); local 599 if (val == LAST_VERB_REPLY || val == LAST_VERB_REPLY_ALL) { 602 } else if (val == LAST_VERB_FORWARD) { 643 String val = ps.get(field); 644 if (!TextUtils.isEmpty(val)) { 645 values.put(column, val); 1017 int val = getValueInt(); 1020 if (val == LAST_VERB_REPLY || val == LAST_VERB_REPLY_ALL) { 1023 } else if (val == LAST_VERB_FORWARD) {
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 812 float val,max_val; in db_Max_128Aligned16_f() 817 val= *p++; in db_Max_128Aligned16_f() 818 if(val>max_val) max_val=val; in db_Max_128Aligned16_f() 870 float val,max_val; in db_Max_64Aligned16_f() 875 val= *p++; in db_Max_64Aligned16_f() 876 if(val>max_val) max_val=val; in db_Max_64Aligned16_f() 918 float val,max_val; in db_Max_32Aligned16_f() 923 val= *p++; in db_Max_32Aligned16_f() 924 if(val>max_val) max_val=val; in db_Max_32Aligned16_f() 958 float val,max_val; in db_Max_16Aligned16_f() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 812 float val,max_val; in db_Max_128Aligned16_f() 817 val= *p++; in db_Max_128Aligned16_f() 818 if(val>max_val) max_val=val; in db_Max_128Aligned16_f() 870 float val,max_val; in db_Max_64Aligned16_f() 875 val= *p++; in db_Max_64Aligned16_f() 876 if(val>max_val) max_val=val; in db_Max_64Aligned16_f() 918 float val,max_val; in db_Max_32Aligned16_f() 923 val= *p++; in db_Max_32Aligned16_f() 924 if(val>max_val) max_val=val; in db_Max_32Aligned16_f() 958 float val,max_val; in db_Max_16Aligned16_f() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | QuotedPrintableInputStream.java | 63 byte val = byteq.dequeue(); in read() 64 if (val >= 0) in read() 65 return val; in read() 67 return val & 0xFF; in read()
|
/packages/apps/SpareParts/src/com/android/spare_parts/ |
D | SpareParts.java | 180 float val = Float.parseFloat(objValue.toString()); in writeAnimationPreference() local 181 mWindowManager.setAnimationScale(which, val); in writeAnimationPreference() 197 int val = Integer.parseInt(objValue.toString()); in writeEndButtonPreference() local 199 Settings.System.END_BUTTON_BEHAVIOR, val); in writeEndButtonPreference() local 204 int floatToIndex(float val, int resid) { in floatToIndex() argument 209 if (val < (lastVal + (thisVal-lastVal)*.5f)) { in floatToIndex()
|
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/ |
D | Visualization4RS.java | 199 int val = mVizData[i]; in updateWave() local 200 if (val < 0) { in updateWave() 201 val = -val; in updateWave() 203 volt += val; in updateWave()
|
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/ |
D | holo_spiral.rs | 77 static float modulo360(float val) { 79 int multiplier = (int)(val * INVERSE_360); 80 return val - (multiplier * 360.0f);
|
/packages/apps/Phone/src/com/android/phone/ |
D | HapticFeedback.java | 111 int val = mSystemSettings.getInt(mContentResolver, System.HAPTIC_FEEDBACK_ENABLED, 0); in checkSystemSetting() local 112 mSettingEnabled = val != 0; in checkSystemSetting()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/ |
D | ContentTypeParser.java | 89 String val; in parameter() local 92 val = value(); in parameter() 94 paramValues.add(val); in parameter()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | SmartPoster.java | 216 private RecommendedAction(byte val) { in RecommendedAction() argument 217 this.mAction = val; in RecommendedAction()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EventViewUtils.java | 185 int val = values.get(i); in reduceMethodList() local 189 if (val == allowedValues[j]) { in reduceMethodList()
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 86 boolean val = mPopup; in getBoolean() 90 return val; in getBoolean() 102 String val = mVibrateWhen; in getString() local 106 return val; in getString() 113 String val = mRingtone; in getString() local 117 return val; in getString()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DisplaySettings.java | 179 int floatToIndex(float val) { in floatToIndex() argument 184 if (val < (lastVal + (thisVal-lastVal)*.5f)) { in floatToIndex()
|
/packages/apps/Email/src/com/android/email/provider/ |
D | ContentCache.java | 564 Object val = values.get(column); in getMatrixCursor() local 565 if (val instanceof Boolean) { in getMatrixCursor() 566 value = (val == Boolean.TRUE) ? "1" : "0"; in getMatrixCursor()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DeleteEventHelper.java | 298 for (int val : labelValues) { in delete() 299 labelIndex.add(val); in delete()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | StorageManager.java | 475 private synchronized int incrementBytesDownloadedSinceLastCheckOnSpace(long val) { in incrementBytesDownloadedSinceLastCheckOnSpace() argument 476 mBytesDownloadedSinceLastCheckOnSpace += val; in incrementBytesDownloadedSinceLastCheckOnSpace()
|