Searched refs:context (Results 401 - 425 of 2171) sorted by relevance

<<11121314151617181920>>

/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DRedEyeFilter.java95 public void initProgram(FilterContext context, int target) { argument
98 ShaderProgram shaderProgram = new ShaderProgram(context, mRedEyeShader);
111 public void process(FilterContext context) { argument
117 Frame output = context.getFrameManager().newFrame(inputFormat);
121 initProgram(context, inputFormat.getTarget());
129 createRedEyeFrame(context);
147 public void fieldPortValueUpdated(String name, FilterContext context) { argument
153 private void createRedEyeFrame(FilterContext context) { argument
170 mRedEyeFrame = context.getFrameManager().newFrame(format);
H A DBlackWhiteFilter.java101 public void initProgram(FilterContext context, int target) { argument
104 ShaderProgram shaderProgram = new ShaderProgram(context, mBlackWhiteShader);
129 public void fieldPortValueUpdated(String name, FilterContext context) { argument
136 public void process(FilterContext context) { argument
143 initProgram(context, inputFormat.getTarget());
147 Frame output = context.getFrameManager().newFrame(inputFormat);
H A DCropRectFilter.java65 public void initProgram(FilterContext context, int target) { argument
68 ShaderProgram shaderProgram = ShaderProgram.createIdentity(context);
81 public void fieldPortValueUpdated(String name, FilterContext context) { argument
88 public void process(FilterContext context) { argument
97 Frame output = context.getFrameManager().newFrame(outputFormat);
101 initProgram(context, inputFormat.getTarget());
H A DFillLightFilter.java76 public void initProgram(FilterContext context, int target) { argument
79 ShaderProgram shaderProgram = new ShaderProgram(context, mFillLightShader);
94 public void process(FilterContext context) { argument
100 Frame output = context.getFrameManager().newFrame(inputFormat);
104 initProgram(context, inputFormat.getTarget());
120 public void fieldPortValueUpdated(String name, FilterContext context) { argument
H A DFisheyeFilter.java85 public void initProgram(FilterContext context, int target) { argument
88 ShaderProgram shaderProgram = new ShaderProgram(context, mFisheyeShader);
101 public void process(FilterContext context) { argument
107 Frame output = context.getFrameManager().newFrame(inputFormat);
111 initProgram(context, inputFormat.getTarget());
130 public void fieldPortValueUpdated(String name, FilterContext context) { argument
H A DSharpenFilter.java83 public void initProgram(FilterContext context, int target) { argument
86 ShaderProgram shaderProgram = new ShaderProgram(context, mSharpenShader);
99 public void process(FilterContext context) { argument
105 Frame output = context.getFrameManager().newFrame(inputFormat);
109 initProgram(context, inputFormat.getTarget());
143 public void fieldPortValueUpdated(String name, FilterContext context) { argument
H A DVignetteFilter.java77 public void initProgram(FilterContext context, int target) { argument
80 ShaderProgram shaderProgram = new ShaderProgram(context, mVignetteShader);
119 public void fieldPortValueUpdated(String name, FilterContext context) { argument
126 public void process(FilterContext context) { argument
133 initProgram(context, inputFormat.getTarget());
144 Frame output = context.getFrameManager().newFrame(inputFormat);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DSurfaceTextureSource.java154 protected void prepare(FilterContext context) { argument
160 mMediaFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat,
165 mFrameExtractor = new ShaderProgram(context, mRenderShader);
169 public void open(FilterContext context) { argument
181 public void process(FilterContext context) { argument
216 Frame output = context.getFrameManager().newFrame(mOutputFormat);
226 public void close(FilterContext context) { argument
234 public void tearDown(FilterContext context) { argument
241 public void fieldPortValueUpdated(String name, FilterContext context) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
H A DToggleSlider.java52 public ToggleSlider(Context context) { argument
53 this(context, null);
56 public ToggleSlider(Context context, AttributeSet attrs) { argument
57 this(context, attrs, 0);
60 public ToggleSlider(Context context, AttributeSet attrs, int defStyle) { argument
61 super(context, attrs, defStyle);
63 View.inflate(context, R.layout.status_bar_toggle_slider, this);
65 final Resources res = context.getResources();
66 final TypedArray a = context.obtainStyledAttributes(
/frameworks/base/tests/CoreTests/android/core/
H A DTestHttpClient.java66 private final HttpContext context; field in class:TestHttpClient
88 this.context = new BasicHttpContext(null);
99 this.context.setAttribute(ExecutionContext.HTTP_REQUEST, request);
100 this.context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, targetHost);
101 this.context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
104 this.httpexecutor.preProcess(request, this.httpproc, this.context);
105 HttpResponse response = this.httpexecutor.execute(request, conn, this.context);
108 this.httpexecutor.postProcess(response, this.httpproc, this.context);
113 return this.connStrategy.keepAlive(response, this.context);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DBridgeActionBar.java39 // Store a reference to the context so that we don't have to cast it repeatedly.
51 public BridgeActionBar(@NonNull BridgeContext context, @NonNull SessionParams params) { argument
52 mBridgeContext = context;
55 ResourceValue layoutName = getLayoutResource(context);
61 layoutId = context.getFrameworkResourceValue(layoutName.getResourceType(),
64 layoutId = context.getProjectResourceValue(layoutName.getResourceType(),
84 getInflater(context).inflate(layoutId, mEnclosingLayout, mEnclosingLayout != null);
92 protected abstract ResourceValue getLayoutResource(BridgeContext context); argument
94 protected LayoutInflater getInflater(BridgeContext context) { argument
95 return LayoutInflater.from(context);
[all...]
/frameworks/support/v14/preference/src/android/support/v14/preference/
H A DSwitchPreference.java66 * @param context The Context that will style this preference
76 public SwitchPreference(Context context, AttributeSet attrs, int defStyleAttr, argument
78 super(context, attrs, defStyleAttr, defStyleRes);
80 TypedArray a = context.obtainStyledAttributes(attrs,
107 * @param context The Context that will style this preference
113 public SwitchPreference(Context context, AttributeSet attrs, int defStyleAttr) { argument
114 this(context, attrs, defStyleAttr, 0);
120 * @param context The Context that will style this preference
123 public SwitchPreference(Context context, AttributeSet attrs) { argument
124 this(context, attr
132 SwitchPreference(Context context) argument
[all...]
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DDialogPreference.java53 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
54 super(context, attrs, defStyleAttr, defStyleRes);
56 final TypedArray a = context.obtainStyledAttributes(attrs,
88 public DialogPreference(Context context, AttributeSet attrs, int defStyleAttr) { argument
89 this(context, attrs, defStyleAttr, 0);
92 public DialogPreference(Context context, AttributeSet attrs) { argument
93 this(context, attrs, R.attr.dialogPreferenceStyle);
96 public DialogPreference(Context context) { argument
97 this(context, null);
52 DialogPreference( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
H A DSwitchPreferenceCompat.java64 * @param context The Context that will style this preference
74 public SwitchPreferenceCompat(Context context, AttributeSet attrs, int defStyleAttr, argument
76 super(context, attrs, defStyleAttr, defStyleRes);
78 TypedArray a = context.obtainStyledAttributes(attrs,
105 * @param context The Context that will style this preference
111 public SwitchPreferenceCompat(Context context, AttributeSet attrs, int defStyleAttr) { argument
112 this(context, attrs, defStyleAttr, 0);
118 * @param context The Context that will style this preference
121 public SwitchPreferenceCompat(Context context, AttributeSet attrs) { argument
122 this(context, attr
130 SwitchPreferenceCompat(Context context) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DAnalogClock.java64 public AnalogClock(Context context) { argument
65 this(context, null);
68 public AnalogClock(Context context, AttributeSet attrs) { argument
69 this(context, attrs, 0);
72 public AnalogClock(Context context, AttributeSet attrs, int defStyleAttr) { argument
73 this(context, attrs, defStyleAttr, 0);
76 public AnalogClock(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
77 super(context, attrs, defStyleAttr, defStyleRes);
79 final Resources r = context.getResources();
80 final TypedArray a = context
[all...]
H A DArrayAdapter.java108 * @param context The current context.
112 public ArrayAdapter(Context context, @LayoutRes int resource) { argument
113 this(context, resource, 0, new ArrayList<T>());
119 * @param context The current context.
124 public ArrayAdapter(Context context, @LayoutRes int resource, @IdRes int textViewResourceId) { argument
125 this(context, resource, textViewResourceId, new ArrayList<T>());
131 * @param context The current context
136 ArrayAdapter(Context context, @LayoutRes int resource, @NonNull T[] objects) argument
149 ArrayAdapter(Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull T[] objects) argument
162 ArrayAdapter(Context context, @LayoutRes int resource, @NonNull List<T> objects) argument
175 ArrayAdapter(Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull List<T> objects) argument
461 createFromResource(Context context, @ArrayRes int textArrayResId, @LayoutRes int textViewResId) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DIntents.java59 * @param context The context
62 public static PhotoViewIntentBuilder newPhotoViewActivityIntentBuilder(Context context) { argument
63 return new PhotoViewIntentBuilder(context, PhotoViewActivity.class);
69 * @param context The context
72 public static PhotoViewIntentBuilder newPhotoViewFragmentIntentBuilder(Context context) { argument
73 return newPhotoViewFragmentIntentBuilder(context, PhotoViewFragment.class);
80 * @param context The context
84 newPhotoViewFragmentIntentBuilder(Context context, Class<? extends PhotoViewFragment> clazz) argument
90 newPhotoViewIntentBuilder( Context context, Class<? extends Activity> cls) argument
96 newPhotoViewIntentBuilder( Context context, String activityName) argument
142 PhotoViewIntentBuilder(Context context, Class<?> cls) argument
147 PhotoViewIntentBuilder(Context context, String activityName) argument
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DCursorAdapter.java118 * @param context The context
121 public CursorAdapter(Context context, Cursor c) { argument
122 init(context, c, FLAG_AUTO_REQUERY);
132 * @param context The context
137 public CursorAdapter(Context context, Cursor c, boolean autoRequery) { argument
138 init(context, c, autoRequery ? FLAG_AUTO_REQUERY : FLAG_REGISTER_CONTENT_OBSERVER);
145 * @param context The context
150 CursorAdapter(Context context, Cursor c, int flags) argument
159 init(Context context, Cursor c, boolean autoRequery) argument
163 init(Context context, Cursor c, int flags) argument
285 newView(Context context, Cursor cursor, ViewGroup parent) argument
295 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument
306 bindView(View view, Context context, Cursor cursor) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfoAsyncQuery.java99 static ContentResolver getCurrentProfileContentResolver(Context context) { argument
104 final int myUser = UserManager.get(context).getUserHandle();
111 otherContext = context.createPackageContextAsUser(context.getPackageName(),
119 return context.getContentResolver();
137 * NOTE: The actual context we use for query may *not* be this context; since we query
139 * context resolver (obtained via {@link #getCurrentProfileContentResolver) and pass it
220 private CallerInfoAsyncQueryHandler(Context context) { argument
221 super(getCurrentProfileContentResolver(context));
357 startQuery(int token, Context context, Uri contactRef, OnQueryCompleteListener listener, Object cookie) argument
387 startQuery(int token, Context context, String number, OnQueryCompleteListener listener, Object cookie) argument
405 startQuery(int token, Context context, String number, OnQueryCompleteListener listener, Object cookie, int subId) argument
476 allocate(Context context, Uri contactRef) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DMasterClearReceiver.java38 public void onReceive(final Context context, final Intent intent) { argument
57 RecoverySystem.rebootWipeUserData(context, shutdown, reason);
69 new WipeAdoptableDisksTask(context, thr).execute();
80 public WipeAdoptableDisksTask(Context context, Thread chainedTask) { argument
81 mContext = context;
83 mProgressDialog = new ProgressDialog(context);
/frameworks/base/services/core/java/com/android/server/storage/
H A DDeviceStorageMonitorService.java322 public DeviceStorageMonitorService(Context context) { argument
323 super(context);
325 mResolver = context.getContentResolver();
412 final Context context = getContext();
416 pw.print(" mFreeMem="); pw.print(Formatter.formatFileSize(context, mFreeMem));
418 pw.println(Formatter.formatFileSize(context, mTotalMemory));
421 pw.println(Formatter.formatFileSize(context, mFreeMemAfterLastCacheClear));
424 pw.print(Formatter.formatFileSize(context, mLastReportedFreeMem));
437 pw.print(Formatter.formatFileSize(context, mMemLowThreshold));
439 pw.println(Formatter.formatFileSize(context, mMemFullThreshol
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/webkit/
H A DWebView.java41 * @param context A Context object used to access application assets.
43 public WebView(Context context) { argument
44 this(context, null);
49 * @param context A Context object used to access application assets.
52 public WebView(Context context, AttributeSet attrs) { argument
53 this(context, attrs, com.android.internal.R.attr.webViewStyle);
58 * @param context A Context object used to access application assets.
62 public WebView(Context context, AttributeSet attrs, int defStyle) { argument
63 super(context, attrs, defStyle);
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxPredictor.java39 public BordeauxPredictor(Context context) { argument
40 mContext = context;
42 mPredictor = BordeauxManagerService.getPredictor(context, mName);
45 public BordeauxPredictor(Context context, String name) { argument
46 mContext = context;
48 mPredictor = BordeauxManagerService.getPredictor(context, mName);
H A DBordeauxRanker.java67 public BordeauxRanker(Context context) { argument
68 mContext = context;
70 mRanker = BordeauxManagerService.getRanker(context, mName);
73 public BordeauxRanker(Context context, String name) { argument
74 mContext = context;
76 mRanker = BordeauxManagerService.getRanker(context, mName);
/frameworks/opt/bitmap/src/com/android/bitmap/view/
H A DBitmapDrawableImageView.java49 public BitmapDrawableImageView(final Context context) { argument
50 this(context, null);
53 public BitmapDrawableImageView(final Context context, final AttributeSet attrs) { argument
54 this(context, attrs, 0);
57 public BitmapDrawableImageView(final Context context, final AttributeSet attrs, argument
59 super(context, attrs, defStyle);

Completed in 663 milliseconds

<<11121314151617181920>>