/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ImportantNoticeUtils.java | 19 import android.content.Context; 56 private static boolean isInSystemSetupWizard(final Context context) { 59 context.getContentResolver(), Settings_Secure_USER_SETUP_COMPLETE); 69 static SharedPreferences getImportantNoticePreferences(final Context context) { 70 return context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); 74 static int getCurrentImportantNoticeVersion(final Context context) { [all...] |
/external/deqp/modules/gles3/functional/ |
es3fAttribLocationTests.cpp | 40 TestCaseGroup* createAttributeLocationTests (Context& context) 88 TestCaseGroup* const root = new TestCaseGroup (context, "attribute_location", "Attribute location tests"); 92 TestCaseGroup* const bindAttributeGroup = new TestCaseGroup(context, "bind", "Basic bind attribute location tests."); 99 bindAttributeGroup->addChild(new gls::BindAttributeTest(context.getTestContext(), context.getRenderContext(), type)); 105 TestCaseGroup* const bindMaxAttributeGroup = new TestCaseGroup(context, "bind_max_attributes", "Use bind with maximum number of attributes."); 112 bindMaxAttributeGroup->addChild(new gls::BindMaxAttributesTest(context.getTestContext(), context.getRenderContext(), type)); 118 TestCaseGroup* const aliasingGroup = new TestCaseGroup(context, "bind_aliasing", "Test binding aliasing locations.") [all...] |
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
Utils.java | 19 import android.content.Context; 25 public static boolean hasFeature(Context context, String feature) { 26 return context.getPackageManager().hasSystemFeature(feature); 29 public static boolean hasLeanback(Context context) { 30 return hasFeature(context, PackageManager.FEATURE_LEANBACK);
|
/external/chromium_org/third_party/WebKit/Source/core/dom/ |
ContextLifecycleObserver.cpp | 34 template<> void observerContext(ExecutionContext* context, LifecycleObserver<ExecutionContext>* observer) 36 context->wasObservedBy(observer); 39 template<> void unobserverContext(ExecutionContext* context, LifecycleObserver<ExecutionContext>* observer) 41 context->wasUnobservedBy(observer);
|
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
WebGLDebugRendererInfo.cpp | 32 WebGLDebugRendererInfo::WebGLDebugRendererInfo(WebGLRenderingContextBase* context) 33 : WebGLExtension(context) 46 PassRefPtrWillBeRawPtr<WebGLDebugRendererInfo> WebGLDebugRendererInfo::create(WebGLRenderingContextBase* context) 48 return adoptRefWillBeNoop(new WebGLDebugRendererInfo(context));
|
WebGLDepthTexture.cpp | 32 WebGLDepthTexture::WebGLDepthTexture(WebGLRenderingContextBase* context) 33 : WebGLExtension(context) 35 context->extensionsUtil()->ensureExtensionEnabled("GL_CHROMIUM_depth_texture"); 47 PassRefPtrWillBeRawPtr<WebGLDepthTexture> WebGLDepthTexture::create(WebGLRenderingContextBase* context) 49 return adoptRefWillBeNoop(new WebGLDepthTexture(context)); 52 bool WebGLDepthTexture::supported(WebGLRenderingContextBase* context) 54 Extensions3DUtil* extensionsUtil = context->extensionsUtil();
|
/external/chromium_org/third_party/WebKit/Source/modules/performance/ |
WorkerPerformance.cpp | 45 double WorkerPerformance::now(ExecutionContext* context) const 47 ASSERT(context); 48 ASSERT(context->isWorkerGlobalScope()); 49 WorkerGlobalScope* workerGlobalScope = toWorkerGlobalScope(context);
|
/external/chromium_org/third_party/android_crazy_linker/src/tests/ |
test_search_path_list.cpp | 24 void CheckLibraryCantLoad(const char* library_name, crazy_context_t* context) { 27 if (crazy_library_open(&library, library_name, context)) 41 crazy_context_t* context) { 44 if (!crazy_library_open(&library, library_name, context)) 45 Panic("Could not open library %s: %s\n", crazy_context_get_error(context)); 101 // Create a new context object. 102 crazy_context_t* context = crazy_context_create(); local 108 crazy_context_reset_search_paths(context); 109 CheckLibraryCantLoad("libfoo.so", context); 114 crazy_context_add_search_path_for_address(context, (void*)&main) [all...] |
/external/deqp/modules/gles2/ |
tes2TestCase.hpp | 38 TestCaseGroup (Context& context, const char* name, const char* description); 39 TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<TestNode*>& children); 42 Context& getContext (void) { return m_context; } 45 Context& m_context; 51 TestCase (Context& context, const char* name, const char* description); 52 TestCase (Context& context, tcu::TestNodeType type, const char* name, const char* description) [all...] |
/external/deqp/modules/gles3/ |
tes3TestCase.hpp | 38 TestCaseGroup (Context& context, const char* name, const char* description); 39 TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<TestNode*>& children); 42 Context& getContext (void) { return m_context; } 45 Context& m_context; 51 TestCase (Context& context, const char* name, const char* description); 52 TestCase (Context& context, tcu::TestNodeType nodeType, const char* name, const char* description) [all...] |
/external/deqp/modules/gles31/ |
tes31TestCase.hpp | 38 TestCaseGroup (Context& context, const char* name, const char* description); 39 TestCaseGroup (Context& context, const char* name, const char* description, const std::vector<TestNode*>& children); 42 Context& getContext (void) { return m_context; } 45 Context& m_context; 51 TestCase (Context& context, const char* name, const char* description); 52 TestCase (Context& context, tcu::TestNodeType nodeType, const char* name, const char* description) [all...] |
/external/libnfc-nxp/src/ |
phLibNfc_discovery.h | 34 phLibNfc_config_discovery_cb(void *context,
|
/external/libunwind/src/unwind/ |
GetTextRelBase.c | 29 _Unwind_GetTextRelBase (struct _Unwind_Context *context)
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
TestBroadcastReceiver.java | 4 import android.content.Context; 8 public Context context; field in class:TestBroadcastReceiver 12 public void onReceive(Context context, Intent intent) { 13 this.context = context;
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
AppWidgetContainerView.java | 19 import android.content.Context; 25 public AppWidgetContainerView(Context context) { 26 super(context); 29 public AppWidgetContainerView(Context context, AttributeSet attrs) { 30 super(context, attrs);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
SimpleMonthAdapter.java | 19 import android.content.Context; 26 public SimpleMonthAdapter(Context context, DatePickerController controller) { 27 super(context, controller); 31 public MonthView createMonthView(Context context) { 32 final MonthView monthView = new SimpleMonthView(context);
|
/frameworks/support/v4/froyo/android/support/v4/content/ |
ContextCompatFroyo.java | 19 import android.content.Context; 24 public static File getExternalCacheDir(Context context) { 25 return context.getExternalCacheDir(); 28 public static File getExternalFilesDir(Context context, String type) { 29 return context.getExternalFilesDir(type);
|
/frameworks/support/v4/honeycomb/android/support/v4/content/ |
ContextCompatHoneycomb.java | 19 import android.content.Context; 25 * Implementation of context compatibility that can call Honeycomb APIs. 29 static void startActivities(Context context, Intent[] intents) { 30 context.startActivities(intents); 33 public static File getObbDir(Context context) { 34 return context.getObbDir();
|
/ndk/sources/android/crazy_linker/tests/ |
test_search_path_list.cpp | 24 void CheckLibraryCantLoad(const char* library_name, crazy_context_t* context) { 27 if (crazy_library_open(&library, library_name, context)) 41 crazy_context_t* context) { 44 if (!crazy_library_open(&library, library_name, context)) 45 Panic("Could not open library %s: %s\n", crazy_context_get_error(context)); 101 // Create a new context object. 102 crazy_context_t* context = crazy_context_create(); local 108 crazy_context_reset_search_paths(context); 109 CheckLibraryCantLoad("libfoo.so", context); 114 crazy_context_add_search_path_for_address(context, (void*)&main) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationPager.java | 20 import android.content.Context; 26 public ConversationPager(Context context) { 27 this(context, null); 30 public ConversationPager(Context context, AttributeSet attrs) { 31 super(context, attrs);
|
/external/chromium_org/cc/output/ |
program_binding.cc | 29 bool ProgramBindingBase::Init(GLES2Interface* context, 33 vertex_shader_id_ = LoadShader(context, GL_VERTEX_SHADER, vertex_shader); 38 LoadShader(context, GL_FRAGMENT_SHADER, fragment_shader); 40 context->DeleteShader(vertex_shader_id_); 46 CreateShaderProgram(context, vertex_shader_id_, fragment_shader_id_); 50 bool ProgramBindingBase::Link(GLES2Interface* context) { 51 context->LinkProgram(program_); 52 CleanupShaders(context); 57 context->GetProgramiv(program_, GL_LINK_STATUS, &linked); 64 void ProgramBindingBase::Cleanup(GLES2Interface* context) { [all...] |
/external/chromium_org/chrome/browser/extensions/ |
extension_garbage_collector_factory.cc | 23 content::BrowserContext* context) { 25 GetInstance()->GetServiceForBrowserContext(context, true)); 46 content::BrowserContext* context) { 48 return new ExtensionGarbageCollectorChromeOS(context); 50 return new ExtensionGarbageCollector(context); 55 content::BrowserContext* context) const { 56 return BuildInstanceFor(context);
|
install_tracker_factory.cc | 19 content::BrowserContext* context) { 21 GetInstance()->GetServiceForBrowserContext(context, true)); 40 content::BrowserContext* context) const { 41 return new InstallTracker(context, ExtensionPrefs::Get(context)); 45 content::BrowserContext* context) const { 48 return ExtensionsBrowserClient::Get()->GetOriginalContext(context);
|
/external/chromium_org/third_party/WebKit/Source/web/ |
IndexedDBClientImpl.cpp | 49 bool IndexedDBClientImpl::allowIndexedDB(ExecutionContext* context, const String& name) 51 ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument() || context->isWorkerGlobalScope()); 53 if (context->isDocument()) { 54 WebSecurityOrigin origin(context->securityOrigin()); 55 Document* document = toDocument(context); 61 WorkerGlobalScope& workerGlobalScope = *toWorkerGlobalScope(context);
|