/development/samples/StackWidget/src/com/example/android/stackwidget/ |
StackWidgetProvider.java | 22 import android.content.Context; 33 public void onDeleted(Context context, int[] appWidgetIds) { 34 super.onDeleted(context, appWidgetIds); 38 public void onDisabled(Context context) { 39 super.onDisabled(context); 43 public void onEnabled(Context context) { 44 super.onEnabled(context); [all...] |
/frameworks/base/core/java/android/widget/ |
ResourceCursorTreeAdapter.java | 19 import android.content.Context; 39 * @param context The context where the ListView associated with this 51 public ResourceCursorTreeAdapter(Context context, Cursor cursor, int collapsedGroupLayout, 53 super(cursor, context); 60 mInflater = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 66 * @param context The context where the ListView associated with thi [all...] |
/packages/apps/Browser/src/com/android/browser/search/ |
DefaultSearchEngine.java | 23 import android.content.Context; 41 private DefaultSearchEngine(Context context, SearchableInfo searchable) { 43 mLabel = loadLabel(context, mSearchable.getSearchActivity()); 46 public static DefaultSearchEngine create(Context context) { 48 (SearchManager) context.getSystemService(Context.SEARCH_SERVICE); 53 return new DefaultSearchEngine(context, searchable); 56 private CharSequence loadLabel(Context context, ComponentName activityName) [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
WidgetProvider.java | 23 import android.content.Context; 39 public void onEnabled(final Context context) { 43 super.onEnabled(context); 47 public void onDisabled(Context context) { 51 context.stopService(new Intent(context, WidgetService.class)); 52 super.onDisabled(context); 56 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DetailsHelper.java | 23 import android.content.Context; 91 public static String getDetailsName(Context context, int key) { 94 return context.getString(R.string.title); 96 return context.getString(R.string.description); 98 return context.getString(R.string.time); 100 return context.getString(R.string.location); 102 return context.getString(R.string.path); 104 return context.getString(R.string.width); 106 return context.getString(R.string.height) [all...] |
/external/v8/src/ |
contexts.h | 49 // Contexts are implemented as FixedArray objects; the Context 52 // Note: Context must have no virtual functions and Context objects 100 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ 111 // JSFunctions are pairs (context, function code), sometimes also called 112 // closures. A Context object is used to represent function contexts and 116 // stack, with the top-most context being the current context. All contexts 121 // incoming context (i.e., the outer context, which ma [all...] |
/external/bluetooth/glib/glib/ |
gmain.c | 174 GMainContext *context; member in struct:_GMainLoop 208 #define LOCK_CONTEXT(context) g_static_mutex_lock (&context->mutex) 209 #define UNLOCK_CONTEXT(context) g_static_mutex_unlock (&context->mutex) 212 #define LOCK_CONTEXT(context) (void)0 213 #define UNLOCK_CONTEXT(context) (void)0 221 #define SOURCE_UNREF(source, context) \ 226 g_source_unref_internal ((source), (context), TRUE); \ 233 GMainContext *context, 454 GMainContext *context = g_new0 (GMainContext, 1); local 742 GMainContext *context; local 815 GMainContext *context; local 848 GMainContext *context; local 888 GMainContext *context; local 1028 GMainContext *context; local 1093 GMainContext *context; local 1139 GMainContext *context; local 2957 GMainContext *context; local 3686 GMainContext *context; local [all...] |
/frameworks/base/core/java/android/view/ |
OrientationListener.java | 19 import android.content.Context; 43 * @param context for the OrientationListener. 45 public OrientationListener(Context context) { 46 mOrientationEventLis = new OrientationEventListenerInternal(context); 52 * @param context for the OrientationListener. 58 public OrientationListener(Context context, int rate) { 59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate); 63 OrientationEventListenerInternal(Context context) [all...] |
/frameworks/media/libvideoeditor/osal/inc/ |
M4OSA_FileWriter.h | 47 /** Get the reader context for read & write file. (M4OSA_Context*)*/ 72 M4OSA_ERR (*openWrite) (M4OSA_Context* context, 76 M4OSA_ERR (*writeData) (M4OSA_Context context, 80 M4OSA_ERR (*seek) (M4OSA_Context context, 84 M4OSA_ERR (*Flush) (M4OSA_Context context); 85 M4OSA_ERR (*closeWrite) (M4OSA_Context context); 86 M4OSA_ERR (*setOption) (M4OSA_Context context, 90 M4OSA_ERR (*getOption) (M4OSA_Context context, 100 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteOpen (M4OSA_Context* context, 104 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteData (M4OSA_Context context, [all...] |
/packages/apps/Browser/src/com/android/browser/preferences/ |
WebViewPreview.java | 19 import android.content.Context; 37 Context context, AttributeSet attrs, int defStyle) { 38 super(context, attrs, defStyle); 39 init(context); 42 public WebViewPreview(Context context, AttributeSet attrs) { 43 super(context, attrs); 44 init(context); 47 public WebViewPreview(Context context) [all...] |
/external/webkit/Source/WebCore/platform/gtk/ |
DragImageGtk.cpp | 52 RefPtr<cairo_t> context = adoptRef(cairo_create(scaledSurface)); local 53 cairo_scale(context.get(), scale.width(), scale.height()); 54 cairo_pattern_set_extend(cairo_get_source(context.get()), CAIRO_EXTEND_PAD); 55 cairo_pattern_set_filter(cairo_get_source(context.get()), CAIRO_FILTER_BEST); 56 cairo_set_operator(context.get(), CAIRO_OPERATOR_SOURCE); 57 cairo_set_source_surface(context.get(), image, 0, 0); 58 cairo_paint(context.get()); 69 RefPtr<cairo_t> context = adoptRef(cairo_create(image)); 70 cairo_set_operator(context.get(), CAIRO_OPERATOR_DEST_IN); 71 cairo_set_source_rgba(context.get(), 0, 0, 0, fraction) [all...] |
/frameworks/base/core/java/android/nfc/ |
NfcManager.java | 19 import android.content.Context; 24 * Use {@link android.content.Context#getSystemService(java.lang.String)} 25 * with {@link Context#NFC_SERVICE} to create an {@link NfcManager}, 29 * {@link NfcAdapter#getDefaultAdapter(android.content.Context)}. 37 * @see Context#getSystemService 38 * @see NfcAdapter#getDefaultAdapter(android.content.Context) 46 public NfcManager(Context context) { 48 context = context.getApplicationContext() [all...] |
/frameworks/base/libs/rs/ |
rsProgramVertex.h | 30 ProgramVertex(Context *,const char * shaderText, uint32_t shaderLength, 34 virtual void setup(Context *rsc, ProgramVertexState *state); 36 void setProjectionMatrix(Context *, const rsc_Matrix *) const; 37 void getProjectionMatrix(Context *, rsc_Matrix *) const; 38 void setModelviewMatrix(Context *, const rsc_Matrix *) const; 39 void setTextureMatrix(Context *, const rsc_Matrix *) const; 41 void transformToScreen(Context *, float *v4out, const float *v3in) const; 45 static ProgramVertex *createFromStream(Context *rsc, IStream *stream); 53 void init(Context *rsc); 54 void deinit(Context *rsc) [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestViewDrawText.java | 19 import android.content.Context; 33 public BiDiTestViewDrawText(Context context) { 34 this(context, null); 37 public BiDiTestViewDrawText(Context context, AttributeSet attrs) { 38 this(context, attrs, 0); 41 public BiDiTestViewDrawText(Context context, AttributeSet attrs, int defStyle) { 42 super(context, attrs, defStyle) [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ProfileDatabaseHelper.java | 20 import android.content.Context; 41 * {@link #getInstance(android.content.Context)} instead. 43 ProfileDatabaseHelper(Context context) { 44 this(context, null, false); 48 Context context, String databaseName, boolean optimizationEnabled) { 49 super(context, databaseName, optimizationEnabled); 52 public static synchronized ProfileDatabaseHelper getInstance(Context context) { [all...] |
/external/webkit/Source/WebKit2/UIProcess/ |
GenericCallback.h | 47 CallbackBase(void* context) 48 : m_context(context) 53 void* context() const { return m_context; } function in class:WebKit::CallbackBase 70 static PassRefPtr<VoidCallback> create(void* context, CallbackFunction callback) 72 return adoptRef(new VoidCallback(context, callback)); 84 m_callback(0, context()); 94 m_callback(toAPI(error.get()), context()); 100 VoidCallback(void* context, CallbackFunction callback) 101 : CallbackBase(context) 114 static PassRefPtr<GenericCallback> create(void* context, CallbackFunction callback [all...] |
/external/clang/test/Sema/ |
freemain.c | 7 void* main(void* context, long size) { 8 if (context) return allocate(size);
|
heinous-extensions-off.c | 6 asm("nop" : : "m"((int)(a))); // expected-error {{cast in a inline asm context requiring an l-value}} 8 asm("nop" : "=r"((unsigned)a)); // expected-error {{cast in a inline asm context requiring an l-value}}
|
heinous-extensions-on.c | 6 asm("nop" : : "m"((int)(a))); // expected-warning {{cast in a inline asm context requiring an l-value}} 8 asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in a inline asm context requiring an l-value}}
|
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProvider.java | 20 import android.content.Context; 28 * {@link #onReceive(Context,Intent) onReceive(Context,Intent)}, and calls hook methods 53 * @param context The Context in which the receiver is running. 57 public void onReceive(Context context, Intent intent) { 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); 74 this.onDeleted(context, new int[] { appWidgetId }) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmAlertWakeLock.java | 19 import android.content.Context; 30 static PowerManager.WakeLock createPartialWakeLock(Context context) { 32 (PowerManager) context.getSystemService(Context.POWER_SERVICE); 36 static void acquireCpuWakeLock(Context context) { 41 sCpuWakeLock = createPartialWakeLock(context);
|
/packages/apps/Email/src/com/android/email/ |
RequireManualSyncDialog.java | 22 import android.content.Context; 29 public RequireManualSyncDialog(Context context, Account account) { 30 super(context); 31 setMessage(context.getResources().getString(R.string.require_manual_sync_message)); 32 setButton(DialogInterface.BUTTON_POSITIVE, context.getString(android.R.string.ok), this); 33 Preferences.getPreferences(context).setHasShownRequireManualSync(context, account, true);
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
MessagingNotification.java | 42 import android.content.Context; 123 public void onReceive(Context context, Intent intent) { 128 Conversation.markAllConversationsAsSeen(context); 138 public static void init(Context context) { 142 context.registerReceiver(sNotificationDeletedReceiver, intentFilter); 153 * @param context the context to use 155 public static void nonBlockingUpdateNewMessageIndicator(final Context context [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
MessageListView.java | 19 import android.content.Context; 26 public MessageListView(Context context) { 27 super(context); 30 public MessageListView(Context context, AttributeSet attrs) { 31 super(context, attrs); 45 (ClipboardManager)getContext().getSystemService(Context.CLIPBOARD_SERVICE);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
CorporaUpdateReceiver.java | 21 import android.content.Context; 34 public void onReceive(Context context, Intent intent) { 39 updateCorpora(context); 40 SearchWidgetProvider.updateSearchWidgets(context); 44 private void updateCorpora(Context context) { 45 QsbApplication.get(context).updateCorpora();
|