/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/Gallery2/jni_mosaic/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/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/Gallery2/jni_mosaic/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/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/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/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 98 (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 …]
|
D | com_android_bluetooth_gatt.cpp | 570 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/ |
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/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 …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 236 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 …]
|
D | AdapterProperties.java | 437 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 …]
|
D | JniCallbacks.java | 52 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/ |
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/apps/DeskClock/src/com/android/deskclock/ |
D | SnoozeLengthDialog.java | 58 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/ |
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/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 | 602 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/ |
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/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifTag.java | 655 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/ |
D | ResizableIntArray.java | 37 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/ |
D | Visualization4RS.java | 211 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/ |
D | CitiesActivity.java | 159 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/ |
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()
|