HomeSort by relevance Sort by last modified time
    Searched full:context (Results 51 - 75 of 12809) sorted by null

1 23 4 5 6 7 8 91011>>

  /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);
45 static void acquireScreenCpuWakeLock(Context context) {
    [all...]
  /sdk/templates/other/BroadcastReceiver/root/src/app_package/
BroadcastReceiver.java.ftl 4 import android.content.Context;
12 public void onReceive(Context context, Intent intent) {
  /packages/experimental/LoaderApp/src/com/android/loaderapp/
CursorFactoryListAdapter.java 22 import android.content.Context;
34 public View newView(Context context, ViewGroup parent);
35 public void bindView(View view, Context context, Cursor cursor);
49 public View newView(Context context, ViewGroup parent) {
50 LayoutInflater inflater = (LayoutInflater) context.getSystemService(
51 Context.LAYOUT_INFLATER_SERVICE);
55 public void bindView(View view, Context context, Cursor cursor)
    [all...]
  /external/icu4c/samples/layout/
cgnomelayout.c 21 struct Context
28 typedef struct Context Context;
80 Context *context = (Context *) gtk_object_get_data(GTK_OBJECT(app), "context"); local
92 if (context->paragraph != NULL) {
93 pf_close(context->paragraph);
96 context->paragraph = newPara
226 Context *context = NEW_ARRAY(Context, 1); local
240 gtk_object_set_data(GTK_OBJECT(app), "context", context); local
265 context); local
270 context); local
281 Context *context = (Context *) gtk_object_get_data(GTK_OBJECT(app), "context"); local
    [all...]
gnomelayout.cpp 33 struct Context
88 Context *context = (Context *) gtk_object_get_data(GTK_OBJECT(app), "context"); local
100 if (context->paragraph != NULL) {
101 delete context->paragraph;
104 context->paragraph = newPara;
108 context->paragraph->breakLines(context->width, context->height)
232 Context *context = new Context(); local
241 gtk_object_set_data(GTK_OBJECT(app), "context", context); local
266 context); local
271 context); local
282 Context *context = (Context *) gtk_object_get_data(GTK_OBJECT(app), "context"); local
    [all...]
  /external/clang/unittests/Tooling/
RewriterTest.cpp 16 RewriterTestContext Context;
17 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4");
18 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced");
19 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles());
21 Context.getFileContentFromDisk("t.cpp"));
25 RewriterTestContext Context;
26 FileID FailingID = Context.createInMemoryFile("invalid/failing.cpp", "test");
27 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other")
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DialogPreferenceTest.java 4 import android.content.Context;
28 private Context context; field in class:DialogPreferenceTest
35 context = new Activity();
37 preference = new TestDialogPreference(context, attrs);
45 preference = new TestDialogPreference(context, attrs, defStyle);
47 assertThat(shadow.getContext(), sameInstance(context));
51 preference = new TestDialogPreference(context, attrs);
53 assertThat(shadow.getContext(), sameInstance(context));
65 public TestDialogPreference(Context context, AttributeSet attrs, int defStyle)
    [all...]
  /external/webkit/Source/JavaScriptCore/API/tests/
testapi.c 50 static JSGlobalContextRef context; variable
54 if (JSValueToBoolean(context, value) != expectedValue) {
62 double number = JSValueToNumber(context, value, NULL);
75 JSStringRef valueAsString = JSValueToStringCopy(context, value, NULL);
100 JSStringRef valueAsString = JSValueToStringCopy(context, value, NULL);
141 static bool MyObject_hasProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName)
143 UNUSED_PARAM(context);
158 static JSValueRef MyObject_getProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception)
160 UNUSED_PARAM(context);
164 return JSValueMakeNumber(context, 1)
786 JSGlobalContextRef context = JSGlobalContextCreate(0); local
    [all...]
  /packages/apps/Settings/src/com/android/settings/
TestingSettingsBroadcastReceiver.java 6 import android.content.Context;
19 public void onReceive(Context context, Intent intent) {
22 i.setClass(context, TestingSettings.class);
24 context.startActivity(i);
  /packages/apps/Settings/src/com/android/settings/bluetooth/
LocalBluetoothManager.java 19 import android.content.Context;
34 private final Context mContext;
37 private Context mForegroundActivity;
51 public static synchronized LocalBluetoothManager getInstance(Context context) {
58 Context appContext = context.getApplicationContext();
73 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) {
74 mContext = context;
    [all...]
  /packages/experimental/LoaderApp/src/com/android/loaderapp/model/
GoogleSource.java 29 import android.content.Context;
52 protected void inflate(Context context, int inflateLevel) {
54 inflateStructuredName(context, inflateLevel);
55 inflateNickname(context, inflateLevel);
56 inflatePhone(context, inflateLevel);
57 inflateEmail(context, inflateLevel);
58 inflateStructuredPostal(context, inflateLevel);
59 inflateIm(context, inflateLevel);
60 inflateOrganization(context, inflateLevel)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowCursorLoader.java 3 import android.content.Context;
12 private Context context; field in class:ShadowCursorLoader
19 public void __constructor__(Context context) {
20 this.context = context;
23 public void __constructor__(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
24 this.context = context
    [all...]
  /external/webkit/Tools/DumpRenderTree/gtk/
TextInputController.cpp 41 static JSValueRef setMarkedTextCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
45 return JSValueMakeUndefined(context);
48 return JSValueMakeUndefined(context);
50 JSStringRef string = JSValueToStringCopy(context, arguments[0], exception);
51 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context));
58 int start = static_cast<int>(JSValueToNumber(context, arguments[1], exception));
59 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context));
61 int end = static_cast<int>(JSValueToNumber(context, arguments[2], exception));
62 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context));
66 return JSValueMakeUndefined(context);
    [all...]
  /packages/apps/Camera/src/com/android/camera/ui/
