Home
last modified time | relevance | path

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

1234

/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/Gallery2/jni_mosaic/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/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/Gallery2/jni_mosaic/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/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/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/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp98 (jbyte*)properties[i].val); in get_properties()
115 jbyteArray val; in adapter_properties_callback() local
130 val = (jbyteArray) callbackEnv->NewByteArray(num_properties); in adapter_properties_callback()
131 if (val == NULL) { in adapter_properties_callback()
136 mclass = callbackEnv->GetObjectClass(val); in adapter_properties_callback()
156 callbackEnv->DeleteLocalRef(val); in adapter_properties_callback()
192 jbyteArray val; in remote_device_properties_callback() local
195 val = (jbyteArray) callbackEnv->NewByteArray(num_properties); in remote_device_properties_callback()
196 if (val == NULL) { in remote_device_properties_callback()
201 mclass = callbackEnv->GetObjectClass(val); in remote_device_properties_callback()
[all …]
Dcom_android_bluetooth_gatt.cpp570 jbyteArray val = sCallbackEnv->NewByteArray(length); in btgatts_request_write_cb() local
571 if (val) sCallbackEnv->SetByteArrayRegion(val, 0, length, (jbyte*)value); in btgatts_request_write_cb()
574 offset, length, need_rsp, is_prep, val); in btgatts_request_write_cb()
576 sCallbackEnv->DeleteLocalRef(val); in btgatts_request_write_cb()
1150 jint server_if, jint attr_handle, jint conn_id, jbyteArray val) in gattServerSendIndicationNative() argument
1154 jbyte* array = env->GetByteArrayElements(val, 0); in gattServerSendIndicationNative()
1155 int val_len = env->GetArrayLength(val); in gattServerSendIndicationNative()
1159 env->ReleaseByteArrayElements(val, array, JNI_ABORT); in gattServerSendIndicationNative()
1163 jint server_if, jint attr_handle, jint conn_id, jbyteArray val) in gattServerSendNotificationNative() argument
1167 jbyte* array = env->GetByteArrayElements(val, 0); in gattServerSendNotificationNative()
[all …]
/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/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 …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java236 byte[] val; in devicePropertyChangedCallback()
249 val = values[j]; in devicePropertyChangedCallback()
250 if(val.length <= 0) in devicePropertyChangedCallback()
256 device.mName = new String(val); in devicePropertyChangedCallback()
266 System.arraycopy(val, 0, device.mAlias, 0, val.length); in devicePropertyChangedCallback()
269 device.mAlias = new String(val); in devicePropertyChangedCallback()
273 device.mAddress = val; in devicePropertyChangedCallback()
274 debugLog("Remote Address is:" + Utils.getAddressStringFromByte(val)); in devicePropertyChangedCallback()
277 device.mBluetoothClass = Utils.byteArrayToInt(val); in devicePropertyChangedCallback()
287 int numUuids = val.length/AbstractionLayer.BT_UUID_SIZE; in devicePropertyChangedCallback()
[all …]
DAdapterProperties.java437 byte[] val; in adapterPropertyChangedCallback()
439 val = values[i]; in adapterPropertyChangedCallback()
441 infoLog("adapterPropertyChangedCallback with type:" + type + " len:" + val.length); in adapterPropertyChangedCallback()
445 mName = new String(val); in adapterPropertyChangedCallback()
454 mAddress = val; in adapterPropertyChangedCallback()
458 mBluetoothClass = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback()
462 int mode = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback()
475 mUuids = Utils.byteArrayToUuid(val); in adapterPropertyChangedCallback()
478 int number = val.length/BD_ADDR_LEN; in adapterPropertyChangedCallback()
481 System.arraycopy(val, j * BD_ADDR_LEN, addrByte, 0, BD_ADDR_LEN); in adapterPropertyChangedCallback()
[all …]
DJniCallbacks.java52 void devicePropertyChangedCallback(byte[] address, int[] types, byte[][] val) { in devicePropertyChangedCallback() argument
53 mRemoteDevices.devicePropertyChangedCallback(address, types, val); in devicePropertyChangedCallback()
80 void adapterPropertyChangedCallback(int[] types, byte[][] val) { in adapterPropertyChangedCallback() argument
81 mAdapterProperties.adapterPropertyChangedCallback(types, val); in adapterPropertyChangedCallback()
/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/apps/DeskClock/src/com/android/deskclock/
DSnoozeLengthDialog.java58 String val; in onSetInitialValue() local
60 val = getPersistedString(DEFAULT_SNOOZE_TIME); in onSetInitialValue()
61 if (val != null) { in onSetInitialValue()
62 mSnoozeMinutes = Integer.parseInt(val); in onSetInitialValue()
65 val = (String) defaultValue; in onSetInitialValue()
66 if (val != null) { in onSetInitialValue()
67 mSnoozeMinutes = Integer.parseInt(val); in onSetInitialValue()
69 persistString(val); in onSetInitialValue()
/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/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.java602 int val = getValueInt(); local
603 if (val == LAST_VERB_REPLY || val == LAST_VERB_REPLY_ALL) {
606 } else if (val == LAST_VERB_FORWARD) {
647 String val = ps.get(field);
648 if (!TextUtils.isEmpty(val)) {
649 values.put(column, val);
1021 int val = getValueInt();
1024 if (val == LAST_VERB_REPLY || val == LAST_VERB_REPLY_ALL) {
1027 } else if (val == LAST_VERB_FORWARD) {
/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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java655 long[] val = (long[]) mValue; in getValueAsInts() local
656 int[] arr = new int[val.length]; in getValueAsInts()
657 for (int i = 0; i < val.length; i++) { in getValueAsInts()
658 arr[i] = (int) val[i]; // Truncates in getValueAsInts()
764 Object val = ((Object[]) mValue)[0]; in forceGetValueAsString() local
765 if (val == null) { in forceGetValueAsString()
768 return val.toString(); in forceGetValueAsString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DResizableIntArray.java37 public void add(final int index, final int val) { in add() argument
39 mArray[index] = val; in add()
42 add(val); in add()
46 public void add(final int val) { in add() argument
49 mArray[currentLength] = val; in add()
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
DVisualization4RS.java211 int val = mVizData[i]; in updateWave() local
212 if (val < 0) { in updateWave()
213 val = -val; in updateWave()
215 volt += val; in updateWave()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitiesActivity.java159 String val = null; in loadCitiesDataBase() local
169 if (!city.mCityName.substring(0, 1).equals(val)) { in loadCitiesDataBase()
170 val = city.mCityName.substring(0, 1); in loadCitiesDataBase()
171 sections.add((new String(val)).toUpperCase()); in loadCitiesDataBase()
174 items.add(new CityObj(val, null, null)); in loadCitiesDataBase()
/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()

1234