Searched refs:res (Results 26 - 50 of 454) sorted by relevance

1234567891011>>

/frameworks/base/core/java/com/android/internal/net/
H A DDNParser.java301 int res = getByte(pos);
304 if (res < 128) { // one byte: 0-7F
305 return (char) res;
306 } else if (res >= 192 && res <= 247) {
309 if (res <= 223) { // two bytes: C0-DF
311 res = res & 0x1F;
312 } else if (res <= 239) { // three bytes: E0-EF
314 res
[all...]
/frameworks/base/test-runner/src/android/test/mock/
H A DMockApplication.java20 import android.content.res.Configuration;
H A DMockResources.java19 import android.content.res.AssetManager;
20 import android.content.res.Resources;
21 import android.content.res.Configuration;
22 import android.content.res.TypedArray;
23 import android.content.res.ColorStateList;
24 import android.content.res.XmlResourceParser;
25 import android.content.res.AssetFileDescriptor;
35 * A mock {@link android.content.res.Resources} class. All methods are non-functional and throw
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridgeAssetManager.java19 import android.content.res.AssetManager;
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DKeyguardScreenCallback.java19 import android.content.res.Configuration;
/frameworks/base/services/java/com/android/server/am/
H A DAppErrorDialog.java23 import android.content.res.Resources;
44 Resources res = context.getResources();
51 setMessage(res.getString(
56 setMessage(res.getString(
64 res.getText(com.android.internal.R.string.force_close),
69 res.getText(com.android.internal.R.string.report),
73 setTitle(res.getText(com.android.internal.R.string.aerr_title));
H A DAppNotRespondingDialog.java25 import android.content.res.Resources;
48 Resources res = context.getResources();
77 ? res.getString(resid, name1.toString(), name2.toString())
78 : res.getString(resid, name1.toString()));
81 res.getText(com.android.internal.R.string.force_close),
84 res.getText(com.android.internal.R.string.wait),
89 res.getText(com.android.internal.R.string.report),
93 setTitle(res.getText(com.android.internal.R.string.anr_title));
/frameworks/base/media/libstagefright/codecs/m4v_h263/dec/src/
H A Didct.cpp355 int res; local
538 res = (*pred++ + block[0+(i<<3)]);
539 CLIP_RESULT(res);
540 *dst++ = res;
541 res = (*pred++ + block[1+(i<<3)]);
542 CLIP_RESULT(res);
543 *dst++ = res;
544 res = (*pred++ + block[2+(i<<3)]);
545 CLIP_RESULT(res);
546 *dst++ = res;
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DTransitionDrawable.java19 import android.content.res.Resources;
89 private TransitionDrawable(TransitionState state, Resources res) { argument
90 super(state, res);
98 LayerState createConstantState(LayerState state, Resources res) { argument
99 return new TransitionState((TransitionState) state, this, res);
234 Resources res) {
235 super(orig, owner, res);
244 public Drawable newDrawable(Resources res) { argument
245 return new TransitionDrawable(this, res);
233 TransitionState(TransitionState orig, TransitionDrawable owner, Resources res) argument
H A DLevelListDrawable.java24 import android.content.res.Resources;
25 import android.content.res.TypedArray;
40 * &lt;level-list xmlns:android="http://schemas.android.com/apk/res/android">
47 * <p>With this XML saved into the res/drawable/ folder of the project, it can be referenced as
157 LevelListState(LevelListState orig, LevelListDrawable owner, Resources res) { argument
158 super(orig, owner, res);
193 public Drawable newDrawable(Resources res) { argument
194 return new LevelListDrawable(this, res);
209 private LevelListDrawable(LevelListState state, Resources res) { argument
210 LevelListState as = new LevelListState(state, this, res);
[all...]
H A DNinePatchDrawable.java20 import android.content.res.Resources;
21 import android.content.res.TypedArray;
71 public NinePatchDrawable(Resources res, Bitmap bitmap, byte[] chunk, argument
73 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
91 public NinePatchDrawable(Resources res, NinePatch patch) { argument
92 this(new NinePatchState(patch, new Rect()), res);
96 private void setNinePatchState(NinePatchState state, Resources res) { argument
100 mTargetDensity = res != null ? res.getDisplayMetrics().densityDpi
374 public Drawable newDrawable(Resources res) { argument
384 NinePatchDrawable(NinePatchState state, Resources res) argument
[all...]
/frameworks/base/media/libstagefright/codecs/aacdec/
H A Dsbr_decode_envelope.cpp112 Int32 res);
116 Int32 res);
205 Int32 res)
209 if (res == LO)
251 Int32 res)
253 if (res == LO)
200 mapLowResEnergyVal( Int32 currVal, Int32 *prevData, Int32 offset, Int32 index, Int32 res) argument
249 indexLow2High(Int32 offset, Int32 index, Int32 res) argument
/frameworks/base/tools/aapt/
H A Dprintapk.cpp99 ResTable res(resfile, size, resfile);
100 res.print();
102 size_t tableCount = res.getTableCount();
105 const ResStringPool* strings = res.getTableStringBlock(tableIndex);
115 size_t basePackageCount = res.getBasePackageCount();
118 const char16_t* ch = res.getBasePackageName(bpIndex);
/frameworks/base/libs/utils/
H A DCallStack.cpp288 String8 res; local
296 if (!ip) return res;
298 if (prefix) res.append(prefix);
300 res.append(tmp1);
308 res.append(tmp1);
309 res.append(name);
310 res.append(tmp2);
316 res.append(tmp);
318 res.append("\n");
320 return res;
338 String8 res; local
[all...]
/frameworks/base/awt/java/awt/color/
H A DICC_Profile.java1172 ICC_Profile res = null;
1175 res = new ICC_Profile(data);
1183 if (res.getColorSpaceType() == ColorSpace.TYPE_RGB
1184 && res.getDataSize(icSigMediaWhitePointTag) > 0
1185 && res.getDataSize(icSigRedColorantTag) > 0
1186 && res.getDataSize(icSigGreenColorantTag) > 0
1187 && res.getDataSize(icSigBlueColorantTag) > 0
1188 && res.getDataSize(icSigRedTRCTag) > 0
1189 && res.getDataSize(icSigGreenTRCTag) > 0
1190 && res
[all...]
/frameworks/base/core/java/android/app/
H A DISearchManager.aidl22 import android.content.res.Configuration;
/frameworks/base/core/java/android/content/
H A DSyncAdaptersCache.java21 import android.content.res.Resources;
22 import android.content.res.TypedArray;
46 public SyncAdapterType parseServiceAttributes(Resources res, argument
48 TypedArray sa = res.obtainAttributes(attrs,
/frameworks/base/awt/javax/imageio/stream/
H A DFileImageInputStream.java78 int res = raf.read();
79 if (res != -1) {
82 return res;
/frameworks/base/awt/org/apache/harmony/awt/gl/image/
H A DBufferedImageGraphics2D.java62 BufferedImageGraphics2D res = new BufferedImageGraphics2D(bi);
63 copyInternalFields(res);
64 return res;
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DCrossing.java51 * @param res - the roots of the equation
54 public static int solveQuad(double eqn[], double res[]) { argument
63 res[rc++] = -c / b;
71 res[rc++] = (- b + d) / (a * 2.0);
74 res[rc++] = (- b - d) / (a * 2.0);
77 return fixRoots(res, rc);
83 * @param res - the roots of the equation
86 public static int solveCubic(double eqn[], double res[]) { argument
89 return solveQuad(eqn, res);
106 res[r
138 fixRoots(double res[], int rc) argument
174 cross(double res[], int rc, double py1, double py2) argument
214 solvePoint(double res[], double px) argument
219 solveExtrem(double res[]) argument
230 addBound(double bound[], int bc, double res[], int rc, double minX, double maxX, boolean changeId, int id) argument
280 cross(double res[], int rc, double py1, double py2) argument
325 solvePoint(double res[], double px) argument
330 solveExtremX(double res[]) argument
335 solveExtremY(double res[]) argument
340 addBound(double bound[], int bc, double res[], int rc, double minX, double maxX, boolean changeId, int id) argument
[all...]
/frameworks/base/cmds/runtime/
H A DSignalHandler.cpp79 int res = waitpid(entry.info.si_pid, NULL, WNOHANG); local
80 LOGW_IF(res == 0,
110 pid_t res = waitpid(childPid, NULL, WNOHANG); local
111 if (res != 0) {
112 if (res < 0) {
114 childPid, res, strerror(errno));
117 childPid, res);
128 return (status_t)res;
171 int res = pipe(mAvailMsg); local
172 LOGE_IF(res !
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java19 import android.content.res.AssetManager;
20 import android.content.res.Resources;
303 public static Bitmap decodeResourceStream(Resources res, TypedValue value, argument
319 if (opts.inTargetDensity == 0 && res != null) {
320 opts.inTargetDensity = res.getDisplayMetrics().densityDpi;
330 * @param res The resources object containing the image data
338 public static Bitmap decodeResource(Resources res, int id, Options opts) { argument
344 is = res.openRawResource(id, value);
346 bm = decodeResourceStream(res, value, is, null, opts);
367 * @param res Th
371 decodeResource(Resources res, int id) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory.java19 import android.content.res.AssetManager;
20 import android.content.res.Resources;
302 public static Bitmap decodeResourceStream(Resources res, TypedValue value, argument
318 if (opts.inTargetDensity == 0 && res != null) {
319 opts.inTargetDensity = res.getDisplayMetrics().densityDpi;
329 * @param res The resources object containing the image data
337 public static Bitmap decodeResource(Resources res, int id, Options opts) { argument
343 is = res.openRawResource(id, value);
345 bm = decodeResourceStream(res, value, is, null, opts);
366 * @param res Th
370 decodeResource(Resources res, int id) argument
[all...]
/frameworks/base/tools/localize/
H A Dxmb.cpp24 string res; local
29 res += c;
31 res += ' ';
34 return res;
82 resource_to_xmb_msg(const StringResource& res) argument
86 string name = res.pos.file;
88 name += res.TypedID();
90 attrs.push_back(XMLAttribute("", "desc", strip_newlines(res.comment)));
92 XMLNode* msg = XMLNode::NewElement(res.pos, "", "msg", attrs, XMLNode::EXACT);
96 XMLNode* value = res
[all...]
/frameworks/base/awt/javax/imageio/metadata/
H A DIIOMetadata.java235 ArrayList<String> res = new ArrayList<String>();
242 res.add(IIOMetadataFormatImpl.standardMetadataFormatName);
245 res.add(nativeMetadataFormatName);
249 res.add(extraMetadataFormatName);
253 return res.size() > 0 ? res.toArray(new String[0]) : null;

Completed in 476 milliseconds

1234567891011>>