Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DImageUtils.cpp50 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/
DImageUtils.cpp50 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/
Dwaveform.rs65 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/
DSymmetricalLinearTween.java94 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/
Dmany.rs174 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 …]
DVisualization5RS.java333 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/
DVisualization3RS.java103 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/
DPolarClockWallpaper.java117 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/
DParser.java184 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()
DEmailSyncAdapter.java598 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/
Ddb_feature_detection.cpp812 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/
Ddb_feature_detection.cpp812 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/
DQuotedPrintableInputStream.java63 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/
DSpareParts.java180 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/
DVisualization4RS.java199 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/
Dholo_spiral.rs77 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/
DHapticFeedback.java111 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/
DContentTypeParser.java89 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/
DSmartPoster.java216 private RecommendedAction(byte val) { in RecommendedAction() argument
217 this.mAction = val; in RecommendedAction()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventViewUtils.java185 int val = values.get(i); in reduceMethodList() local
189 if (val == allowedValues[j]) { in reduceMethodList()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java86 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/
DDisplaySettings.java179 int floatToIndex(float val) { in floatToIndex() argument
184 if (val < (lastVal + (thisVal-lastVal)*.5f)) { in floatToIndex()
/packages/apps/Email/src/com/android/email/provider/
DContentCache.java564 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/
DDeleteEventHelper.java298 for (int val : labelValues) { in delete()
299 labelIndex.add(val); in delete()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStorageManager.java475 private synchronized int incrementBytesDownloadedSinceLastCheckOnSpace(long val) { in incrementBytesDownloadedSinceLastCheckOnSpace() argument
476 mBytesDownloadedSinceLastCheckOnSpace += val; in incrementBytesDownloadedSinceLastCheckOnSpace()

12