/frameworks/base/core/java/android/gesture/ |
H A D | GestureLibraries.java | 43 public static GestureLibrary fromPrivateFile(Context context, String name) { argument 44 return fromFile(context.getFileStreamPath(name)); 47 public static GestureLibrary fromRawResource(Context context, int resourceId) { argument 48 return new ResourceGestureLibrary(context, resourceId); 112 public ResourceGestureLibrary(Context context, int resourceId) { argument 113 mContext = new WeakReference<Context>(context); 128 final Context context = mContext.get(); 129 if (context != null) { 130 final InputStream in = context.getResources().openRawResource(mResourceId); 136 context [all...] |
/frameworks/rs/driver/linkloader/include/ |
H A D | ELFObject.h | 108 void relocate(void *(*find_sym)(void *context, char const *name), 109 void *context); 121 void relocateARM(void *(*find_sym)(void *context, char const *name), 122 void *context, 126 void relocateX86_32(void *(*find_sym)(void *context, char const *name), 127 void *context, 131 void relocateX86_64(void *(*find_sym)(void *context, char const *name), 132 void *context, 136 void relocateMIPS(void *(*find_sym)(void *context, char const *name), 137 void *context, [all...] |
/frameworks/opt/inputmethodcommon/java/com/android/inputmethodcommon/ |
H A D | InputMethodSettingsImpl.java | 47 * @param context the context for this application. 51 public boolean init(final Context context, final PreferenceScreen prefScreen) { argument 52 mContext = context; 53 mImm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); 54 mImi = getMyImi(context, mImm); 58 mSubtypeEnablerPreference = new Preference(context); 63 final CharSequence title = getSubtypeEnablerTitle(context); 73 context.startActivity(intent); 82 private static InputMethodInfo getMyImi(Context context, InputMethodManage argument 93 getEnabledSubtypesLabel( Context context, InputMethodManager imm, InputMethodInfo imi) argument 166 getSubtypeEnablerTitle(Context context) argument [all...] |
/frameworks/av/libvideoeditor/osal/inc/ |
H A D | M4OSA_Thread.h | 91 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncOpen( M4OSA_Context* context, 95 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncStart( M4OSA_Context context, 99 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncStop( M4OSA_Context context ); 102 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncClose( M4OSA_Context context ); 105 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncGetState( M4OSA_Context context, 112 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncSetOption(M4OSA_Context context, 117 M4OSAL_REALTIME_EXPORT_TYPE M4OSA_ERR M4OSA_threadSyncGetOption(M4OSA_Context context,
|
H A D | M4OSA_FileCommon_priv.h | 44 /** This structure defines the file context*/ 78 M4OSA_Context* context, 83 M4OSA_Context context); 85 M4OSA_ERR M4OSA_fileCommonGetAttribute(M4OSA_Context context, 88 M4OSA_ERR M4OSA_fileCommonGetURL(M4OSA_Context context, 94 M4OSA_ERR M4OSA_fileCommonSeek(M4OSA_Context context,
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | LocalReceiver.java | 34 public void onReceive(Context context, Intent intent) { argument 39 context.registerReceiver(this, new IntentFilter("foo.bar")); 40 context.unregisterReceiver(this); 55 context.bindService(new Intent(context, LocalService.class), sc, 0); 56 context.unbindService(sc); 64 context.sendOrderedBroadcast(newIntent, null);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListItemFactory.java | 38 * @param context The context. 42 public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { argument 48 final LinearLayout ll = new LinearLayout(context); 56 final Button topButton = new Button(context); 62 final TextView middleFiller = new TextView(context); 69 final Button bottomButton = new Button(context); 86 * @param context The context. 91 public static View horizontalButtonSlots(Context context, in argument 155 button(int position, Context context, String text, int desiredHeight) argument 195 text(int position, Context context, String text, int desiredHeight) argument 236 doubleText(int position, Context context, String text, int desiredHeight) argument [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | BitmapOverlayFilter.java | 77 public void initProgram(FilterContext context, int target) { argument 80 ShaderProgram shaderProgram = new ShaderProgram(context, mOverlayShader); 93 public void tearDown(FilterContext context) { argument 101 public void process(FilterContext context) { argument 107 Frame output = context.getFrameManager().newFrame(inputFormat); 111 initProgram(context, inputFormat.getTarget()); 115 Frame frame = createBitmapFrame(context); 132 private Frame createBitmapFrame(FilterContext context) { argument 138 Frame frame = context.getFrameManager().newFrame(format);
|
H A D | ImageCombineFilter.java | 88 public void process(FilterContext context) { argument 97 Frame output = context.getFrameManager().newFrame(inputs[0].getFormat()); 100 updateProgramWithTarget(inputs[0].getFormat().getTarget(), context); 112 protected void updateProgramWithTarget(int target, FilterContext context) { argument 116 mProgram = getNativeProgram(context); 120 mProgram = getShaderProgram(context); 131 initProgramInputs(mProgram, context); 136 protected abstract Program getNativeProgram(FilterContext context); argument 138 protected abstract Program getShaderProgram(FilterContext context); argument
|
H A D | AlphaBlendFilter.java | 57 protected Program getNativeProgram(FilterContext context) { argument 62 protected Program getShaderProgram(FilterContext context) { argument 63 return new ShaderProgram(context, mAlphaBlendShader);
|
H A D | BlendFilter.java | 57 protected Program getNativeProgram(FilterContext context) { argument 62 protected Program getShaderProgram(FilterContext context) { argument 63 return new ShaderProgram(context, mBlendShader);
|
H A D | BrightnessFilter.java | 50 protected Program getNativeProgram(FilterContext context) { argument 55 protected Program getShaderProgram(FilterContext context) { argument 56 return new ShaderProgram(context, mBrightnessShader);
|
H A D | ContrastFilter.java | 55 protected Program getNativeProgram(FilterContext context) { argument 60 protected Program getShaderProgram(FilterContext context) { argument 61 return new ShaderProgram(context, mContrastShader);
|
H A D | Invert.java | 51 protected Program getNativeProgram(FilterContext context) { argument 56 protected Program getShaderProgram(FilterContext context) { argument 57 return new ShaderProgram(context, mInvertShader);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
H A D | ListItemISVAndButton.java | 43 Context context = parent.getContext(); 45 final LinearLayout ll = new LinearLayout(context); 48 final InternalSelectionView isv = new InternalSelectionView(context, 8, "ISV postion " + position); 58 final Button topButton = new Button(context); 64 final TextView filler = new TextView(context);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | CompatModeButton.java | 36 public CompatModeButton(Context context, AttributeSet attrs) { argument 37 this(context, attrs, 0); 40 public CompatModeButton(Context context, AttributeSet attrs, int defStyle) { argument 41 super(context, attrs); 45 mAM = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
|
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockContentResolver.java | 69 public MockContentResolver(Context context) { argument 70 super(context); 91 protected IContentProvider acquireProvider(Context context, String name) { argument 92 return acquireExistingProvider(context, name); 97 protected IContentProvider acquireExistingProvider(Context context, String name) { argument
|
/frameworks/opt/mms/src/java/com/google/android/mms/util/ |
H A D | DownloadDrmHelper.java | 42 public static boolean isDrmMimeType(Context context, String mimetype) { argument 44 if (context != null) { 46 DrmManagerClient drmClient = new DrmManagerClient(context); 52 "DrmManagerClient instance could not be created, context is Illegal."); 89 * @param context The context 96 public static String getOriginalMimeType(Context context, String path, String containingMime) { argument 98 DrmManagerClient drmClient = new DrmManagerClient(context);
|
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceManager.java | 68 * The context to use. This should always be set. 159 private PreferenceManager(Context context) { argument 160 init(context); 163 private void init(Context context) { argument 164 mContext = context; 166 setSharedPreferencesName(getDefaultSharedPreferencesName(context)); 231 final Context context; 233 context = mContext.createPackageContext(activityInfo.packageName, 0); 235 Log.w(TAG, "Could not create context for " + activityInfo.packageName + ": " 240 final PreferenceInflater inflater = new PreferenceInflater(context, thi 266 inflateFromResource(Context context, int resId, PreferenceScreen rootPreferences) argument 281 createPreferenceScreen(Context context) argument 368 getDefaultSharedPreferences(Context context) argument 373 getDefaultSharedPreferencesName(Context context) argument 441 setDefaultValues(Context context, int resId, boolean readAgain) argument 476 setDefaultValues(Context context, String sharedPreferencesName, int sharedPreferencesMode, int resId, boolean readAgain) argument [all...] |
/frameworks/av/libvideoeditor/vss/3gpwriter/src/ |
H A D | M4MP4W_Utils.c | 36 M4OSA_Context context) 39 M4OSA_ERR err = fileFunction->writeData(context, (M4OSA_MemAddr8)&c, 1); 45 M4OSA_Context context) 49 err = M4MP4W_putByte((M4OSA_UChar)(val >> 8), fileFunction, context); 51 err = M4MP4W_putByte((M4OSA_UChar)val, fileFunction, context); 57 M4OSA_Context context) 61 err = M4MP4W_putByte((M4OSA_UChar)(val >> 16), fileFunction, context); 63 err = M4MP4W_putByte((M4OSA_UChar)(val >> 8), fileFunction, context); 65 err = M4MP4W_putByte((M4OSA_UChar)val, fileFunction, context); 71 M4OSA_Context context) 35 M4MP4W_putByte(M4OSA_UChar c, M4OSA_FileWriterPointer* fileFunction, M4OSA_Context context) argument 44 M4MP4W_putBE16(M4OSA_UInt32 val, M4OSA_FileWriterPointer* fileFunction, M4OSA_Context context) argument 56 M4MP4W_putBE24(M4OSA_UInt32 val, M4OSA_FileWriterPointer* fileFunction, M4OSA_Context context) argument 70 M4MP4W_putBE32(M4OSA_UInt32 val, M4OSA_FileWriterPointer* fileFunction, M4OSA_Context context) argument 86 M4MP4W_putBlock(const M4OSA_UChar* Block, M4OSA_UInt32 size, M4OSA_FileWriterPointer* fileFunction, M4OSA_Context context) argument 132 M4MP4W_freeContext(M4OSA_Context context) argument [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | AbsoluteFileBackupHelper.java | 42 * @param context 45 public AbsoluteFileBackupHelper(Context context, String... files) { argument 46 super(context); 48 mContext = context;
|
/frameworks/base/core/java/android/view/ |
H A D | ViewStub.java | 80 public ViewStub(Context context) { argument 81 initialize(context); 87 * @param context The application's environment. 90 public ViewStub(Context context, int layoutResource) { argument 92 initialize(context); 95 public ViewStub(Context context, AttributeSet attrs) { argument 96 this(context, attrs, 0); 100 public ViewStub(Context context, AttributeSet attrs, int defStyle) { argument 101 TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.ViewStub, 109 a = context 116 initialize(Context context) argument [all...] |
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | LinearLayoutTest.java | 28 public ViewGroup create(Context context) { argument 29 LinearLayout container = new LinearLayout(context); 38 View v = create(context, VERTICAL_NAMES[i] + "-" + HORIZONTAL_NAMES[j], 20);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SimplePatchActivity.java | 38 public PatchView(Context context) { argument 39 super(context); 41 mDrawable = context.getResources().getDrawable(R.drawable.expander_ic_minimized);
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
H A D | AttachInfo_Accessor.java | 32 Context context = view.getContext(); 33 WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE); 35 ViewRootImpl root = new ViewRootImpl(context, display);
|