/frameworks/base/core/java/android/preference/ |
H A D | EditTextPreference.java | 54 public EditTextPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument 55 super(context, attrs, defStyleAttr, defStyleRes); 57 mEditText = new EditText(context, attrs); 71 public EditTextPreference(Context context, AttributeSet attrs, int defStyleAttr) { argument 72 this(context, attrs, defStyleAttr, 0); 75 public EditTextPreference(Context context, AttributeSet attrs) { argument 76 this(context, attrs, com.android.internal.R.attr.editTextPreferenceStyle); 79 public EditTextPreference(Context context) { argument 80 this(context, null);
|
H A D | PreferenceManager.java | 70 * The context to use. This should always be set. 167 /*package*/ PreferenceManager(Context context) { argument 168 init(context); 171 private void init(Context context) { argument 172 mContext = context; 174 setSharedPreferencesName(getDefaultSharedPreferencesName(context)); 239 final Context context; 241 context = mContext.createPackageContext(activityInfo.packageName, 0); 243 Log.w(TAG, "Could not create context for " + activityInfo.packageName + ": " 248 final PreferenceInflater inflater = new PreferenceInflater(context, thi 274 inflateFromResource(Context context, @XmlRes int resId, PreferenceScreen rootPreferences) argument 289 createPreferenceScreen(Context context) argument 486 getDefaultSharedPreferences(Context context) argument 497 getDefaultSharedPreferencesName(Context context) argument 565 setDefaultValues(Context context, @XmlRes int resId, boolean readAgain) argument 600 setDefaultValues(Context context, String sharedPreferencesName, int sharedPreferencesMode, int resId, boolean readAgain) argument [all...] |
H A D | RingtonePreference.java | 54 public RingtonePreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument 55 super(context, attrs, defStyleAttr, defStyleRes); 57 final TypedArray a = context.obtainStyledAttributes(attrs, 68 public RingtonePreference(Context context, AttributeSet attrs, int defStyleAttr) { argument 69 this(context, attrs, defStyleAttr, 0); 72 public RingtonePreference(Context context, AttributeSet attrs) { argument 73 this(context, attrs, com.android.internal.R.attr.ringtonePreferenceStyle); 76 public RingtonePreference(Context context) { argument 77 this(context, null);
|
H A D | SwitchPreference.java | 63 * @param context The Context that will style this preference 73 public SwitchPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument 74 super(context, attrs, defStyleAttr, defStyleRes); 76 TypedArray a = context.obtainStyledAttributes(attrs, 92 * @param context The Context that will style this preference 98 public SwitchPreference(Context context, AttributeSet attrs, int defStyleAttr) { argument 99 this(context, attrs, defStyleAttr, 0); 105 * @param context The Context that will style this preference 108 public SwitchPreference(Context context, AttributeSet attrs) { argument 109 this(context, attr 117 SwitchPreference(Context context) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | RatingBar.java | 83 public RatingBar(Context context, AttributeSet attrs, int defStyleAttr) { argument 84 this(context, attrs, defStyleAttr, 0); 87 public RatingBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument 88 super(context, attrs, defStyleAttr, defStyleRes); 90 final TypedArray a = context.obtainStyledAttributes( 117 public RatingBar(Context context, AttributeSet attrs) { argument 118 this(context, attrs, com.android.internal.R.attr.ratingBarStyle); 121 public RatingBar(Context context) { argument 122 this(context, null);
|
H A D | AnalogClock.java | 63 public AnalogClock(Context context) { argument 64 this(context, null); 67 public AnalogClock(Context context, AttributeSet attrs) { argument 68 this(context, attrs, 0); 71 public AnalogClock(Context context, AttributeSet attrs, int defStyleAttr) { argument 72 this(context, attrs, defStyleAttr, 0); 75 public AnalogClock(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument 76 super(context, attrs, defStyleAttr, defStyleRes); 78 final Resources r = context.getResources(); 79 final TypedArray a = context [all...] |
H A D | ArrayAdapter.java | 109 * @param context The current context. 113 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource) { argument 114 this(context, resource, 0, new ArrayList<>()); 120 * @param context The current context. 125 public ArrayAdapter(@NonNull Context context, @LayoutRes int resource, argument 127 this(context, resource, textViewResourceId, new ArrayList<>()); 133 * @param context The current context 138 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @NonNull T[] objects) argument 151 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull T[] objects) argument 164 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @NonNull List<T> objects) argument 178 ArrayAdapter(@onNull Context context, @LayoutRes int resource, @IdRes int textViewResourceId, @NonNull List<T> objects) argument 470 createFromResource(@onNull Context context, @ArrayRes int textArrayResId, @LayoutRes int textViewResId) argument [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | RedEyeFilter.java | 95 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);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | SurfaceTextureSource.java | 154 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/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DocumentHolder.java | 52 public DocumentHolder(Context context, ViewGroup parent, int layout) { argument 53 this(context, inflateLayout(context, parent, layout)); 56 public DocumentHolder(Context context, View item) { argument 61 mContext = context; 63 mDefaultBgColor = context.getColor(R.color.item_doc_background); 64 mSelectedBgColor = context.getColor(R.color.item_doc_background_selected); 170 private static View inflateLayout(Context context, ViewGroup parent, int layout) { argument 171 final LayoutInflater inflater = LayoutInflater.from(context);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | ToggleSlider.java | 52 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | UserAvatarView.java | 38 public UserAvatarView(Context context, AttributeSet attrs, argument 41 super(context, attrs, defStyleAttr, defStyleRes); 43 final TypedArray a = context.obtainStyledAttributes( 73 public UserAvatarView(Context context, AttributeSet attrs, int defStyleAttr) { argument 74 this(context, attrs, defStyleAttr, 0); 77 public UserAvatarView(Context context, AttributeSet attrs) { argument 78 this(context, attrs, 0); 81 public UserAvatarView(Context context) { argument 82 this(context, null);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/ |
H A D | PipControlButtonView.java | 62 public PipControlButtonView(Context context) { argument 63 this(context, null, 0, 0); 66 public PipControlButtonView(Context context, AttributeSet attrs) { argument 67 this(context, attrs, 0, 0); 70 public PipControlButtonView(Context context, AttributeSet attrs, int defStyleAttr) { argument 71 this(context, attrs, defStyleAttr, 0); 75 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { 76 super(context, attrs, defStyleAttr, defStyleRes); 87 context.obtainStyledAttributes(attrs, values, defStyleAttr, defStyleRes); 74 PipControlButtonView( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallerInfo.java | 167 * @param context the context used to retrieve string constants 173 public static CallerInfo getCallerInfo(Context context, Uri contactRef, Cursor cursor) { argument 219 info.phoneLabel = Phone.getDisplayLabel(context, 298 * @param context the context used to get the ContentResolver 303 public static CallerInfo getCallerInfo(Context context, Uri contactRef) { argument 305 ContentResolver cr = CallerInfoAsyncQuery.getCurrentProfileContentResolver(context); 308 info = getCallerInfo(context, contactRef, 320 * @param context th 327 getCallerInfo(Context context, String number) argument 345 getCallerInfo(Context context, String number, int subId) argument 385 doSecondaryLookupIfNecessary(Context context, String number, CallerInfo previousResult) argument 427 markAsEmergency(Context context) argument 570 updateGeoDescription(Context context, String fallbackNumber) argument 579 getGeoDescription(Context context, String number) argument 614 getCurrentCountryIso(Context context, Locale locale) argument 634 getCurrentCountryIso(Context context) argument [all...] |
H A D | CallerInfoAsyncQuery.java | 99 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/tests/CoreTests/android/core/ |
H A D | TestHttpClient.java | 66 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 D | BridgeActionBar.java | 39 // 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/native/opengl/libs/EGL/ |
H A D | egl.cpp | 65 "no current context (logged once per thread)"; 125 EGLContext context = egl_tls_t::getContext(); local 126 if (context == EGL_NO_CONTEXT) 129 egl_context_t const * const c = get_context(context); 143 EGLContext context = egl_tls_t::getContext(); local 144 if (context == EGL_NO_CONTEXT) 147 egl_context_t const * const c = get_context(context); 166 EGLContext context = egl_tls_t::getContext(); local 167 if (context == EGL_NO_CONTEXT) 170 egl_context_t const * const c = get_context(context); [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | BottomSheetDialog.java | 38 public BottomSheetDialog(@NonNull Context context) { argument 39 this(context, 0); 42 public BottomSheetDialog(@NonNull Context context, @StyleRes int theme) { argument 43 super(context, getThemeResId(context, theme)); 49 protected BottomSheetDialog(@NonNull Context context, boolean cancelable, argument 51 super(context, cancelable, cancelListener); 118 private static int getThemeResId(Context context, int themeId) { argument 122 if (context.getTheme().resolveAttribute(
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | SwitchPreferenceCompat.java | 64 * @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/packages/SettingsLib/src/com/android/settingslib/drawer/ |
H A D | UserAdapter.java | 53 public UserDetails(UserHandle userHandle, UserManager um, Context context) { argument 58 mName = context.getString(R.string.managed_user_title); 59 icon = context.getDrawable( 65 icon = new BitmapDrawable(context.getResources(), um.getUserIcon(userId)); 70 this.mIcon = encircle(context, icon); 73 private static Drawable encircle(Context context, Drawable icon) { argument 74 return new UserIconDrawable(UserIconDrawable.getSizeForList(context)) 81 public UserAdapter(Context context, ArrayList<UserDetails> users) { argument 86 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 189 Context context) { 188 createUserSpinnerAdapter(UserManager userManager, Context context) argument 203 createUserAdapter(UserManager userManager, Context context, List<UserHandle> userProfiles) argument [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | Intents.java | 60 * @param context The context 63 public static PhotoViewIntentBuilder newPhotoViewActivityIntentBuilder(Context context) { argument 64 return new PhotoViewIntentBuilder(context, PhotoViewActivity.class); 70 * @param context The context 73 public static PhotoViewIntentBuilder newPhotoViewFragmentIntentBuilder(Context context) { argument 74 return newPhotoViewFragmentIntentBuilder(context, PhotoViewFragment.class); 81 * @param context The context 85 newPhotoViewFragmentIntentBuilder(Context context, Class<? extends PhotoViewFragment> clazz) argument 91 newPhotoViewIntentBuilder( Context context, Class<? extends Activity> cls) argument 97 newPhotoViewIntentBuilder( Context context, String activityName) argument 145 PhotoViewIntentBuilder(Context context, Class<?> cls) argument 150 PhotoViewIntentBuilder(Context context, String activityName) argument [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/ |
H A D | SetupWizardRecyclerLayout.java | 60 public SetupWizardRecyclerLayout(Context context) { argument 61 this(context, 0, 0); 64 public SetupWizardRecyclerLayout(Context context, int template, int containerId) { argument 65 super(context, template, containerId); 66 init(context, null, 0); 69 public SetupWizardRecyclerLayout(Context context, AttributeSet attrs) { argument 70 super(context, attrs); 71 init(context, attrs, 0); 74 public SetupWizardRecyclerLayout(Context context, AttributeSet attrs, int defStyleAttr) { argument 75 super(context, attr 79 init(Context context, AttributeSet attrs, int defStyleAttr) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SmsBroadcastUndelivered.java | 82 public void onReceive(final Context context, Intent intent) { 85 new ScanRawTableThread(context).start(); 91 private final Context context; field in class:SmsBroadcastUndelivered.ScanRawTableThread 93 private ScanRawTableThread(Context context) { argument 94 this.context = context; 100 InboundSmsHandler.cancelNewMessageNotification(context); 104 public static void initialize(Context context, GsmInboundSmsHandler gsmInboundSmsHandler, argument 108 context, gsmInboundSmsHandler, cdmaInboundSmsHandler); 122 private SmsBroadcastUndelivered(Context context, GsmInboundSmsHandle argument [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | CursorAdapter.java | 118 * @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...] |