/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/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()
|
D | TimerSetupView.java | 126 Integer val = (Integer) v.getTag(R.id.numbers_key); in doOnClick() local 128 if (val != null) { in doOnClick() 130 if (mInputPointer == -1 && val == 0) { in doOnClick() 138 mInput [0] = val; in doOnClick()
|
D | TimePicker.java | 93 Integer val = (Integer) v.getTag(R.id.numbers_key); in doOnClick() local 95 if (val != null) { in doOnClick() 96 addClickedNumber(val); in doOnClick() 209 private void addClickedNumber(int val) { in addClickedNumber() argument 215 mInput[0] = val; in addClickedNumber()
|
/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/Bluetooth/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 237 byte[] val; in devicePropertyChangedCallback() 250 val = values[j]; in devicePropertyChangedCallback() 251 if(val.length <= 0) in devicePropertyChangedCallback() 257 device.mName = new String(val); in devicePropertyChangedCallback() 267 System.arraycopy(val, 0, device.mAlias, 0, val.length); in devicePropertyChangedCallback() 270 device.mAlias = new String(val); in devicePropertyChangedCallback() 274 device.mAddress = val; in devicePropertyChangedCallback() 275 debugLog("Remote Address is:" + Utils.getAddressStringFromByte(val)); in devicePropertyChangedCallback() 278 device.mBluetoothClass = Utils.byteArrayToInt(val); in devicePropertyChangedCallback() 288 int numUuids = val.length/AbstractionLayer.BT_UUID_SIZE; in devicePropertyChangedCallback() [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()
|
D | AdapterProperties.java | 436 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/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 99 jbyte rssi = *((jbyte *) properties[i].val); in get_properties() 102 properties[i].val = &rssiValue; in get_properties() 109 (jbyte*)properties[i].val); in get_properties() 126 jbyteArray val; in adapter_properties_callback() local 141 val = (jbyteArray) callbackEnv->NewByteArray(num_properties); in adapter_properties_callback() 142 if (val == NULL) { in adapter_properties_callback() 147 mclass = callbackEnv->GetObjectClass(val); in adapter_properties_callback() 167 callbackEnv->DeleteLocalRef(val); in adapter_properties_callback() 203 jbyteArray val; in remote_device_properties_callback() local 206 val = (jbyteArray) callbackEnv->NewByteArray(num_properties); in remote_device_properties_callback() [all …]
|
/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/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()
|
/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/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/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/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/Phone/src/com/android/phone/ |
D | HapticFeedback.java | 114 int val = mSystemSettings.getInt(mContentResolver, System.HAPTIC_FEEDBACK_ENABLED, 0); in checkSystemSetting() local 115 mSettingEnabled = val != 0; in checkSystemSetting()
|