/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | PlaybackControlsRow.java | 176 public PlayPauseAction(Context context) { 179 drawables[PLAY] = getStyledDrawable(context, 181 drawables[PAUSE] = getStyledDrawable(context, 186 labels[PLAY] = context.getString(R.string.lb_playback_controls_play); 187 labels[PAUSE] = context.getString(R.string.lb_playback_controls_pause); 203 public FastForwardAction(Context context) { 204 this(context, 1); 212 public FastForwardAction(Context context, int numSpeeds) { 219 drawables[0] = getStyledDrawable(context, 224 labels[0] = context.getString(R.string.lb_playback_controls_fast_forward); [all …]
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | ContextCompat.java | 72 public static boolean startActivities(Context context, Intent[] intents) { in startActivities() argument 73 return startActivities(context, intents, null); in startActivities() 103 public static boolean startActivities(Context context, Intent[] intents, in startActivities() argument 107 ContextCompatJellybean.startActivities(context, intents, options); in startActivities() 110 ContextCompatHoneycomb.startActivities(context, intents); in startActivities() 159 public static File[] getObbDirs(Context context) { in getObbDirs() argument 162 return ContextCompatKitKat.getObbDirs(context); in getObbDirs() 166 single = ContextCompatHoneycomb.getObbDir(context); in getObbDirs() 169 context.getPackageName()); in getObbDirs() 219 public static File[] getExternalFilesDirs(Context context, String type) { in getExternalFilesDirs() argument [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 60 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean() argument 61 return get(context).getBoolean(key, defaultValue); in getBoolean() 64 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean() argument 65 get(context).edit().putBoolean(key, value).apply(); in putBoolean() 68 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt() argument 69 return get(context).getInt(key, defaultValue); in getInt() 72 public static void putInt(Context context, @Key String key, int value) { in putInt() argument 73 get(context).edit().putInt(key, value).apply(); in putInt() 76 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong() argument 77 return get(context).getLong(key, defaultValue); in getLong() [all …]
|
/frameworks/support/v4/kitkat/android/support/v4/provider/ |
D | DocumentsContractApi19.java | 32 public static boolean isDocumentUri(Context context, Uri self) { in isDocumentUri() argument 33 return DocumentsContract.isDocumentUri(context, self); in isDocumentUri() 36 public static String getName(Context context, Uri self) { in getName() argument 37 return queryForString(context, self, DocumentsContract.Document.COLUMN_DISPLAY_NAME, null); in getName() 40 private static String getRawType(Context context, Uri self) { in getRawType() argument 41 return queryForString(context, self, DocumentsContract.Document.COLUMN_MIME_TYPE, null); in getRawType() 44 public static String getType(Context context, Uri self) { in getType() argument 45 final String rawType = getRawType(context, self); in getType() 53 public static boolean isDirectory(Context context, Uri self) { in isDirectory() argument 54 return DocumentsContract.Document.MIME_TYPE_DIR.equals(getRawType(context, self)); in isDirectory() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
D | AppCompatViewInflater.java | 67 public final View createView(View parent, final String name, @NonNull Context context, in createView() argument 70 final Context originalContext = context; in createView() 75 context = parent.getContext(); in createView() 79 context = themifyContext(context, attrs, readAndroidTheme, readAppTheme); in createView() 85 return new AppCompatEditText(context, attrs); in createView() 87 return new AppCompatSpinner(context, attrs); in createView() 89 return new AppCompatCheckBox(context, attrs); in createView() 91 return new AppCompatRadioButton(context, attrs); in createView() 93 return new AppCompatCheckedTextView(context, attrs); in createView() 95 return new AppCompatAutoCompleteTextView(context, attrs); in createView() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 292 public DevicePolicyManager getManager(Context context) { in getManager() argument 296 mManager = (DevicePolicyManager)context.getSystemService( in getManager() 306 public ComponentName getWho(Context context) { in getWho() argument 310 mWho = new ComponentName(context, getClass()); in getWho() 327 public void onEnabled(Context context, Intent intent) { in onEnabled() argument 341 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() argument 353 public void onDisabled(Context context, Intent intent) { in onDisabled() argument 365 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() argument 376 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed() argument 387 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded() argument [all …]
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | ctxt_default.rs | 12 int RS_KERNEL root(int ain, rs_kernel_context context, uint32_t x) { 13 _RS_ASSERT_EQU(rsGetArray0(context), 0); 14 _RS_ASSERT_EQU(rsGetArray1(context), 0); 15 _RS_ASSERT_EQU(rsGetArray2(context), 0); 16 _RS_ASSERT_EQU(rsGetArray3(context), 0); 17 _RS_ASSERT_EQU(rsGetFace(context), RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); 18 _RS_ASSERT_EQU(rsGetLod(context), 0); 20 _RS_ASSERT_EQU(rsGetDimY(context), 0); 21 _RS_ASSERT_EQU(rsGetDimZ(context), 0); 22 _RS_ASSERT_EQU(rsGetDimArray0(context), 0); [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 57 public static boolean isRotationSupported(Context context) { in isRotationSupported() argument 58 PackageManager pm = context.getPackageManager(); in isRotationSupported() 62 && context.getResources().getBoolean( in isRotationSupported() 74 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation() argument 75 if (!areAllRotationsAllowed(context)) { in getRotationLockOrientation() 92 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible() argument 93 return isRotationSupported(context) && in isRotationLockToggleVisible() 94 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible() 102 public static boolean isRotationLocked(Context context) { in isRotationLocked() argument 103 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked() [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderProxy.cpp | 84 CREATE_BRIDGE1(destroyContext, CanvasContext* context) { in CREATE_BRIDGE1() argument 85 delete args->context; in CREATE_BRIDGE1() 92 args->context = mContext; in destroyContext() 101 CREATE_BRIDGE2(setSwapBehavior, CanvasContext* context, SwapBehavior swapBehavior) { in CREATE_BRIDGE2() argument 102 args->context->setSwapBehavior(args->swapBehavior); in CREATE_BRIDGE2() 108 args->context = mContext; in setSwapBehavior() 113 CREATE_BRIDGE1(loadSystemProperties, CanvasContext* context) { in CREATE_BRIDGE1() argument 118 if (args->context->profiler().consumeProperties()) { in CREATE_BRIDGE1() 126 args->context = mContext; in loadSystemProperties() 130 CREATE_BRIDGE2(setName, CanvasContext* context, const char* name) { in CREATE_BRIDGE2() argument [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
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 = mContextRef.get(); [all …]
|
/frameworks/base/core/java/com/android/internal/logging/ |
D | MetricsLogger.java | 50 public static void visible(Context context, int category) throws IllegalArgumentException { in visible() argument 57 public static void hidden(Context context, int category) throws IllegalArgumentException { in hidden() argument 64 public static void visibility(Context context, int category, boolean visibile) in visibility() argument 67 visible(context, category); in visibility() 69 hidden(context, category); in visibility() 73 public static void visibility(Context context, int category, int vis) in visibility() argument 75 visibility(context, category, vis == View.VISIBLE); in visibility() 78 public static void action(Context context, int category) { in action() argument 79 action(context, category, ""); in action() 82 public static void action(Context context, int category, int value) { in action() argument [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 53 public NavigationBar(Context context, AttributeSet attrs) { in NavigationBar() argument 54 this((BridgeContext) context, in NavigationBar() 55 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi), in NavigationBar() 57 ((BridgeContext) context).getConfiguration().getLayoutDirection() == in NavigationBar() 59 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0, in NavigationBar() 63 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument 65 super(context, orientation, getShortestWidth(context)>= 600 ? LAYOUT_600DP_XML : LAYOUT_XML, in NavigationBar() 89 setupNavBar(context, orientation); in NavigationBar() 92 private void setupNavBar(BridgeContext context, int orientation) { in setupNavBar() argument 93 float sw = getShortestWidth(context); in setupNavBar() [all …]
|
/frameworks/native/opengl/libs/GLES_trace/src/ |
D | gltrace_fixup.cpp | 32 GLint glGetInteger(GLTraceContext *context, GLenum param) { in glGetInteger() argument 34 context->hooks->gl.glGetIntegerv(param, &x); in glGetInteger() 38 GLint glGetVertexAttrib(GLTraceContext *context, GLuint index, GLenum pname) { in glGetVertexAttrib() argument 40 context->hooks->gl.glGetVertexAttribiv(index, pname, &x); in glGetVertexAttrib() 44 bool isUsingPixelBuffers(GLTraceContext *context) { in isUsingPixelBuffers() argument 45 if (context->getVersionMajor() < 3) { in isUsingPixelBuffers() 48 return glGetInteger(context, GL_PIXEL_UNPACK_BUFFER_BINDING) != 0; in isUsingPixelBuffers() 51 bool isUsingArrayBuffers(GLTraceContext *context) { in isUsingArrayBuffers() argument 52 return glGetInteger(context, GL_ARRAY_BUFFER_BINDING) != 0; in isUsingArrayBuffers() 55 bool isUsingElementArrayBuffers(GLTraceContext *context) { in isUsingElementArrayBuffers() argument [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | DefaultDialerManager.java | 49 public static boolean setDefaultDialerApplication(Context context, String packageName) { in setDefaultDialerApplication() argument 50 return setDefaultDialerApplication(context, packageName, ActivityManager.getCurrentUser()); in setDefaultDialerApplication() 63 public static boolean setDefaultDialerApplication(Context context, String packageName, in setDefaultDialerApplication() argument 66 String oldPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), in setDefaultDialerApplication() 75 List<String> packageNames = getInstalledDialerApplications(context); in setDefaultDialerApplication() 79 Settings.Secure.putStringForUser(context.getContentResolver(), in setDefaultDialerApplication() 99 public static String getDefaultDialerApplication(Context context) { in getDefaultDialerApplication() argument 100 return getDefaultDialerApplication(context, context.getUserId()); in getDefaultDialerApplication() 116 public static String getDefaultDialerApplication(Context context, int user) { in getDefaultDialerApplication() argument 117 String defaultPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), in getDefaultDialerApplication() [all …]
|
/frameworks/base/core/java/android/service/dreams/ |
D | Sandman.java | 54 public static boolean shouldStartDockApp(Context context, Intent intent) { in shouldStartDockApp() argument 55 ComponentName name = intent.resolveActivity(context.getPackageManager()); in shouldStartDockApp() 62 public static void startDreamByUserRequest(Context context) { in startDreamByUserRequest() argument 63 startDream(context, false); in startDreamByUserRequest() 70 public static void startDreamWhenDockedIfAppropriate(Context context) { in startDreamWhenDockedIfAppropriate() argument 71 if (!isScreenSaverEnabled(context) in startDreamWhenDockedIfAppropriate() 72 || !isScreenSaverActivatedOnDock(context)) { in startDreamWhenDockedIfAppropriate() 77 startDream(context, true); in startDreamWhenDockedIfAppropriate() 80 private static void startDream(Context context, boolean docked) { in startDream() argument 94 (PowerManager)context.getSystemService(Context.POWER_SERVICE); in startDream() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetProvider.java | 57 public void onReceive(Context context, Intent intent) { in onReceive() argument 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); in onReceive() 73 this.onDeleted(context, new int[] { appWidgetId }); in onReceive() 81 this.onAppWidgetOptionsChanged(context, AppWidgetManager.getInstance(context), in onReceive() 85 this.onEnabled(context); in onReceive() 87 this.onDisabled(context); in onReceive() 94 this.onRestored(context, oldIds, newIds); in onReceive() 95 this.onUpdate(context, AppWidgetManager.getInstance(context), newIds); in onReceive() 120 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() argument 138 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, in onAppWidgetOptionsChanged() argument [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsApplication.java | 127 private static int getIncomingUserId(Context context) { in getIncomingUserId() argument 128 int contextUserId = context.getUserId(); in getIncomingUserId() 161 public static Collection<SmsApplicationData> getApplicationCollection(Context context) { in getApplicationCollection() argument 162 int userId = getIncomingUserId(context); in getApplicationCollection() 165 return getApplicationCollectionInternal(context, userId); in getApplicationCollection() 172 Context context, int userId) { in getApplicationCollectionInternal() argument 173 PackageManager packageManager = context.getPackageManager(); in getApplicationCollectionInternal() 302 private static SmsApplicationData getApplication(Context context, boolean updateIfNeeded, in getApplication() argument 305 context.getSystemService(Context.TELEPHONY_SERVICE); in getApplication() 311 Collection<SmsApplicationData> applications = getApplicationCollectionInternal(context, in getApplication() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 56 private static String bidiWrap(@NonNull Context context, String source) { in bidiWrap() argument 57 final Locale locale = context.getResources().getConfiguration().locale; in bidiWrap() 77 public static String formatFileSize(@Nullable Context context, long sizeBytes) { in formatFileSize() argument 78 if (context == null) { in formatFileSize() 81 final BytesResult res = formatBytes(context.getResources(), sizeBytes, 0); in formatFileSize() 82 return bidiWrap(context, context.getString(com.android.internal.R.string.fileSizeSuffix, in formatFileSize() 90 public static String formatShortFileSize(@Nullable Context context, long sizeBytes) { in formatShortFileSize() argument 91 if (context == null) { in formatShortFileSize() 94 final BytesResult res = formatBytes(context.getResources(), sizeBytes, FLAG_SHORTER); in formatShortFileSize() 95 return bidiWrap(context, context.getString(com.android.internal.R.string.fileSizeSuffix, in formatShortFileSize() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/ |
D | LeanbackTransitionHelper.java | 33 public Object loadTitleInTransition(Context context, TransitionHelper helper); in loadTitleInTransition() argument 35 public Object loadTitleOutTransition(Context context, TransitionHelper helper); in loadTitleOutTransition() argument 45 public Object loadTitleInTransition(Context context, TransitionHelper helper) { in loadTitleInTransition() argument 46 return LeanbackTransitionHelperKitKat.loadTitleInTransition(context); in loadTitleInTransition() 50 public Object loadTitleOutTransition(Context context, TransitionHelper helper) { in loadTitleOutTransition() argument 51 return LeanbackTransitionHelperKitKat.loadTitleOutTransition(context); in loadTitleOutTransition() 61 public Object loadTitleInTransition(Context context, TransitionHelper helper) { in loadTitleInTransition() argument 62 return helper.loadTransition(context, R.transition.lb_title_in); in loadTitleInTransition() 66 public Object loadTitleOutTransition(Context context, TransitionHelper helper) { in loadTitleOutTransition() argument 67 return helper.loadTransition(context, R.transition.lb_title_out); in loadTitleOutTransition() [all …]
|
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/ |
D | ArraysCheckWidget.java | 13 public ArraysCheckWidget(Context context, AttributeSet attrs) { in ArraysCheckWidget() argument 14 this(context, attrs, 0); in ArraysCheckWidget() 17 public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ArraysCheckWidget() argument 18 this(context, attrs, defStyleAttr, 0); in ArraysCheckWidget() 21 … public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ArraysCheckWidget() argument 22 super(context, attrs, defStyleAttr, defStyleRes); in ArraysCheckWidget() 23 Resources resources = context.getResources(); in ArraysCheckWidget() 25 addTextView(context, chars); in ArraysCheckWidget() 28 addTextView(context, String.valueOf(i)); in ArraysCheckWidget() 31 addTextView(context, string); in ArraysCheckWidget() [all …]
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
D | PreferenceManager.java | 91 public PreferenceManager(Context context) { in PreferenceManager() argument 92 mContext = context; in PreferenceManager() 94 setSharedPreferencesName(getDefaultSharedPreferencesName(context)); in PreferenceManager() 109 public PreferenceScreen inflateFromResource(Context context, int resId, in inflateFromResource() argument 114 final PreferenceInflater inflater = new PreferenceInflater(context, this); in inflateFromResource() 124 public PreferenceScreen createPreferenceScreen(Context context) { in createPreferenceScreen() argument 125 final PreferenceScreen preferenceScreen = new PreferenceScreen(context, null); in createPreferenceScreen() 211 public static SharedPreferences getDefaultSharedPreferences(Context context) { in getDefaultSharedPreferences() argument 212 return context.getSharedPreferences(getDefaultSharedPreferencesName(context), in getDefaultSharedPreferences() 216 private static String getDefaultSharedPreferencesName(Context context) { in getDefaultSharedPreferencesName() argument [all …]
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportReceiver.java | 80 public void onReceive(Context context, Intent intent) { in onReceive() argument 81 final Configuration conf = context.getResources().getConfiguration(); in onReceive() 86 triggerLocalNotification(context, bugreportFile, screenshotFile); in onReceive() 108 private void triggerLocalNotification(final Context context, final File bugreportFile, in triggerLocalNotification() argument 112 final Uri bugreportUri = FileProvider.getUriForFile(context, AUTHORITY, bugreportFile); in triggerLocalNotification() 113 final Uri screenshotUri = FileProvider.getUriForFile(context, AUTHORITY, screenshotFile); in triggerLocalNotification() 118 sendBugreportNotification(context, bugreportFile, screenshotFile); in triggerLocalNotification() 121 sendZippedBugreportNotification(context, bugreportFile, screenshotFile); in triggerLocalNotification() 125 private static Intent buildWarningIntent(Context context, Intent sendIntent) { in buildWarningIntent() argument 126 final Intent intent = new Intent(context, BugreportWarningActivity.class); in buildWarningIntent() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | WrappedRecyclerView.java | 35 public WrappedRecyclerView(Context context) { in WrappedRecyclerView() argument 36 super(context); in WrappedRecyclerView() 37 init(context); in WrappedRecyclerView() 40 public WrappedRecyclerView(Context context, AttributeSet attrs) { in WrappedRecyclerView() argument 41 super(context, attrs); in WrappedRecyclerView() 42 init(context); in WrappedRecyclerView() 45 public WrappedRecyclerView(Context context, AttributeSet attrs, int defStyle) { in WrappedRecyclerView() argument 46 super(context, attrs, defStyle); in WrappedRecyclerView() 47 init(context); in WrappedRecyclerView() 50 private void init(Context context) { in init() argument
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
D | SqliteWrapper.java | 41 private static boolean isLowMemory(Context context) { in isLowMemory() argument 42 if (null == context) { in isLowMemory() 47 context.getSystemService(Context.ACTIVITY_SERVICE); in isLowMemory() 59 public static void checkSQLiteException(Context context, SQLiteException e) { in checkSQLiteException() argument 61 Toast.makeText(context, com.android.internal.R.string.low_memory, in checkSQLiteException() 68 public static Cursor query(Context context, ContentResolver resolver, Uri uri, in query() argument 74 checkSQLiteException(context, e); in query() 79 public static boolean requery(Context context, Cursor cursor) { in requery() argument 84 checkSQLiteException(context, e); in requery() 88 public static int update(Context context, ContentResolver resolver, Uri uri, in update() argument [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | ImsManager.java | 184 public static ImsManager getInstance(Context context, int phoneId) { in getInstance() argument 189 ImsManager mgr = new ImsManager(context, phoneId); in getInstance() 199 public static boolean isEnhanced4gLteModeSettingEnabledByUser(Context context) { in isEnhanced4gLteModeSettingEnabledByUser() argument 201 context.getContentResolver(), in isEnhanced4gLteModeSettingEnabledByUser() 209 public static void setEnhanced4gLteModeSetting(Context context, boolean enabled) { in setEnhanced4gLteModeSetting() argument 212 context.getContentResolver(), in setEnhanced4gLteModeSetting() 215 if (isNonTtyOrTtyOnVolteEnabled(context)) { in setEnhanced4gLteModeSetting() 216 ImsManager imsManager = ImsManager.getInstance(context, in setEnhanced4gLteModeSetting() 232 public static boolean isNonTtyOrTtyOnVolteEnabled(Context context) { in isNonTtyOrTtyOnVolteEnabled() argument 233 if (getBooleanCarrierConfig(context, in isNonTtyOrTtyOnVolteEnabled() [all …]
|