Home
last modified time | relevance | path

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

12345

/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_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/Camera2/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/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/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/Camera2/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/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/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp99 (jbyte*)properties[i].val); in get_properties()
116 jbyteArray val; in adapter_properties_callback() local
131 val = (jbyteArray) callbackEnv->NewByteArray(num_properties); in adapter_properties_callback()
132 if (val == NULL) { in adapter_properties_callback()
137 mclass = callbackEnv->GetObjectClass(val); in adapter_properties_callback()
157 callbackEnv->DeleteLocalRef(val); in adapter_properties_callback()
193 jbyteArray val; in remote_device_properties_callback() local
196 val = (jbyteArray) callbackEnv->NewByteArray(num_properties); in remote_device_properties_callback()
197 if (val == NULL) { in remote_device_properties_callback()
202 mclass = callbackEnv->GetObjectClass(val); in remote_device_properties_callback()
[all …]
Dcom_android_bluetooth_gatt.cpp580 jbyteArray val = sCallbackEnv->NewByteArray(length); in btgatts_request_write_cb() local
581 if (val) sCallbackEnv->SetByteArrayRegion(val, 0, length, (jbyte*)value); in btgatts_request_write_cb()
584 offset, length, need_rsp, is_prep, val); in btgatts_request_write_cb()
586 sCallbackEnv->DeleteLocalRef(val); in btgatts_request_write_cb()
1204 jint server_if, jint attr_handle, jint conn_id, jbyteArray val) in gattServerSendIndicationNative() argument
1208 jbyte* array = env->GetByteArrayElements(val, 0); in gattServerSendIndicationNative()
1209 int val_len = env->GetArrayLength(val); in gattServerSendIndicationNative()
1213 env->ReleaseByteArrayElements(val, array, JNI_ABORT); in gattServerSendIndicationNative()
1217 jint server_if, jint attr_handle, jint conn_id, jbyteArray val) in gattServerSendNotificationNative() argument
1221 jbyte* array = env->GetByteArrayElements(val, 0); in gattServerSendNotificationNative()
[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.java436 byte[] val; in adapterPropertyChangedCallback()
438 val = values[i]; in adapterPropertyChangedCallback()
440 infoLog("adapterPropertyChangedCallback with type:" + type + " len:" + val.length); in adapterPropertyChangedCallback()
444 mName = new String(val); in adapterPropertyChangedCallback()
453 mAddress = val; in adapterPropertyChangedCallback()
457 mBluetoothClass = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback()
461 int mode = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback()
474 mUuids = Utils.byteArrayToUuid(val); in adapterPropertyChangedCallback()
477 int number = val.length/BD_ADDR_LEN; in adapterPropertyChangedCallback()
480 System.arraycopy(val, j * BD_ADDR_LEN, addrByte, 0, BD_ADDR_LEN); in adapterPropertyChangedCallback()
[all …]
/packages/apps/UnifiedEmail/src/com/android/bitmap/
DAltPooledCache.java164 for (V val : mPool) { in toDebugString()
165 size += sizeOf(val); in toDebugString()
167 sb.append(val); in toDebugString()
171 final V val = item.getValue(); in toDebugString() local
175 sb.append(val); in toDebugString()
176 size += sizeOf(val); in toDebugString()
181 final V val = item.getValue(); in toDebugString() local
185 sb.append(val); in toDebugString()
186 size += sizeOf(val); in toDebugString()
/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/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java58 ContentValues val = new ContentValues(); in insertStack() local
59 val.put(FilterStack.STACK_ID, stackName); in insertStack()
60 val.put(FilterStack.FILTER_STACK, stackBlob); in insertStack()
63 ret = (-1 != database.insert(FilterStack.TABLE, null, val)); in insertStack()
72 ContentValues val = new ContentValues(); in updateStackName() local
73 val.put(FilterStack.STACK_ID, stackName); in updateStackName()
76 database.update(FilterStack.TABLE, val, FilterStack._ID + " = ?", in updateStackName()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DExif.java39 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation() local
40 if (val == null) { in getOrientation()
43 return ExifInterface.getRotationForOrientationValue(val.shortValue()); in getOrientation()
70 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation() local
71 if (val == null) { in getOrientation()
74 return ExifInterface.getRotationForOrientationValue(val.shortValue()); in getOrientation()
/packages/apps/Exchange/src/com/android/exchange/adapter/
DEmailSyncParser.java221 int val = getValueInt(); in addData() local
222 if (val == LAST_VERB_REPLY || val == LAST_VERB_REPLY_ALL) { in addData()
225 } else if (val == LAST_VERB_FORWARD) { in addData()
266 String val = ps.get(field); in putFromMeeting() local
267 if (!TextUtils.isEmpty(val)) { in putFromMeeting()
268 values.put(column, val); in putFromMeeting()
645 int val = getValueInt(); in changeApplicationDataParser() local
649 if (val == LAST_VERB_REPLY || val == LAST_VERB_REPLY_ALL) { in changeApplicationDataParser()
652 } else if (val == LAST_VERB_FORWARD) { in changeApplicationDataParser()
DParser.java188 public void setDebug(boolean val) { in setDebug() argument
189 logging = val; in setDebug()
250 String val = text; in getValue() local
257 return val; in getValue()
274 int val = num; in getValueInt() local
281 return val; in getValueInt()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterDrawRepresentation.java136 static String colorHexString(int val) { in colorHexString() argument
137 String str = "00000000" + Integer.toHexString(val); in colorHexString()
143 int val; in getValueString() local
146 val = ((ParameterColor) mAllParam[mParamMode]).getValue(); in getValueString()
149 val = ((BasicParameterInt) mAllParam[mParamMode]).getValue(); in getValueString()
150 return ((val > 0) ? " +" : " ") + val; in getValueString()
/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/UnifiedEmail/src/com/android/mail/providers/
DConversation.java534 final Object val = values.get(key); in applyCachedValues() local
536 val); in applyCachedValues()
538 read = (Integer) val != 0; in applyCachedValues()
540 conversationInfo = ConversationInfo.fromBlob((byte[]) val); in applyCachedValues()
542 convFlags = (Integer) val; in applyCachedValues()
544 starred = (Integer) val != 0; in applyCachedValues()
546 seen = (Integer) val != 0; in applyCachedValues()
548 rawFolders = FolderList.fromBlob((byte[]) val); in applyCachedValues()
/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/apps/Camera2/src/com/android/camera/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()

12345