/frameworks/base/tools/layoutlib/bridge/src/android/preference/ |
BridgePreferenceInflater.java | 22 import android.content.Context; 28 public BridgePreferenceInflater(Context context, PreferenceManager preferenceManager) { 29 super(context, preferenceManager); 38 Context context = getContext(); local 39 if (context instanceof BridgeContext) { 40 bc = (BridgeContext) context;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/menu/ |
BridgeMenuItemImpl.java | 21 import android.content.Context; 43 Context context = menu.getContext(); local 44 context = BridgeContext.getBaseContext(context); 45 if (context instanceof BridgeContext) { 46 mContext = ((BridgeContext) context);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
AndroidLocale.java | 63 BridgeContext context = RenderAction.getCurrentContext(); local 64 if (context != null) { 65 Locale locale = context.getConfiguration().locale;
|
/frameworks/compile/libbcc/lib/ |
RSIsThreadablePass.cpp | 112 llvm::LLVMContext &context = M.getContext(); variable 114 llvm::MDString::get(context, (threadable) ? "yes" : "no"); 117 node->addOperand(llvm::MDNode::get(context, val));
|
/frameworks/compile/mclinker/lib/MC/ |
InputBuilder.cpp | 104 // archive needs a individual context. We identify the object files in an 106 LDContext* context = NULL; local 108 // pInput is an object in an archive file. Produce a new context in this 110 context = m_pContextFactory->produce(); 112 // Using pInput.path() to avoid from creating context for identical file 114 context = m_pContextFactory->produce(pInput.path()); 117 pInput.setContext(context);
|
/frameworks/native/opengl/tests/finish/ |
finish.cpp | 43 EGLContext context; local 63 context = eglCreateContext(dpy, config, NULL, NULL); 64 eglMakeCurrent(dpy, surface, surface, context);
|
/frameworks/native/opengl/tests/gl_perf/ |
gl2_perf.cpp | 70 EGLContext context; local 106 context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs); 108 if (context == EGL_NO_CONTEXT) { 112 returnValue = eglMakeCurrent(dpy, surface, surface, context);
|
/frameworks/native/opengl/tests/textures/ |
textures.cpp | 39 EGLContext context; local 59 context = eglCreateContext(dpy, config, NULL, NULL); 60 eglMakeCurrent(dpy, surface, surface, context);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
IconMixin.java | 19 import android.content.Context; 42 final Context context = layout.getContext(); local 45 context.obtainStyledAttributes(attrs, R.styleable.SuwIconMixin, defStyleAttr, 0);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
IllustrationTest.java | 22 import android.content.Context; 48 final Context context = InstrumentationRegistry.getContext(); local 49 // Force the context to be xhdpi 50 context.getResources().getDisplayMetrics().density = 2.0f; 52 final Illustration illustration = new Illustration(context);
|
ReflectionInflaterTest.java | 22 import android.content.Context; 44 final Context context = InstrumentationRegistry.getContext(); local 45 TestInflater inflater = new TestInflater(context); 57 final Context context = InstrumentationRegistry.getContext(); local 58 TestInflater inflater = new TestInflater(context); 72 protected TestInflater(@NonNull Context context) { 73 super(context); [all...] |
SimpleInflaterTest.java | 21 import android.content.Context; 40 final Context context = InstrumentationRegistry.getContext(); local 41 TestInflater inflater = new TestInflater(context.getResources());
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/span/ |
LinkSpanTest.java | 22 import android.content.Context; 39 final TestContext context = new TestContext(application); local 40 final TextView textView = new TextView(context); 45 assertSame("Clicked LinkSpan should be passed to setup", linkSpan, context.clickedSpan); 55 // This would be no-op, because the context doesn't implement LinkSpan.OnClickListener. 63 TestContext(Context base) {
|
/frameworks/support/compat/java/android/support/v4/content/pm/ |
ShortcutManagerCompat.java | 21 import android.content.Context; 53 public static boolean isRequestPinShortcutSupported(@NonNull Context context) { 55 return context.getSystemService(ShortcutManager.class).isRequestPinShortcutSupported(); 58 if (ContextCompat.checkSelfPermission(context, INSTALL_SHORTCUT_PERMISSION) 62 for (ResolveInfo info : context.getPackageManager().queryBroadcastReceivers( 89 public static boolean requestPinShortcut(@NonNull final Context context, 92 return context.getSystemService(ShortcutManager.class).requestPinShortcut( 96 if (!isRequestPinShortcutSupported(context)) { [all...] |
/frameworks/support/core-ui/jellybean-mr2/android/support/v4/app/ |
ActionBarDrawerToggleJellybeanMR2.java | 23 import android.content.Context; 57 final Context context; local 59 context = actionBar.getThemedContext(); 61 context = activity; 64 final TypedArray a = context.obtainStyledAttributes(null, THEME_ATTRS,
|
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/ |
EditTextAttributeHelper.java | 21 import android.content.Context; 41 final Context context = view.getContext(); local 42 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.EmojiEditText,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ItemBridgeAdapterShadowOverlayWrapper.java | 16 import android.content.Context; 34 Context context = root.getContext(); local 35 ShadowOverlayContainer wrapper = mHelper.createShadowOverlayContainer(context);
|
MediaItemActionPresenter.java | 16 import android.content.Context; 50 Context context = parent.getContext(); local 51 View actionView = LayoutInflater.from(context)
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ThemedSpinnerAdapter.java | 20 import android.content.Context; 47 * @param theme the context against which to inflate drop-down views, or 73 * public CheeseAdapter(Context context) { 74 * mDropDownHelper = new ThemedSpinnerAdapter.Helper(context); 106 private final Context mContext; 110 public Helper(@NonNull Context context) { 111 mContext = context; 112 mInflater = LayoutInflater.from(context); 128 final Context context = new ContextThemeWrapper(mContext, theme); local [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/res/content/ |
AppCompatResourcesTestCase.java | 44 final Activity context = getActivity(); local 47 context, android.R.attr.colorForeground); 50 context, R.color.color_state_list_themed_attrs); 68 final Activity context = getActivity(); local 69 assertNotNull(AppCompatResources.getDrawable(context, R.drawable.test_vector_off));
|
/hardware/intel/common/libva/test/basic/ |
test.c | 97 VAContextID context; local 117 va_status = vaCreateContext(va_dpy, config_id, 720, 480, 0 /* flag */, surfaces, 20, &context); 120 va_status = vaDestroyContext(va_dpy, context);
|
/libcore/ojluni/src/main/java/java/nio/file/ |
WatchEvent.java | 35 * {@link #context() context} method returns any context associated with 36 * the event. In the case of a repeated event then the context is the same for 42 * @param <T> The type of the context object associated with the event 64 * Returns the type of the {@link WatchEvent#context context} value. 67 * @return the type of the context value 106 * Returns the context for the event. 110 * StandardWatchEventKinds#ENTRY_MODIFY ENTRY_MODIFY} events the context i 117 T context(); method in interface:WatchEvent [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
MockAlarmManager.java | 20 import android.content.Context; 26 private Context context; field in class:MockAlarmManager 31 MockAlarmManager(Context context) { 32 this.context = context; 47 context, expectedAlarmTime, DateUtils.FORMAT_SHOW_TIME) + ", actual:" 48 + DateUtils.formatDateTime(context, actualAlarmTime,
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
ManagedSwitchPreference.java | 21 import android.content.Context; 36 public ManagedSwitchPreference(Context context) { 37 super(context); 40 public ManagedSwitchPreference(Context context, AttributeSet attrs) { 41 super(context, attrs); 44 public ManagedSwitchPreference(Context context, AttributeSet attrs, int defStyle) { 45 super(context, attrs, defStyle) 88 Context context = getContext(); local [all...] |
/packages/apps/Car/Radio/src/com/android/car/radio/ |
BootupReceiver.java | 20 import android.content.Context; 32 public void onReceive(Context context, Intent intent) { 38 context.startService(new Intent(context, RadioService.class));
|