/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ScrollViewScenario.java | 57 View create(final Context context); argument 101 public View create(final Context context) { 102 final TextView tv = new TextView(context); 130 public View create(final Context context) { 131 final Button button = new Button(context); 159 public View create(final Context context) { 160 return new InternalSelectionView(context, numRows, "isv"); 174 public View create(Context context) { 175 final LinearLayout ll = new LinearLayout(context); 183 final Button button = new Button(context); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | Clock.java | 57 public Clock(Context context) { argument 58 this(context, null); 61 public Clock(Context context, AttributeSet attrs) { argument 62 this(context, attrs, 0); 65 public Clock(Context context, AttributeSet attrs, int defStyle) { argument 66 super(context, attrs, defStyle); 107 public void onReceive(Context context, Intent intent) { 133 Context context = getContext(); 134 boolean is24 = DateFormat.is24HourFormat(context); 135 LocaleData d = LocaleData.get(context [all...] |
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4AD_Common.h | 145 * @note Allocates the context 165 * @note After this call the context is invalid 167 * @param context: (IN) Context of the decoder 170 * @return M4ERR_PARAMETER The context is invalid (in DEBUG only) 173 typedef M4OSA_ERR (M4AD_destroy_fct) (M4AD_Context context); 182 * @param context: (IN) Context of the decoder 193 typedef M4OSA_ERR (M4AD_step_fct) (M4AD_Context context, M4AD_Buffer *pInputBuffer, 233 * @param context: (IN) Context of the decoder 236 * @return M4ERR_PARAMETER The context is invalid (in DEBUG only) 239 typedef M4OSA_ERR (M4AD_reset_fct) (M4AD_Context context); [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | Plugin.java | 47 public void handleClickEvent(Context context); argument 181 public void dispatchClickEvent(Context context) { argument 183 mHandler.handleClickEvent(context); 199 public void handleClickEvent(Context context) { argument 203 mDialog = new AlertDialog.Builder(context)
|
/frameworks/base/core/java/android/widget/ |
H A D | ZoomControls.java | 41 public ZoomControls(Context context) { argument 42 this(context, null); 45 public ZoomControls(Context context, AttributeSet attrs) { argument 46 super(context, attrs); 49 LayoutInflater inflater = (LayoutInflater) context
|
H A D | ViewAnimator.java | 48 public ViewAnimator(Context context) { argument 49 super(context); 50 initViewAnimator(context, null); 53 public ViewAnimator(Context context, AttributeSet attrs) { argument 54 super(context, attrs); 56 TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.ViewAnimator); 59 setInAnimation(context, resource); 64 setOutAnimation(context, resource); 72 initViewAnimator(context, attrs); 79 private void initViewAnimator(Context context, AttributeSe argument 314 setInAnimation(Context context, int resourceID) argument 327 setOutAnimation(Context context, int resourceID) argument [all...] |
H A D | CursorAdapter.java | 116 * @param context The context 119 public CursorAdapter(Context context, Cursor c) { argument 120 init(context, c, FLAG_AUTO_REQUERY); 130 * @param context The context 135 public CursorAdapter(Context context, Cursor c, boolean autoRequery) { argument 136 init(context, c, autoRequery ? FLAG_AUTO_REQUERY : FLAG_REGISTER_CONTENT_OBSERVER); 143 * @param context The context 148 CursorAdapter(Context context, Cursor c, int flags) argument 157 init(Context context, Cursor c, boolean autoRequery) argument 161 init(Context context, Cursor c, int flags) argument 283 newView(Context context, Cursor cursor, ViewGroup parent) argument 293 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument 304 bindView(View view, Context context, Cursor cursor) argument [all...] |
H A D | PopupMenu.java | 63 * @param context Context for the PopupMenu. 67 public PopupMenu(Context context, View anchor) { argument 68 this(context, anchor, Gravity.NO_GRAVITY); 74 * @param context Context for the PopupMenu. 79 public PopupMenu(Context context, View anchor, int gravity) { argument 81 mContext = context; 82 mMenu = new MenuBuilder(context); 85 mPopup = new MenuPopupHelper(context, mMenu, anchor); 100 * PopupMenu myPopup = new PopupMenu(context, myAnchor);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | WeightedLinearLayout.java | 38 public WeightedLinearLayout(Context context) { argument 39 super(context); 42 public WeightedLinearLayout(Context context, AttributeSet attrs) { argument 43 super(context, attrs); 46 context.obtainStyledAttributes(attrs, styleable.WeightedLinearLayout);
|
H A D | PasswordEntryKeyboard.java | 55 public PasswordEntryKeyboard(Context context, int xmlLayoutResId) { argument 56 this(context, xmlLayoutResId, 0); 59 public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int width, int height) { argument 60 this(context, xmlLayoutResId, 0, width, height); 63 public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int mode) { argument 64 super(context, xmlLayoutResId, mode); 65 init(context); 68 public PasswordEntryKeyboard(Context context, int xmlLayoutResId, int mode, argument 70 super(context, xmlLayoutResId, mode, width, height); 71 init(context); 74 init(Context context) argument 82 PasswordEntryKeyboard(Context context, int layoutTemplateResId, CharSequence characters, int columns, int horizontalPadding) argument [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | CrossProcessFilter.java | 91 public void initProgram(FilterContext context, int target) { argument 94 ShaderProgram shaderProgram = new ShaderProgram(context, mCrossProcessShader); 107 public void process(FilterContext context) { argument 114 initProgram(context, inputFormat.getTarget()); 118 Frame output = context.getFrameManager().newFrame(inputFormat);
|
H A D | NegativeFilter.java | 64 public void initProgram(FilterContext context, int target) { argument 67 ShaderProgram shaderProgram = new ShaderProgram(context, mNegativeShader); 80 public void process(FilterContext context) { argument 86 Frame output = context.getFrameManager().newFrame(inputFormat); 90 initProgram(context, inputFormat.getTarget());
|
H A D | PosterizeFilter.java | 67 public void initProgram(FilterContext context, int target) { argument 70 ShaderProgram shaderProgram = new ShaderProgram(context, mPosterizeShader); 83 public void process(FilterContext context) { argument 89 Frame output = context.getFrameManager().newFrame(inputFormat); 93 initProgram(context, inputFormat.getTarget());
|
H A D | SepiaFilter.java | 65 public void initProgram(FilterContext context, int target) { argument 68 ShaderProgram shaderProgram = new ShaderProgram(context, mSepiaShader); 81 public void process(FilterContext context) { argument 87 Frame output = context.getFrameManager().newFrame(inputFormat); 91 initProgram(context, inputFormat.getTarget());
|
H A D | RedEyeFilter.java | 100 public void initProgram(FilterContext context, int target) { argument 103 ShaderProgram shaderProgram = new ShaderProgram(context, mRedEyeShader); 116 public void process(FilterContext context) { argument 122 Frame output = context.getFrameManager().newFrame(inputFormat); 126 initProgram(context, inputFormat.getTarget()); 134 createRedEyeFrame(context); 152 public void fieldPortValueUpdated(String name, FilterContext context) { argument 158 private void createRedEyeFrame(FilterContext context) { argument 175 mRedEyeFrame = context.getFrameManager().newFrame(format);
|
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/ |
H A D | VersionDialog.java | 41 final Context context; 43 context = activity.createPackageContext(SharedLibraryMain.LIBRARY_PACKAGE, 0); 48 final Resources res = context.getResources(); 53 context.getApplicationInfo().loadLabel(context.getPackageManager())));
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SmsApplication.java | 121 public static Collection<SmsApplicationData> getApplicationCollection(Context context) { argument 122 PackageManager packageManager = context.getPackageManager(); 247 private static SmsApplicationData getApplication(Context context, boolean updateIfNeeded) { argument 248 TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); 254 Collection<SmsApplicationData> applications = getApplicationCollection(context); 257 String defaultApplication = Settings.Secure.getString(context.getContentResolver(), 268 Resources r = context.getResources(); 282 setDefaultApplication(applicationData.mPackageName, context); 288 AppOpsManager appOps = (AppOpsManager)context.getSystemService(Context.APP_OPS_SERVICE); 314 PackageManager packageManager = context 338 setDefaultApplication(String packageName, Context context) argument 396 getSmsApplicationData(String packageName, Context context) argument 407 getDefaultSmsApplication(Context context, boolean updateIfNeeded) argument 423 getDefaultMmsApplication(Context context, boolean updateIfNeeded) argument 439 getDefaultRespondViaMessageApplication(Context context, boolean updateIfNeeded) argument 456 getDefaultSendToApplication(Context context, boolean updateIfNeeded) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_SELinux.cpp | 82 * Purpose: retrieves security context of peer socket 95 "Trying to check security context of a null peer socket."); 107 Unique_SecurityContext context(tmp); 111 contextStr.reset(env->NewStringUTF(context.get())); 114 ALOGV("getPeerCon(%d) => %s", fd, context.get()); 120 * Purpose: set security context used for creating a new file system object 122 * context: security_context_t representing the new context of a file system object, 132 UniquePtr<ScopedUtfChars> context; local 135 context [all...] |
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | TestService.java | 445 void onInit(Context context, boolean foreground) { argument 450 void onTerm(Context context) { argument 576 void onInit(Context context, boolean foreground) { argument 577 mPm = context.getPackageManager(); 578 mProcessName = context.getApplicationInfo().processName; 601 void onInit(Context context, boolean foreground) { argument 602 mContext = context; 621 void onInit(Context context, boolean foreground) { argument 622 mContext = context; 647 void onTerm(Context context) { argument 666 onInit(Context context, boolean foreground) argument 684 onInit(Context context, boolean foreground) argument 702 onInit(Context context, boolean foreground) argument 724 onInit(Context context, boolean foreground) argument 746 onInit(Context context, boolean foreground) argument 768 onInit(Context context, boolean foreground) argument 790 onInit(Context context, boolean foreground) argument 812 onInit(Context context, boolean foreground) argument 831 onInit(Context context, boolean foreground) argument 851 onInit(Context context, boolean foreground) argument 871 onInit(Context context, boolean foreground) argument 892 onInit(Context context, boolean foreground) argument 912 onInit(Context context, boolean foreground) argument 933 onInit(Context context, boolean foreground) argument 953 onInit(Context context, boolean foreground) argument 973 onInit(Context context, boolean foreground) argument 996 onInit(Context context, boolean foreground) argument 1021 onInit(Context context, boolean foreground) argument 1050 onInit(Context context, boolean foreground) argument 1075 onTerm(Context context) argument 1094 onInit(Context context, boolean foreground) argument 1121 onTerm(Context context) argument 1141 onInit(Context context, boolean foreground) argument 1268 onInit(Context context, boolean foreground) argument 1295 onInit(Context context, boolean foreground) argument [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
H A D | SurfaceTextureSource.java | 165 protected void prepare(FilterContext context) { argument 171 mMediaFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat, 176 mFrameExtractor = new ShaderProgram(context, mRenderShader); 180 public void open(FilterContext context) { argument 192 public void process(FilterContext context) { argument 227 Frame output = context.getFrameManager().newFrame(mOutputFormat); 237 public void close(FilterContext context) { argument 245 public void tearDown(FilterContext context) { argument 252 public void fieldPortValueUpdated(String name, FilterContext context) { argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | ToggleSlider.java | 48 public ToggleSlider(Context context) { argument 49 this(context, null); 52 public ToggleSlider(Context context, AttributeSet attrs) { argument 53 this(context, attrs, 0); 56 public ToggleSlider(Context context, AttributeSet attrs, int defStyle) { argument 57 super(context, attrs, defStyle); 58 View.inflate(context, R.layout.status_bar_toggle_slider, this); 60 final Resources res = context.getResources(); 61 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ToggleSlider,
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallerInfo.java | 149 * @param context the context used to retrieve string constants 155 public static CallerInfo getCallerInfo(Context context, Uri contactRef, Cursor cursor) { argument 200 info.phoneLabel = Phone.getDisplayLabel(context, 248 * @param context the context used to get the ContentResolver 253 public static CallerInfo getCallerInfo(Context context, Uri contactRef) { argument 255 return getCallerInfo(context, contactRef, 256 context.getContentResolver().query(contactRef, null, null, null, null)); 262 * @param context th 269 getCallerInfo(Context context, String number) argument 309 doSecondaryLookupIfNecessary(Context context, String number, CallerInfo previousResult) argument 339 getCallerId(Context context, String number) argument 384 markAsEmergency(Context context) argument 520 updateGeoDescription(Context context, String fallbackNumber) argument 529 getGeoDescription(Context context, String number) argument 564 getCurrentCountryIso(Context context, Locale locale) argument 584 getCurrentCountryIso(Context context) 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/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...] |
/frameworks/base/core/java/com/android/internal/preference/ |
H A D | YesNoPreference.java | 35 public YesNoPreference(Context context, AttributeSet attrs, int defStyle) { argument 36 super(context, attrs, defStyle); 39 public YesNoPreference(Context context, AttributeSet attrs) { argument 40 this(context, attrs, com.android.internal.R.attr.yesNoPreferenceStyle); 43 public YesNoPreference(Context context) { argument 44 this(context, null);
|