HomeSort by relevance Sort by last modified time
    Searched defs:context (Results 201 - 225 of 5241) sorted by null

1 2 3 4 5 6 7 891011>>

  /packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
PulseNotificationPreferenceControllerTest.java 25 import android.content.Context;
44 private Context mContext;
84 final Context context = RuntimeEnvironment.application; local
85 Settings.System.putInt(context.getContentResolver(), NOTIFICATION_LIGHT_PULSE, 1);
87 mController = new PulseNotificationPreferenceController(context);
96 final Context context = RuntimeEnvironment.application; local
97 Settings.System.putInt(context.getContentResolver(), NOTIFICATION_LIGHT_PULSE, 0);
99 mController = new PulseNotificationPreferenceController(context);
    [all...]
  /packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
PhotosDeletionPreference.java 19 import android.content.Context;
40 public PhotosDeletionPreference(Context context, AttributeSet attrs) {
41 super(context, attrs);
52 Context context = getContext(); local
53 setTitle(context.getString(R.string.deletion_helper_photos_title));
56 context.getString(
58 Formatter.formatFileSize(context, bytes),
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
TransactionContextTest.java 33 TransactionContext context = new TransactionContext(false); local
34 context.markRawContactDirtyAndChanged(1L, false);
35 context.rawContactUpdated(1L);
36 context.rawContactInserted(1L, 1L);
37 context.syncStateUpdated(1L, new Object());
39 context.clearExceptSearchIndexUpdates();
41 Set<Long> newDirty = context.getDirtyRawContactIds();
42 Set<Long> newChanged = context.getChangedRawContactIds();
43 Set<Long> newInserted = context.getInsertedRawContactIds();
44 Set<Long> newUpdated = context.getUpdatedRawContactIds()
55 TransactionContext context = new TransactionContext(false); local
64 TransactionContext context = new TransactionContext(false); local
73 TransactionContext context = new TransactionContext(false); local
86 TransactionContext context = new TransactionContext(false); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/
AndroidXmlFormatter.java 48 FormattingContext context = new FormattingContext(); local
49 context.setProperty(FormattingContextProperties.CONTEXT_DOCUMENT, Boolean.FALSE);
50 context.setProperty(FormattingContextProperties.CONTEXT_REGION, region);
52 format(document, context);
61 public void format(IDocument document, IFormattingContext context) {
62 context.setProperty(FormattingContextProperties.CONTEXT_MEDIUM, document);
63 formatMaster(context, document, 0, document.getLength());
66 protected void formatMaster(IFormattingContext context, IDocument document, int offset,
77 context.setProperty(FormattingContextProperties.CONTEXT_PARTITION,
79 strategy.formatterStarts(context);
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/PermissionPolicy25/src/com/android/cts/permission/policy/
PermissionPolicyTest25.java 21 import android.content.Context;
36 final Context context = InstrumentationRegistry.getInstrumentation().getContext(); local
37 final PackageInfo platformPackage = context.getPackageManager()
41 PermissionInfo permissionInfo = context.getPackageManager()
  /cts/hostsidetests/media/app/MediaSessionTest/src/android/media/session/cts/
MediaSessionManagerTest.java 25 import android.content.Context;
49 Context context = InstrumentationRegistry.getTargetContext(); local
50 mMediaSessionManager = (MediaSessionManager) context.getSystemService(
51 Context.MEDIA_SESSION_SERVICE);
52 mComponentName = new ComponentName(context, MediaSessionManagerTest.class);
  /cts/tests/app/src/android/app/cts/
AliasActivityTest.java 22 import android.content.Context;
37 Context context = getInstrumentation().getTargetContext(); local
40 intent.setClass(context, AliasActivityStub.class);
45 context.startActivity(intent);
WallpaperInfoTest.java 23 import android.content.Context;
41 Context context = InstrumentationRegistry.getTargetContext(); local
44 PackageManager pm = context.getPackageManager();
48 WallpaperInfo wallpaperInfo = new WallpaperInfo(context, info);
52 assertEquals("Context", wallpaperInfo.loadContextDescription(pm));
  /cts/tests/tests/opengl/src/android/opengl/cts/
EglSurfacesTest.java 69 EGLContext context = egl.eglCreateContext(display, config, local
80 egl.eglDestroyContext(display, context);
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
ContactsContract_QuickContactsTest.java 20 import android.content.Context;
47 Context context = new ContextWrapper(getInstrumentation().getContext()) { local
74 ContactsContract.QuickContact.showQuickContact(context, new View(context),
76 ContactsContract.QuickContact.showQuickContact(context, (Rect) null,
  /cts/tests/tests/selinux/selinuxTargetSdk27/src/android/security/
SELinuxTargetSdkTest.java 35 * Verify that selinux context is the expected domain based on
39 String context = "u:r:untrusted_app_27:s0:c[0-9]+,c[0-9]+"; local
43 "to the app's selinux context.\n" +
46 appDomainContext(context, msg);
50 * Verify that selinux context is the expected type based on
54 String context = "u:object_r:app_data_file:s0:c[0-9]+,c[0-9]+"; local
56 "must use the app_data_file selinux context and use the levelFrom=all " +
58 "to the app_data_file context.\n" +
61 appDataContext(context, msg);
  /cts/tests/tests/selinux/selinuxTargetSdkCurrent/src/android/security/
SELinuxTargetSdkTest.java 35 * Verify that selinux context is the expected domain based on
39 String context = "u:r:untrusted_app:s0:c[0-9]+,c[0-9]+,c[0-9]+,c[0-9]+"; local
43 "to the app's selinux context.\n" +
46 appDomainContext(context, msg);
50 * Verify that selinux context is the expected type based on
54 String context = "u:object_r:app_data_file:s0:c[0-9]+,c[0-9]+,c[0-9]+,c[0-9]+"; local
56 "must use the app_data_file selinux context and use the levelFrom=all " +
58 "to the app_data_file context.\n" +
61 appDataContext(context, msg);
  /cts/tests/tests/text/src/android/text/cts/
ClipboardManagerTest.java 23 import android.content.Context;
41 final Context context = InstrumentationRegistry.getTargetContext(); local
42 mClipboardManager = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE);
  /cts/tests/tests/text/src/android/text/format/cts/
FormatterTest.java 21 import android.content.Context;
41 // test null Context
48 final Context context = local
52 assertEquals("0 B", Formatter.formatFileSize(context, 0));
53 assertEquals("1 B", Formatter.formatFileSize(context, 1));
54 assertEquals("9 B", Formatter.formatFileSize(context, 9));
55 assertEquals("10 B", Formatter.formatFileSize(context, 10));
56 assertEquals("99 B", Formatter.formatFileSize(context, 99));
57 assertEquals("100 B", Formatter.formatFileSize(context, 100))
88 final Context context = local
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
ButtonTest.java 19 import android.content.Context;
36 Context context = InstrumentationRegistry.getTargetContext(); local
37 XmlPullParser parser = context.getResources().getXml(R.layout.togglebutton_layout);
40 new Button(context, attrs, 0);
41 new Button(context, attrs);
42 new Button(context);
Gallery_LayoutParamsTest.java 19 import android.content.Context;
42 Context context = InstrumentationRegistry.getTargetContext(); local
43 XmlResourceParser p = context.getResources().getLayout(R.layout.gallery_test);
45 new Gallery.LayoutParams(context, p);
LinearLayout_LayoutParamsTest.java 22 import android.content.Context;
44 final Context context = InstrumentationRegistry.getTargetContext(); local
45 XmlResourceParser p = context.getResources().getLayout(R.layout.linearlayout_layout2);
49 new LinearLayout.LayoutParams(context, p);
  /dalvik/dexgen/src/com/android/dexgen/util/
ExceptionWithContext.java 23 * Exception which carries around structured context.
27 /** {@code non-null;} human-oriented context of the exception */
28 private StringBuffer context; field in class:ExceptionWithContext
31 * Augments the given exception with the given context, and return the
37 * @param str {@code non-null;} context to add
83 String ctx = ((ExceptionWithContext) cause).context.toString();
84 context = new StringBuffer(ctx.length() + 200);
85 context.append(ctx);
87 context = new StringBuffer(200);
95 out.println(context);
    [all...]
  /dalvik/dx/src/com/android/dex/util/
ExceptionWithContext.java 23 * Exception which carries around structured context.
26 /** {@code non-null;} human-oriented context of the exception */
27 private StringBuffer context; field in class:ExceptionWithContext
30 * Augments the given exception with the given context, and return the
36 * @param str {@code non-null;} context to add
82 String ctx = ((ExceptionWithContext) cause).context.toString();
83 context = new StringBuffer(ctx.length() + 200);
84 context.append(ctx);
86 context = new StringBuffer(200);
94 out.println(context);
    [all...]
  /developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
ListsItem.java 19 import android.content.Context;
35 public void launchActivity(Context context) {
36 context.startActivity(new Intent(context, mClass));
  /developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
ListsItem.java 19 import android.content.Context;
35 public void launchActivity(Context context) {
36 context.startActivity(new Intent(context, mClass));
  /development/samples/ApiDemos/src/com/example/android/apis/content/
ResourcesSample.java 24 import android.content.Context;
34 * Each context has a resources object that you can access. Additionally,
35 * the Context class (an Activity is a Context) has a getString convenience
53 // ====== Using the Context.getString() convenience method ===========
72 // In this case it's just 'this' since Activity is a context.
73 Context context = this; local
75 // Get the Resources object from our context
76 Resources res = context.getResources()
    [all...]
  /development/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/
MyMain.java 19 import android.content.Context;
29 final Context context = getApplicationContext(); local
34 return MyAuthenticator.setUpAccount(context);
39 Toast.makeText(context,
  /external/apache-xml/src/main/java/org/apache/xpath/functions/
FuncNamespace.java 39 * @param xctxt The current execution context.
47 int context = getArg0AsNode(xctxt); local
50 if(context != DTM.NULL)
52 DTM dtm = xctxt.getDTM(context);
53 int t = dtm.getNodeType(context);
56 s = dtm.getNamespaceURI(context);
64 s = dtm.getNodeName(context);
68 s = dtm.getNamespaceURI(context);
FuncQname.java 39 * @param xctxt The current execution context.
47 int context = getArg0AsNode(xctxt); local
50 if (DTM.NULL != context)
52 DTM dtm = xctxt.getDTM(context);
53 String qname = dtm.getNodeNameX(context);

Completed in 859 milliseconds

1 2 3 4 5 6 7 891011>>