PopupManager.java 19 import android.content.Context;
30 private static HashMap<Context, PopupManager> sMap =
31 new HashMap<Context, PopupManager>();
53 public static PopupManager getInstance(Context context) {
54 PopupManager instance = sMap.get(context);
57 sMap.put(context, instance);
62 public static void removeInstance(Context context) {
63 PopupManager instance = sMap.get(context);
    [all...]
  /packages/apps/Gallery2/src/com/android/camera/ui/
PopupManager.java 19 import android.content.Context;
30 private static HashMap<Context, PopupManager> sMap =
31 new HashMap<Context, PopupManager>();
53 public static PopupManager getInstance(Context context) {
54 PopupManager instance = sMap.get(context);
57 sMap.put(context, instance);
62 public static void removeInstance(Context context) {
63 PopupManager instance = sMap.get(context);
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
HolographicImageView.java 19 import android.content.Context;
28 public HolographicImageView(Context context) {
29 this(context, null);
32 public HolographicImageView(Context context, AttributeSet attrs) {
33 this(context, attrs, 0);
36 public HolographicImageView(Context context, AttributeSet attrs, int defStyle) {
37 super(context, attrs, defStyle)
    [all...]
  /packages/apps/LegacyCamera/src/com/android/camera/ui/
PopupManager.java 19 import android.content.Context;
30 private static HashMap<Context, PopupManager> sMap =
31 new HashMap<Context, PopupManager>();
53 public static PopupManager getInstance(Context context) {
54 PopupManager instance = sMap.get(context);
57 sMap.put(context, instance);
62 public static void removeInstance(Context context) {
63 PopupManager instance = sMap.get(context);
    [all...]
  /packages/apps/Stk/src/com/android/stk/
StkAppInstaller.java 22 import android.content.Context;
32 static void install(Context context) {
33 setAppState(context, true);
36 static void unInstall(Context context) {
37 setAppState(context, false);
40 private static void setAppState(Context context, boolean install) {
41 if (context == null)
    [all...]
  /cts/tests/tests/net/src/android/net/wifi/cts/
WifiFeature.java 19 import android.content.Context;
23 static boolean isWifiSupported(Context context) {
24 PackageManager packageManager = context.getPackageManager();
28 static boolean isP2pSupported(Context context) {
29 PackageManager packageManager = context.getPackageManager();
  /external/skia/tests/
GrContextFactoryTest.cpp 17 // Before we ask for a context, we expect the GL context to not be there.
21 // After we ask for a context, we expect that the GL context to be there.
26 // If we did not ask for a context with the particular GL context, we would
27 // expect the particular GL context to not be there.
  /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);
  /external/webkit/Source/WebCore/platform/graphics/cairo/
FontCairo.cpp 46 static void prepareContextForGlyphDrawing(cairo_t* context, const SimpleFontData* font, const FloatPoint& point)
49 cairo_set_scaled_font(context, font->platformData().scaledFont());
52 cairo_transform(context, &mat);
54 cairo_translate(context, point.x(), point.y());
57 static void drawGlyphsToContext(cairo_t* context, const SimpleFontData* font, GlyphBufferGlyph* glyphs, int numGlyphs)
59 cairo_show_glyphs(context, glyphs, numGlyphs);
62 cairo_translate(context, font->syntheticBoldOffset(), 0);
63 cairo_show_glyphs(context, glyphs, numGlyphs);
64 cairo_translate(context, -font->syntheticBoldOffset(), 0);
78 cairo_t* context = graphicsContext->platformContext()->cr() local
    [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...]
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
PackagesMonitor.java 21 import android.content.Context;
32 public synchronized static int getPackagesVersion(Context context) {
33 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
38 public void onReceive(final Context context, final Intent intent) {
39 intent.setClass(context, AsyncService.class);
40 context.startService(intent);
55 private static void onReceiveAsync(Context context, Intent intent)
    [all...]
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
ClearUserDictionaryDialogPreferenceEN.java 19 import android.content.Context;
31 /** The context */
32 protected Context mContext = null;
37 * @param context The context
40 public ClearUserDictionaryDialogPreferenceEN(Context context, AttributeSet attrs) {
41 super(context, attrs);
42 mContext = context;
48 * @param context The contex
    [all...]

Completed in 759 milliseconds

1 23 4 5 6 7 8 91011>>