/packages/apps/Settings/src/com/android/settings/widget/ |
SettingsAppWidgetProvider.java | 25 import android.content.Context; 107 public final void toggleState(Context context) { 108 int currentState = getTriState(context); 132 requestStateChange(context, newState); 139 public abstract void onActualStateChange(Context context, Intent intent); 147 protected final void setCurrentState(Context context, int newState) { 176 requestStateChange(context, mIntendedState) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerReceiver.java | 20 import android.content.Context; 35 public void onReceive(Context context, Intent intent) { 42 scan(context, MediaProvider.INTERNAL_VOLUME); 49 scan(context, MediaProvider.EXTERNAL_VOLUME); 52 scanFile(context, path); 58 private void scan(Context context, String volume) { 61 context.startService( 62 new Intent(context, MediaScannerService.class).putExtras(args)) [all...] |
/external/webkit/WebCore/websockets/ |
WorkerThreadableWebSocketChannel.cpp | 52 WorkerThreadableWebSocketChannel::WorkerThreadableWebSocketChannel(WorkerContext* context, WebSocketChannelClient* client, const String& taskMode, const KURL& url, const String& protocol) 53 : m_workerContext(context) 97 WorkerThreadableWebSocketChannel::Peer::Peer(RefPtr<ThreadableWebSocketChannelClientWrapper> clientWrapper, WorkerLoaderProxy& loaderProxy, ScriptExecutionContext* context, const String& taskMode, const KURL& url, const String& protocol) 100 , m_mainWebSocketChannel(WebSocketChannel::create(context, this, url, protocol)) 121 static void workerContextDidSend(ScriptExecutionContext* context, RefPtr<ThreadableWebSocketChannelClientWrapper> workerClientWrapper, bool sent) 123 ASSERT_UNUSED(context, context->isWorkerContext()); 136 static void workerContextDidGetBufferedAmount(ScriptExecutionContext* context, RefPtr<ThreadableWebSocketChannelClientWrapper> workerClientWrapper, unsigned long bufferedAmount) 138 ASSERT_UNUSED(context, context->isWorkerContext()) [all...] |
/external/icu4c/samples/ucnv/ |
flagcb.h | 12 /* The structure of a FromU Flag context. 13 (conceivably there could be a ToU Flag Context) */ 23 * open the context 32 const void *context, 50 U_CAPI void debugCB_fromU(const void *context,
|
/frameworks/base/core/java/android/widget/ |
ResourceCursorAdapter.java | 19 import android.content.Context; 40 * @param context The context where the ListView associated with this 46 public ResourceCursorAdapter(Context context, int layout, Cursor c) { 47 super(context, c); 49 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 55 * @param context The context where the ListView associated with thi [all...] |
Button.java | 19 import android.content.Context; 60 public Button(Context context) { 61 this(context, null); 64 public Button(Context context, AttributeSet attrs) { 65 this(context, attrs, com.android.internal.R.attr.buttonStyle); 68 public Button(Context context, AttributeSet attrs, int defStyle) { 69 super(context, attrs, defStyle) [all...] |
CheckBox.java | 19 import android.content.Context; 54 public CheckBox(Context context) { 55 this(context, null); 58 public CheckBox(Context context, AttributeSet attrs) { 59 this(context, attrs, com.android.internal.R.attr.checkboxStyle); 62 public CheckBox(Context context, AttributeSet attrs, int defStyle) { 63 super(context, attrs, defStyle) [all...] |
NumberPickerButton.java | 19 import android.content.Context; 36 public NumberPickerButton(Context context, AttributeSet attrs, 38 super(context, attrs, defStyle); 41 public NumberPickerButton(Context context, AttributeSet attrs) { 42 super(context, attrs); 45 public NumberPickerButton(Context context) { 46 super(context); [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
InstallShortcutReceiver.java | 20 import android.content.Context; 34 public void onReceive(Context context, Intent data) { 41 if (!installShortcut(context, data, screen)) { 44 if (i != screen && installShortcut(context, data, i)) break; 49 private boolean installShortcut(Context context, Intent data, int screen) { 52 if (findEmptyCell(context, mCoordinates, screen)) { 67 if (duplicate || !LauncherModel.shortcutExists(context, name, intent)) { 68 ((LauncherApplication)context.getApplicationContext()).getModel( [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
MessagingNotification.java | 42 import android.content.Context; 122 public void onReceive(Context context, Intent intent) { 127 Conversation.markAllConversationsAsSeen(context); 137 public static void init(Context context) { 141 context.registerReceiver(sNotificationDeletedReceiver, intentFilter); 152 * @param context the context to use 154 public static void nonBlockingUpdateNewMessageIndicator(final Context context [all...] |
/development/apps/Development/src/com/android/development/ |
LogTextBox.java | 20 import android.content.Context; 41 public LogTextBox(Context context) { 42 this(context, null); 45 public LogTextBox(Context context, AttributeSet attrs) { 46 this(context, attrs, android.R.attr.textViewStyle); 49 public LogTextBox(Context context, AttributeSet attrs, int defStyle) { 50 super(context, attrs, defStyle) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/text/ |
LogTextBox.java | 20 import android.content.Context; 42 public LogTextBox(Context context) { 43 this(context, null); 46 public LogTextBox(Context context, AttributeSet attrs) { 47 this(context, attrs, android.R.attr.textViewStyle); 50 public LogTextBox(Context context, AttributeSet attrs, int defStyle) { 51 super(context, attrs, defStyle) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
DialogTitle.java | 19 import android.content.Context; 32 public DialogTitle(Context context, AttributeSet attrs, 34 super(context, attrs, defStyle); 37 public DialogTitle(Context context, AttributeSet attrs) { 38 super(context, attrs); 41 public DialogTitle(Context context) { 42 super(context); [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
SurfaceView.java | 21 import android.content.Context; 36 public SurfaceView(Context context) { 37 this(context, null); 40 public SurfaceView(Context context, AttributeSet attrs) { 41 this(context, attrs , 0); 44 public SurfaceView(Context context, AttributeSet attrs, int defStyle) { 45 super(context, attrs, defStyle) [all...] |
/frameworks/policies/base/mid/com/android/internal/policy/impl/ |
MidLayoutInflater.java | 21 import android.content.Context; 34 * through {@link Context#getSystemService} 36 * @param context The Context in which in which to find resources and other 39 * @see Context#getSystemService 41 public MidLayoutInflater(Context context) { 42 super(context); 45 protected MidLayoutInflater(LayoutInflater original, Context newContext) { 69 public LayoutInflater cloneInContext(Context newContext) [all...] |
/frameworks/policies/base/phone/com/android/internal/policy/impl/ |
PhoneLayoutInflater.java | 21 import android.content.Context; 34 * through {@link Context#getSystemService} 36 * @param context The Context in which in which to find resources and other 39 * @see Context#getSystemService 41 public PhoneLayoutInflater(Context context) { 42 super(context); 45 protected PhoneLayoutInflater(LayoutInflater original, Context newContext) { 69 public LayoutInflater cloneInContext(Context newContext) [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsSearchManager.java | 31 * An extra that provides context for search UI and defines the scope for 37 * An extra that provides context for search UI and defines the scope for 45 public static void startSearch(Activity context, String initialQuery) { 46 context.startActivity(buildIntent(context, initialQuery)); 49 public static void startSearchForResult(Activity context, String initialQuery, 51 context.startActivityForResult(buildIntent(context, initialQuery), requestCode); 54 private static Intent buildIntent(Activity context, String initialQuery) { 59 Intent originalIntent = context.getIntent() [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
NumberPickerButton.java | 19 import android.content.Context; 36 public NumberPickerButton(Context context, AttributeSet attrs, 38 super(context, attrs, defStyle); 41 public NumberPickerButton(Context context, AttributeSet attrs) { 42 super(context, attrs); 45 public NumberPickerButton(Context context) { 46 super(context); [all...] |
DeliveryReportListItem.java | 23 import android.content.Context; 39 DeliveryReportListItem(Context context) { 40 super(context); 52 public DeliveryReportListItem(Context context, AttributeSet attrs) { 53 super(context, attrs); 67 Context context = getContext(); local 68 String receivedStr = context.getString(R.string.status_received) [all...] |
/external/webkit/WebKitTools/DumpRenderTree/win/ |
EventSender.cpp | 63 static JSValueRef getDragModeCallback(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception) 65 return JSValueMakeBoolean(context, dragMode); 68 static bool setDragModeCallback(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef value, JSValueRef* exception) 70 dragMode = JSValueToBoolean(context, value); 74 static JSValueRef getConstantCallback(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception) 77 return JSValueMakeNumber(context, WM_KEYDOWN); 79 return JSValueMakeNumber(context, WM_KEYUP); 81 return JSValueMakeNumber(context, WM_CHAR); 83 return JSValueMakeNumber(context, WM_DEADCHAR); 85 return JSValueMakeNumber(context, WM_SYSKEYDOWN) [all...] |
/external/bluetooth/glib/glib/ |
goption.h | 66 typedef gboolean (*GOptionParseFunc) (GOptionContext *context, 71 typedef void (*GOptionErrorFunc) (GOptionContext *context, 104 void g_option_context_set_summary (GOptionContext *context, 106 G_CONST_RETURN gchar *g_option_context_get_summary (GOptionContext *context); 107 void g_option_context_set_description (GOptionContext *context, 109 G_CONST_RETURN gchar *g_option_context_get_description (GOptionContext *context); 110 void g_option_context_free (GOptionContext *context); 111 void g_option_context_set_help_enabled (GOptionContext *context, 113 gboolean g_option_context_get_help_enabled (GOptionContext *context); 114 void g_option_context_set_ignore_unknown_options (GOptionContext *context, [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoBroadcastPackageRemovedPermissionTest.java | 25 * Verify Context related methods without specific BROADCAST series permissions. 31 * Verify that Context#sendStickyBroadcast(Intent), 32 * Context#removeStickyBroadcast(Intent) 41 fail("Context.sendStickyBroadcast did not throw SecurityException as expected"); 48 fail("Context.removeStickyBroadcast did not throw SecurityException as expected"); 55 * Verify that Context#sendBroadcast(Intent), 56 * Context#sendBroadcast(Intent, String) 57 * Context#sendOrderedBroadcast(Intent, String, BroadcastReceiver, 59 * Context#sendOrderedBroadcast(Intent, String) with ACTION_UID_REMOVED 68 fail("Context.sendBroadcast did not throw SecurityException as expected") [all...] |
/frameworks/base/keystore/java/android/security/ |
Credentials.java | 20 import android.content.Context; 74 public void unlock(Context context) { 77 context.startActivity(intent); 83 public void install(Context context, KeyPair pair) { 88 context.startActivity(intent); 94 public void install(Context context, String type, byte[] value) { 98 context.startActivity(intent) [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
Utils.java | 19 import android.content.Context; 34 * @param context the application context 38 public static String formatElapsedTime(Context context, double millis) { 56 sb.append(context.getString(R.string.battery_history_days, 59 sb.append(context.getString(R.string.battery_history_hours, hours, minutes, seconds)); 61 sb.append(context.getString(R.string.battery_history_minutes, minutes, seconds)); 63 sb.append(context.getString(R.string.battery_history_seconds, seconds)); 70 * @param context the application contex [all...] |
/development/host/windows/usb/legacy/driver/ |
android_usb_pipe_file_object.cpp | 393 // We rely here on the fact that we're in the context of the calling thread.
461 // Initialize our request context.
462 AndroidUsbWdfRequestContext* context =
local 464 ASSERT(NULL != context);
465 if (NULL == context) {
471 context->object_type = AndroidUsbWdfObjectTypeRequest;
472 context->urb_mem = urb_mem;
473 context->transfer_mdl = transfer_mdl;
474 context->mdl = new_mdl;
475 context->length = length; 699 context = GetAndroidUsbWdfRequestContext(request); local 716 AndroidUsbWorkitemContext* context = local [all...] |