/frameworks/support/v4/jellybean/android/support/v4/app/ |
H A D | TaskStackBuilderJellybean.java | 26 public static PendingIntent getActivitiesPendingIntent(Context context, int requestCode, argument 28 return PendingIntent.getActivities(context, requestCode, intents, flags, options);
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouteControllerDialogFragment.java | 49 Context context, Bundle savedInstanceState) { 50 return new MediaRouteControllerDialog(context); 48 onCreateControllerDialog( Context context, Bundle savedInstanceState) argument
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | PreferenceScreen.java | 81 public PreferenceScreen(Context context, AttributeSet attrs) { argument 82 super(context, attrs, R.attr.preferenceScreenStyle);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 84 CREATE_BRIDGE1(destroyContext, CanvasContext* context) { argument 85 delete args->context; 92 args->context = mContext; 101 CREATE_BRIDGE2(setSwapBehavior, CanvasContext* context, SwapBehavior swapBehavior) { argument 102 args->context->setSwapBehavior(args->swapBehavior); 108 args->context = mContext; 113 CREATE_BRIDGE1(loadSystemProperties, CanvasContext* context) { argument 118 if (args->context->profiler().consumeProperties()) { 126 args->context = mContext; 130 CREATE_BRIDGE2(setName, CanvasContext* context, cons argument 142 CREATE_BRIDGE2(initialize, CanvasContext* context, ANativeWindow* window) argument 153 CREATE_BRIDGE2(updateSurface, CanvasContext* context, ANativeWindow* window) argument 165 CREATE_BRIDGE2(pauseSurface, CanvasContext* context, ANativeWindow* window) argument 176 CREATE_BRIDGE6(setup, CanvasContext* context, int width, int height, float lightRadius, uint8_t ambientShadowAlpha, uint8_t spotShadowAlpha) argument 195 CREATE_BRIDGE2(setLightCenter, CanvasContext* context, Vector3 lightCenter) argument 207 CREATE_BRIDGE2(setOpaque, CanvasContext* context, bool opaque) argument 227 CREATE_BRIDGE1(destroy, CanvasContext* context) argument 262 CREATE_BRIDGE2(runWithGlContext, CanvasContext* context, RenderTask* task) argument 274 CREATE_BRIDGE2(createTextureLayer, RenderThread* thread, CanvasContext* context) argument 289 CREATE_BRIDGE2(buildLayer, CanvasContext* context, RenderNode* node) argument 301 CREATE_BRIDGE3(copyLayerInto, CanvasContext* context, DeferredLayerUpdater* layer, SkBitmap* bitmap) argument 334 CREATE_BRIDGE1(destroyHardwareResources, CanvasContext* context) argument 387 CREATE_BRIDGE1(stopDrawing, CanvasContext* context) argument 398 CREATE_BRIDGE1(notifyFramePending, CanvasContext* context) argument 409 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, int fd, int dumpFlags) argument 431 CREATE_BRIDGE1(resetProfileInfo, CanvasContext* context) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ViewAttachView.java | 35 public ViewAttachView(Context context, AttributeSet attrs, int defStyle) { argument 36 super(context, attrs, defStyle); 40 public ViewAttachView(Context context, AttributeSet attrs) { argument 41 super(context, attrs); 45 public ViewAttachView(Context context) { argument 46 super(context);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
H A D | TunerService.java | 151 public static TunerService get(Context context) { argument 152 SystemUIApplication sysUi = (SystemUIApplication) context.getApplicationContext(); 156 return getStaticService(context); 161 private static TunerService getStaticService(Context context) { argument 164 sInstance.mContext = context.getApplicationContext(); 171 public static final void showResetRequest(final Context context, final Runnable onDisabled) { argument 172 SystemUIDialog dialog = new SystemUIDialog(context); 175 dialog.setButton(DialogInterface.BUTTON_NEGATIVE, context.getString(R.string.cancel), 178 context.getString(R.string.guest_exit_guest_dialog_remove), new OnClickListener() { 182 context 196 setTunerEnabled(Context context, boolean enabled) argument 204 isTunerEnabled(Context context) argument 210 userContext(Context context) argument 238 onReceive(Context context, Intent intent) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
H A D | HandlerThread_Delegate.java | 41 public static void cleanUp(BridgeContext context) { argument 42 List<HandlerThread> list = sThreads.get(context); 49 sThreads.remove(context); 58 BridgeContext context = RenderAction.getCurrentContext(); 59 List<HandlerThread> list = sThreads.get(context); 62 sThreads.put(context, list);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | BottomScrollView.java | 49 public BottomScrollView(Context context) { argument 50 super(context); 53 public BottomScrollView(Context context, AttributeSet attrs) { argument 54 super(context, attrs); 57 public BottomScrollView(Context context, AttributeSet attrs, int defStyle) { argument 58 super(context, attrs, defStyle);
|
H A D | NavigationBar.java | 42 private static int getNavbarTheme(Context context) { argument 45 TypedArray attributes = context.obtainStyledAttributes( 65 private static Context getThemedContext(Context context) { argument 66 final int theme = getNavbarTheme(context); 67 return new ContextThemeWrapper(context, theme); 75 public NavigationBar(Context context) { argument 76 super(getThemedContext(context)); 80 public NavigationBar(Context context, AttributeSet attrs) { argument 81 super(getThemedContext(context), attrs); 86 public NavigationBar(Context context, AttributeSe argument 133 NavButton(Context context) argument 137 NavButton(Context context, AttributeSet attrs) argument [all...] |
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | VerticalSeekBar.java | 30 public VerticalSeekBar(Context context) { argument 31 super(context); 34 public VerticalSeekBar(Context context, AttributeSet attrs, int defStyle) { argument 35 super(context, attrs, defStyle); 38 public VerticalSeekBar(Context context, AttributeSet attrs) { argument 39 super(context, attrs);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BrowseFrameLayout.java | 56 public BrowseFrameLayout(Context context) { argument 57 this(context, null, 0); 60 public BrowseFrameLayout(Context context, AttributeSet attrs) { argument 61 this(context, attrs, 0); 64 public BrowseFrameLayout(Context context, AttributeSet attrs, int defStyle) { argument 65 super(context, attrs, defStyle);
|
H A D | SearchEditText.java | 42 public SearchEditText(Context context) { argument 43 this(context, null); 46 public SearchEditText(Context context, AttributeSet attrs) { argument 47 this(context, attrs, R.style.TextAppearance_Leanback_SearchTextEdit); 50 public SearchEditText(Context context, AttributeSet attrs, int defStyle) { argument 51 super(context, attrs, defStyle);
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | Space.java | 30 public Space(Context context, AttributeSet attrs, int defStyle) { argument 31 super(context, attrs, defStyle); 37 public Space(Context context, AttributeSet attrs) { argument 38 this(context, attrs, 0); 41 public Space(Context context) { argument 42 this(context, null);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | DialogTitle.java | 35 public DialogTitle(Context context, AttributeSet attrs, int defStyleAttr) { argument 36 super(context, attrs, defStyleAttr); 39 public DialogTitle(Context context, AttributeSet attrs) { argument 40 super(context, attrs); 43 public DialogTitle(Context context) { argument 44 super(context);
|
H A D | TintImageView.java | 38 public TintImageView(Context context) { argument 39 this(context, null); 42 public TintImageView(Context context, AttributeSet attrs) { argument 43 this(context, attrs, 0); 46 public TintImageView(Context context, AttributeSet attrs, int defStyleAttr) { argument 47 super(context, attrs, defStyleAttr);
|
H A D | TintManager.java | 142 public static Drawable getDrawable(Context context, int resId) { 144 return TintManager.get(context).getDrawable(resId); 146 return ContextCompat.getDrawable(context, resId); 153 public static TintManager get(Context context) { 154 TintManager tm = INSTANCE_CACHE.get(context); 156 tm = new TintManager(context); 157 INSTANCE_CACHE.put(context, tm); 162 private TintManager(Context context) { 163 mContextRef = new WeakReference<>(context); 171 final Context context [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatCheckedTextView.java | 40 public AppCompatCheckedTextView(Context context) { argument 41 this(context, null); 44 public AppCompatCheckedTextView(Context context, AttributeSet attrs) { argument 45 this(context, attrs, android.R.attr.checkedTextViewStyle); 48 public AppCompatCheckedTextView(Context context, AttributeSet attrs, int defStyleAttr) { argument 49 super(context, attrs, defStyleAttr);
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | Volley.java | 38 * @param context A {@link Context} to use for creating the cache dir. 42 public static RequestQueue newRequestQueue(Context context, HttpStack stack) { argument 43 File cacheDir = new File(context.getCacheDir(), DEFAULT_CACHE_DIR); 47 String packageName = context.getPackageName(); 48 PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0); 74 * @param context A {@link Context} to use for creating the cache dir. 77 public static RequestQueue newRequestQueue(Context context) { argument 78 return newRequestQueue(context, null);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SmsApplication.java | 124 * @param context The context object passed in by the caller. 127 private static int getIncomingUserId(Context context) { argument 128 int contextUserId = context.getUserId(); 161 public static Collection<SmsApplicationData> getApplicationCollection(Context context) { argument 162 int userId = getIncomingUserId(context); 165 return getApplicationCollectionInternal(context, userId); 172 Context context, int userId) { 173 PackageManager packageManager = context.getPackageManager(); 302 private static SmsApplicationData getApplication(Context context, boolea argument 171 getApplicationCollectionInternal( Context context, int userId) argument 408 setDefaultApplication(String packageName, Context context) argument 424 setDefaultApplicationInternal(String packageName, Context context, int userId) argument 486 assignWriteSmsPermissionToSystemApp(Context context, PackageManager packageManager, AppOpsManager appOps, String packageName) argument 519 SmsPackageMonitor(Context context) argument 561 initSmsPackageMonitor(Context context) argument 608 getSmsApplicationData(String packageName, Context context) argument 619 getDefaultSmsApplication(Context context, boolean updateIfNeeded) argument 642 getDefaultMmsApplication(Context context, boolean updateIfNeeded) argument 665 getDefaultRespondViaMessageApplication(Context context, boolean updateIfNeeded) argument 691 getDefaultSendToApplication(Context context, boolean updateIfNeeded) argument 714 shouldWriteMessageForPackage(String packageName, Context context) argument 728 isDefaultSmsApplication(Context context, String packageName) argument 740 getDefaultSmsApplicationPackageName(Context context) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkScorerAppManager.java | 92 public static Collection<NetworkScorerAppData> getAllValidScorers(Context context) { argument 95 PackageManager pm = context.getPackageManager(); 147 public static NetworkScorerAppData getActiveScorer(Context context) { argument 148 String scorerPackage = Settings.Global.getString(context.getContentResolver(), 150 return getScorer(context, scorerPackage); 158 * @param context the context of the calling application 163 public static boolean setActiveScorer(Context context, String packageName) { argument 164 String oldPackageName = Settings.Global.getString(context.getContentResolver(), 174 Settings.Global.putString(context 191 isCallerActiveScorer(Context context, int callingUid) argument 206 getScorer(Context context, String packageName) argument [all...] |
/frameworks/rs/scriptc/ |
H A D | rs_for_each.rsh | 51 * rs_kernel_context: Handle to a kernel invocation context 53 * The kernel context contains common characteristics of the allocations being iterated 58 * own context. 60 * You can access the context by adding a special parameter named "context" and of type 155 * rsGetArray0: Index in the Array0 dimension for the specified context 158 * by the supplied context. 160 * This context is created when a kernel is launched and updated at each iteration. 164 * You can access the context by adding a special parameter named "context" an [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | BluetoothManager.java | 58 public BluetoothManager(Context context) { argument 59 context = context.getApplicationContext(); 60 if (context == null) { 62 "context not associated with any application (using a mock context?)"); 64 // Legacy api - getDefaultAdapter does not take in the context 196 * @param context App context 200 public BluetoothGattServer openGattServer(Context context, argument 220 openGattServer(Context context, BluetoothGattServerCallback callback,int transport) argument [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | GestureLibraries.java | 44 public static GestureLibrary fromPrivateFile(Context context, String name) { argument 45 return fromFile(context.getFileStreamPath(name)); 48 public static GestureLibrary fromRawResource(Context context, @RawRes int resourceId) { argument 49 return new ResourceGestureLibrary(context, resourceId); 113 public ResourceGestureLibrary(Context context, int resourceId) { argument 114 mContext = new WeakReference<Context>(context); 129 final Context context = mContext.get(); 130 if (context != null) { 131 final InputStream in = context.getResources().openRawResource(mResourceId); 137 context [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/preference/ |
H A D | Preference_Delegate.java | 45 Context context = pref.getContext(); 46 BridgeContext bc = context instanceof BridgeContext ? ((BridgeContext) context) : null; 60 public static View inflatePreference(Context context, XmlPullParser parser, ViewGroup root) { argument 61 PreferenceManager pm = new PreferenceManager(context); 63 PreferenceInflater inflater = new BridgePreferenceInflater(context, pm); 65 ListView preferenceView = createContainerView(context, root); 70 private static ListView createContainerView(Context context, ViewGroup root) { argument 71 TypedArray a = context.obtainStyledAttributes(null, R.styleable.PreferenceFragment, 78 (LayoutInflater) context [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | Partner.java | 49 * the original context. 53 public static Drawable getDrawable(Context context, int id) { argument 54 final ResourceEntry entry = getResourceEntry(context, id); 60 * original context. 64 public static String getString(Context context, int id) { argument 65 final ResourceEntry entry = getResourceEntry(context, id); 72 * original context. 75 * resources from the original context is returned. Clients can then get the resource by 79 public static ResourceEntry getResourceEntry(Context context, int id) { argument 80 final Partner partner = Partner.get(context); 111 get(Context context) argument [all...] |