/cts/tests/src/android/view/cts/ |
MockViewStub.java | 19 import android.content.Context; 24 public MockViewStub(Context context) { 25 super(context); 28 public MockViewStub(Context context, AttributeSet attrs) { 29 super(context, attrs); 32 public MockViewStub(Context context, AttributeSet attrs, int defStyle) { 33 super(context, attrs, defStyle) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
FolderEditText.java | 3 import android.content.Context; 12 public FolderEditText(Context context) { 13 super(context); 16 public FolderEditText(Context context, AttributeSet attrs) { 17 super(context, attrs); 20 public FolderEditText(Context context, AttributeSet attrs, int defStyle) { 21 super(context, attrs, defStyle) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
FolderEditText.java | 3 import android.content.Context; 12 public FolderEditText(Context context) { 13 super(context); 16 public FolderEditText(Context context, AttributeSet attrs) { 17 super(context, attrs); 20 public FolderEditText(Context context, AttributeSet attrs, int defStyle) { 21 super(context, attrs, defStyle) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
CustomView.java | 3 import android.content.Context; 11 public CustomView(Context context, AttributeSet attrs) { 12 super(context, attrs); 13 inflate(context, R.layout.inner_merge, this);
|
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetProvider.java | 23 import android.content.Context; 39 public void onReceive(Context context, Intent intent) { 44 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 45 performUpdate(context, appWidgetManager, 46 appWidgetManager.getAppWidgetIds(getComponentName(context))); 48 super.onReceive(context, intent); 53 public void onUpdate(Context context, AppWidgetManager mngr, int[] ids) { 54 performUpdate(context, mngr, ids) [all...] |
/external/chromium_org/base/android/java/src/org/chromium/base/ |
WeakContext.java | 7 import android.content.Context; 12 // Holds a WeakReference to Context to allow it to be GC'd. 14 // other thread (may return null, if the Context has been nullified). 16 private static WeakReference<Context> sWeakContext; 18 public static void initializeWeakContext(final Context context) { 19 sWeakContext = new WeakReference<Context>(context); 22 public static Context getContext() { 29 // May return null if context is no longer available 31 final Context context = sWeakContext.get(); local [all...] |
/frameworks/av/libvideoeditor/vss/src/ |
VideoEditorResampler.cpp | 81 VideoEditorResampler *context = new VideoEditorResampler(); local 82 context->mResampler = AudioResampler::create( 84 if (context->mResampler == NULL) { 87 context->mResampler->setSampleRate(android::VideoEditorResampler::kFreq32000Hz); 88 context->mResampler->setVolume(0x1000, 0x1000); 89 context->nbChannels = inChannelCount; 90 context->outSamplingRate = sampleRate; 91 context->mInput = NULL; 92 context->mTmpInBuffer = NULL; 94 return ((M4OSA_Context )context); 100 VideoEditorResampler *context = local 115 VideoEditorResampler *context = local 122 VideoEditorResampler *context = local 149 VideoEditorResampler *context = local [all...] |
/external/chromium_org/content/browser/dom_storage/ |
dom_storage_session.cc | 16 DOMStorageSession::DOMStorageSession(DOMStorageContextImpl* context) 17 : context_(context), 18 namespace_id_(context->AllocateSessionId()), 19 persistent_namespace_id_(context->AllocatePersistentSessionId()), 21 context->task_runner()->PostTask( 27 DOMStorageSession::DOMStorageSession(DOMStorageContextImpl* context, 29 : context_(context), 30 namespace_id_(context->AllocateSessionId()), 33 context->task_runner()->PostTask( 47 bool DOMStorageSession::IsFromContext(DOMStorageContextImpl* context) { [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLayoutInflater.java | 4 import android.content.Context; 24 private Context context; field in class:ShadowLayoutInflater 26 private static LayoutInflater bind(LayoutInflater layoutInflater, Context context) { 27 shadowOf(layoutInflater).context = context; 32 public static LayoutInflater from(Context context) { 33 return bind(instances.getInstance(context), context) [all...] |
ShadowMenuInflater.java | 3 import android.content.Context; 18 private Context context; field in class:ShadowMenuInflater 20 public void __constructor__(Context context) { 21 this.context = context; 26 shadowOf(context.getApplicationContext()).getResourceLoader().inflateMenu(context, resource, root);
|
/external/chromium_org/components/browser_context_keyed_service/ |
browser_context_keyed_service_factory.cc | 16 content::BrowserContext* context, FactoryFunction factory) { 17 // Destroying the context may cause us to lose data about whether |context| 18 // has our preferences registered on it (since the context object itself 21 bool add_context = ArePreferencesSetOn(context); 24 // are unit tests that create a service on a context and then change the 26 BrowserContextShutdown(context); 27 BrowserContextDestroyed(context); 30 MarkPreferencesSetOn(context); 32 factories_[context] = factory [all...] |
refcounted_browser_context_keyed_service_factory.cc | 14 content::BrowserContext* context, 16 // Destroying the context may cause us to lose data about whether |context| 17 // has our preferences registered on it (since the context object itself 20 bool add_context = ArePreferencesSetOn(context); 23 // are unit tests that create a service on a context and then change the 25 BrowserContextShutdown(context); 26 BrowserContextDestroyed(context); 29 MarkPreferencesSetOn(context); 31 factories_[context] = factory [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardSecurityContainer.java | 3 import android.content.Context; 9 public KeyguardSecurityContainer(Context context, AttributeSet attrs) { 10 this(context, attrs, 0); 13 public KeyguardSecurityContainer(Context context) { 17 public KeyguardSecurityContainer(Context context, AttributeSet attrs, int defStyle) { 18 super(context, attrs, defStyle);
|
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/ |
main.h | 23 class Context; 27 Context *context; member in struct:gl::Current 31 void makeCurrent(Context *context, egl::Display *display, egl::Surface *surface); 33 Context *getContext(); 34 Context *getNonLostContext(); 57 gl::Context *glCreateContext(const gl::Context *shareContext, rx::Renderer *renderer, bool notifyResets, bool robustAccess); 58 void glDestroyContext(gl::Context *context) [all...] |
main.cpp | 12 #include "libGLESv2/Context.h" 38 current->context = NULL; 74 void makeCurrent(Context *context, egl::Display *display, egl::Surface *surface) 78 current->context = context; 81 if (context && display && surface) 83 context->makeCurrent(surface); 87 Context *getContext() 91 return current->context; 96 Context *context = getContext(); local 123 gl::Context *context = glGetCurrentContext(); local [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
DeviceUtils.java | 7 import android.content.Context; 26 * @param context Android's context 29 public static boolean isTablet(Context context) { 31 if (isTv(context)) { 35 int minimumScreenWidthDp = context.getResources().getConfiguration(). 44 * invoked before {@link #isTablet(Context)} to get the correct result 47 * @param context Android context [all...] |
/frameworks/rs/ |
rs_hal.h | 27 class Context; 81 bool (*initGraphics)(const Context *); 82 void (*shutdownGraphics)(const Context *); 83 bool (*setSurface)(const Context *, uint32_t w, uint32_t h, RsNativeWindow); 84 void (*swap)(const Context *); 86 void (*shutdownDriver)(Context *); 88 void (*setPriority)(const Context *, int32_t priority); 94 bool (*init)(const Context *rsc, ScriptC *s, 100 bool (*initIntrinsic)(const Context *rsc, Script *s, 104 void (*invokeFunction)(const Context *rsc, Script *s [all...] |
rsRuntime.h | 31 // Context 34 void rsrAllocationSyncAll(Context *, Script *, Allocation *); 37 void rsrBindTexture(Context *, ProgramFragment *, uint32_t slot, Allocation *); 38 void rsrBindConstant(Context *, ProgramFragment *, uint32_t slot, Allocation *); 39 void rsrBindConstant(Context *, ProgramVertex*, uint32_t slot, Allocation *); 40 void rsrBindSampler(Context *, ProgramFragment *, uint32_t slot, Sampler *); 41 void rsrBindProgramStore(Context *, ProgramStore *); 42 void rsrBindProgramFragment(Context *, ProgramFragment *); 43 void rsrBindProgramVertex(Context *, ProgramVertex *); 44 void rsrBindProgramRaster(Context *, ProgramRaster *) [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouterThemeHelper.java | 19 import android.content.Context; 29 public static Context createThemedContext(Context context, boolean forceDark) { 30 boolean isLightTheme = isLightTheme(context); 32 context = new ContextThemeWrapper(context, R.style.Theme_AppCompat); 35 return new ContextThemeWrapper(context, isLightTheme ? 39 public static int getThemeResource(Context context, int attr) [all...] |
/external/chromium_org/content/public/browser/ |
web_contents.cc | 11 WebContents::CreateParams::CreateParams(BrowserContext* context) 12 : browser_context(context), 17 context(NULL) {} 20 BrowserContext* context, SiteInstance* site) 21 : browser_context(context), 26 context(NULL) {}
|
/libcore/crypto/src/test/java/org/conscrypt/ |
ClientSessionContextTest.java | 29 ClientSessionContext context = new ClientSessionContext(); local 33 context.putSession(a); 34 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b }); 36 context.putSession(b); 37 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[0]); 41 ClientSessionContext context = new ClientSessionContext(); local 47 context.putSession(a); 48 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b, c, d }); 50 context.putSession(b); 51 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[] { c, d }) 64 ClientSessionContext context = new ClientSessionContext(); local [all...] |
/external/chromium_org/chrome_frame/ |
sync_msg_reply_dispatcher.cc | 10 SyncMessageCallContext* context, 12 if (context) { 13 context->message_type_ = msg->type(); 14 context->id_ = IPC::SyncMessage::GetMessageId(*msg); 15 context->key_ = key; 18 message_queue_.push_back(context); 23 const IPC::Message& msg, SyncMessageCallContext* context) { 28 SyncMessageCallContext* context = GetContext(msg); local 29 // No context e.g. no return values and/or don't care 30 if (!context) { 42 SyncMessageCallContext* context = *it; local 61 SyncMessageCallContext* context = *it; local [all...] |
/packages/apps/Browser/src/com/android/browser/view/ |
StopProgressView.java | 6 import android.content.Context; 21 * @param context 26 public StopProgressView(Context context, AttributeSet attrs, int defStyle, int styleRes) { 27 super(context, attrs, defStyle, styleRes); 32 * @param context 36 public StopProgressView(Context context, AttributeSet attrs, int defStyle) { 37 super(context, attrs, defStyle); 42 * @param context [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
GoNegReqTestSuite.java | 21 import android.content.Context; 32 * @param context 35 public static ArrayList<ReqTestCase> getTestSuite(Context context) { 36 initialize(context); 42 * @param context 46 public static ReqTestCase getTestCase(Context context, 48 initialize(context); 58 private static void initialize(Context context) [all...] |
P2pClientTestSuite.java | 21 import android.content.Context; 32 * @param context 35 public static ArrayList<ReqTestCase> getTestSuite(Context context) { 36 initialize(context); 42 * @param context 46 public static ReqTestCase getTestCase(Context context, 48 initialize(context); 58 private static void initialize(Context context) [all...] |