Home
last modified time | relevance | path

Searched refs:sw (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterKMeans.java79 int sw = lw; in apply() local
81 while (sw > 64 && sh > 64) { in apply()
82 sw /= 2; in apply()
85 if (sw != lw) { in apply()
86 small_bm_ds = Bitmap.createScaledBitmap(large_bm_ds, sw, sh, true); in apply()
91 nativeApplyFilter(bitmap, w, h, large_bm_ds, lw, lh, small_bm_ds, sw, sh, p, mSeed); in apply()
/packages/services/Telephony/src/org/apache/commons/io/
DIOUtils.java338 CharArrayWriter sw = new CharArrayWriter(); in toCharArray() local
339 copy(input, sw); in toCharArray()
340 return sw.toCharArray(); in toCharArray()
358 StringWriter sw = new StringWriter(); in toString() local
359 copy(input, sw); in toString()
360 return sw.toString(); in toString()
381 StringWriter sw = new StringWriter(); in toString() local
382 copy(input, sw, encoding); in toString()
383 return sw.toString(); in toString()
398 StringWriter sw = new StringWriter(); in toString() local
[all …]
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DIOUtils.java339 CharArrayWriter sw = new CharArrayWriter(); in toCharArray() local
340 copy(input, sw); in toCharArray()
341 return sw.toCharArray(); in toCharArray()
359 StringWriter sw = new StringWriter(); in toString() local
360 copy(input, sw); in toString()
361 return sw.toString(); in toString()
382 StringWriter sw = new StringWriter(); in toString() local
383 copy(input, sw, encoding); in toString()
384 return sw.toString(); in toString()
399 StringWriter sw = new StringWriter(); in toString() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageTinyPlanet.java154 float sw = canvas.getWidth(); in display() local
158 float nsw = sw; in display()
161 if (sw * ih > sh * iw) { in display()
164 nsh = sw * ih / iw; in display()
167 mDestRect.left = (sw - nsw) / 2; in display()
169 mDestRect.right = sw - mDestRect.left; in display()
DMasterImage.java210 int sw = SMALL_BITMAP_DIM; in loadBitmap() local
211 int sh = (int) (sw * (float) mOriginalBitmapLarge.getHeight() / mOriginalBitmapLarge in loadBitmap()
213 mOriginalBitmapSmall = Bitmap.createScaledBitmap(mOriginalBitmapLarge, sw, sh, true); in loadBitmap()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMessageListing.java92 StringWriter sw = new StringWriter(); in encode() local
95 xmlMsgElement.setOutput(sw); in encode()
113 return sw.toString().getBytes("UTF-8"); in encode()
DBluetoothMapConvoListing.java95 StringWriter sw = new StringWriter(); in encode() local
98 xmlConvoElement.setOutput(sw); in encode()
117 return sw.toString().getBytes("UTF-8"); in encode()
DBluetoothMapFolderElement.java254 StringWriter sw = new StringWriter(); in encode() local
268 xmlMsgElement.setOutput(sw); in encode()
291 return sw.toString().getBytes("UTF-8"); in encode()
DBluetoothMapContentObserver.java723 StringWriter sw = new StringWriter(); in encode() local
727 xmlEvtReport.setOutput(sw); in encode()
820 if (V) Log.d(TAG, sw.toString()); in encode()
822 return sw.toString().getBytes("UTF-8"); in encode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DJsonUtils.java72 final StringWriter sw = new StringWriter(); in listToJsonStr() local
73 final JsonWriter writer = new JsonWriter(sw); in listToJsonStr()
86 return sw.toString(); in listToJsonStr()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBogusMoveEventDetector.java52 final int sw = res.getConfiguration().smallestScreenWidthDp; in init() local
54 + " smallestScreenWidthDp=" + sw + " densityDpi=" + densityDpi in init()
/packages/apps/Settings/src/com/android/settings/applications/
DAppOpsDetails.java131 Switch sw = (Switch)view.findViewById(R.id.switchWidget); in refreshUi() local
133 sw.setChecked(mAppOps.checkOp(switchOp, entry.getPackageOps().getUid(), in refreshUi()
135 sw.setOnCheckedChangeListener(new Switch.OnCheckedChangeListener() { in refreshUi()
DAppOpsCategory.java370 Switch sw = ((Switch) v.findViewById(R.id.op_switch)); in onListItemClick() local
371 boolean checked = !sw.isChecked(); in onListItemClick()
372 sw.setChecked(checked); in onListItemClick()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieItem.java133 public void setGeometry(float st, float sw, int inside, int outside) { in setGeometry() argument
135 sweep = sw; in setGeometry()
/packages/apps/MusicFX/src/com/android/musicfx/
DActivityMusic.java365 final Switch sw = (Switch) findViewById(R.id.vIStrengthToggle); in onCreate() local
366 sw.setOnCheckedChangeListener(new OnCheckedChangeListener() { in onCreate()
583 Switch sw = (Switch) findViewById(R.id.vIStrengthToggle); in updateUI() local
592 sw.setVisibility(View.GONE); in updateUI()
595 sw.setChecked(sw.isEnabled() && strength != 0); in updateUI()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DUtils.java820 final StringWriter sw = new StringWriter(); in dumpFragment() local
821 f.dump("", new FileDescriptor(), new PrintWriter(sw), new String[0]); in dumpFragment()
822 return sw.toString(); in dumpFragment()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java2253 StringWriter sw = new StringWriter(); in stream2String() local
2258 sw.write(new String(buffer, 0, read)); in stream2String()
2263 return sw.toString(); in stream2String()
/packages/apps/Messaging/build/gcheckstyle/
Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com ...