HomeSort by relevance Sort by last modified time
    Searched refs:mContext (Results 1 - 25 of 1619) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/tests/app/src/android/app/backup/cts/
FileBackupHelperTest.java 25 new FileBackupHelper(mContext);
26 new FileBackupHelper(mContext, "test-file-1");
27 new FileBackupHelper(mContext, "test-file-1", "test-file-2");
SharedPreferencesBackupHelperTest.java 25 new SharedPreferencesBackupHelper(mContext);
26 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1");
27 new SharedPreferencesBackupHelper(mContext, "test-prefs-group-1", "test-prefs-group-2");
  /frameworks/base/tests/CoreTests/android/core/
ProxyTest.java 29 private Context mContext;
36 mContext = getContext();
38 String proxyHost = Proxy.getHost(mContext);
39 int proxyPort = Proxy.getPort(mContext);
54 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, null));
55 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, ""));
56 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:"));
57 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad"));
58 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:\\"));
59 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad://#"))
    [all...]
  /frameworks/base/media/mca/filterfw/java/android/filterfw/
MffEnvironment.java 34 private FilterContext mContext;
50 mContext = new FilterContext();
51 mContext.setFrameManager(frameManager);
59 return mContext;
67 mContext.initGLEnvironment(glEnvironment);
85 GLEnvironment glEnv = mContext.getGLEnvironment();
87 mContext.getGLEnvironment().activate();
99 GLEnvironment glEnv = mContext.getGLEnvironment();
101 mContext.getGLEnvironment().deactivate();
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
RotationLockController.java 27 private final Context mContext;
44 mContext = context;
46 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
47 RotationPolicy.registerRotationPolicyListener(mContext,
57 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
58 return RotationPolicy.isRotationLocked(mContext);
64 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
65 RotationPolicy.setRotationLock(mContext, locked);
70 if (RotationPolicy.isRotationLockToggleSupported(mContext)) {
71 return RotationPolicy.isRotationLockToggleVisible(mContext);
    [all...]
  /frameworks/compile/slang/
slang_rs_exportable.h 34 RSContext *mContext;
40 : mContext(Context),
54 inline bool isKeep() const { return (mContext == NULL); }
58 inline RSContext *getRSContext() const { return mContext; }
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
TextAppearanceFactory.java 26 private final Context mContext;
29 mContext = context;
34 new TextAppearanceSpan(mContext, R.style.SuggestionText1_Query)
40 new TextAppearanceSpan(mContext, R.style.SuggestionText1_Suggested)
Config.java 77 private final Context mContext;
86 mContext = context;
90 return mContext;
103 String[] items = mContext.getResources().getStringArray(res);
122 return mContext.getResources().getInteger(R.integer.num_suggestions_above_keyboard);
129 return mContext.getResources().getInteger(R.integer.max_promoted_suggestions);
133 return mContext.getResources().getInteger(R.integer.max_promoted_results);
147 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_web_source);
154 return mContext.getResources().getInteger(R.integer.max_shortcuts_per_non_web_source);
268 return mContext.getResources().getBoolean(R.bool.show_zero_query_suggestions)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
RadioButtonTest.java 31 private Context mContext;
36 mContext = getInstrumentation().getTargetContext();
40 AttributeSet attrs = mContext.getResources().getLayout(R.layout.radiogroup_1);
43 new RadioButton(mContext);
50 new RadioButton(mContext, attrs);
56 new RadioButton(mContext, null);
58 new RadioButton(mContext, attrs, 0);
64 new RadioButton(mContext, null, 0);
65 new RadioButton(mContext, attrs, Integer.MAX_VALUE);
66 new RadioButton(mContext, attrs, Integer.MIN_VALUE)
    [all...]
ZoomControlsTest.java 31 private Context mContext;
36 mContext = getInstrumentation().getContext();
40 new ZoomControls(mContext);
42 new ZoomControls(mContext, null);
46 ZoomControls zoomControls = new ZoomControls(mContext);
63 ZoomControls zoomControls = new ZoomControls(mContext);
74 ZoomControls zoomControls = new ZoomControls(mContext);
86 final ZoomControls zoomControls = new ZoomControls(mContext);
97 ZoomControls zoomControls = new ZoomControls(mContext);
103 ZoomControls zoomControls = new ZoomControls(mContext);
    [all...]
  /frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
MediaPlayerDataSource.java 37 private final Context mContext;
42 mContext = context;
48 mContext = null;
54 if (mContext != null) {
55 mediaPlayer.setDataSource(mContext, mUri);
62 if (mContext != null) {
63 VariableSpeedNative.playFromContext(mContext, mUri);
  /packages/apps/Email/tests/src/com/android/email/
ControllerProviderOpsTests.java 43 private Context mContext;
53 mContext = getContext();
68 Mailbox.getSystemMailboxName(mContext, -1);
69 fail("Mailbox.getSystemMailboxName(mContext, -1) succeeded without an exception");
74 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX));
75 assertEquals("Outbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_OUTBOX));
76 assertEquals("Trash", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_TRASH));
77 assertEquals("Sent", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_SENT));
78 assertEquals("Junk", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_JUNK));
83 assertEquals("Inbox", Mailbox.getSystemMailboxName(mContext, Mailbox.TYPE_INBOX))
    [all...]
  /external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/identity/
UuidBasedUniqueIdentificationGeneratorTest.java 18 private AdvancedMockContext mContext;
23 mContext = new AdvancedMockContext(getInstrumentation().getTargetContext());
31 TestGenerator generator = new TestGenerator(mContext, preferenceKey, expectedUniqueId);
37 mContext.clearFlag(FLAG_UUID);
39 assertFalse(mContext.isFlagSet(FLAG_UUID));
43 mContext.clearFlag(FLAG_UUID);
44 generator = new TestGenerator(mContext, preferenceKey, null);
46 assertFalse(mContext.isFlagSet(FLAG_UUID));
56 TestGenerator generator1 = new TestGenerator(mContext, preferenceKey1, expectedUniqueId1);
57 TestGenerator generator2 = new TestGenerator(mContext, preferenceKey2, expectedUniqueId2)
    [all...]
  /cts/tests/tests/text/src/android/text/format/cts/
FormatterTest.java 35 assertEquals("0.00B", Formatter.formatFileSize(mContext, 0));
37 assertEquals("899B", Formatter.formatFileSize(mContext, 899));
39 assertEquals("1.00KB", Formatter.formatFileSize(mContext, bd.pow(1).longValue()));
41 assertEquals("1.00MB", Formatter.formatFileSize(mContext, bd.pow(2).longValue()));
43 assertEquals("1.00GB", Formatter.formatFileSize(mContext, bd.pow(3).longValue()));
45 assertEquals("1.00TB", Formatter.formatFileSize(mContext, bd.pow(4).longValue()));
47 assertEquals("1.00PB", Formatter.formatFileSize(mContext, bd.pow(5).longValue()));
49 assertEquals("1024PB", Formatter.formatFileSize(mContext, bd.pow(6).longValue()));
52 assertEquals("-1.00B", Formatter.formatFileSize(mContext, -1));
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
ActionBarPolicy.java 33 private Context mContext;
40 mContext = context;
44 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons);
53 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
59 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb);
63 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
66 Resources r = mContext.getResources();
79 return mContext.getApplicationInfo().targetSdkVersion < 14; // ICE_CREAM_SANDWICH
83 return mContext.getResources().getDimensionPixelSize(
  /libcore/crypto/src/main/java/org/conscrypt/
OpenSSLX509CRLEntry.java 31 private final long mContext;
34 mContext = ctx;
40 NativeCrypto.get_X509_REVOKED_ext_oids(mContext,
49 && (NativeCrypto.get_X509_REVOKED_ext_oids(mContext,
59 return NativeCrypto.X509_REVOKED_get_ext_oid(mContext, oid);
65 NativeCrypto.get_X509_REVOKED_ext_oids(mContext,
74 && (NativeCrypto.get_X509_REVOKED_ext_oids(mContext,
85 NativeCrypto.get_X509_REVOKED_ext_oids(mContext,
88 final long extensionRef = NativeCrypto.X509_REVOKED_get_ext(mContext, oid);
99 return NativeCrypto.i2d_X509_REVOKED(mContext);
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
ServiceTest.java 44 private Context mContext;
137 mContext.startService(new Intent(service).putExtras(bundle));
140 mContext.startService(new Intent(service).putExtras(bundle));
145 mContext.stopService(service);
149 mContext.stopService(service);
155 mContext.startService(service);
185 mContext.bindService(service, conn, 0);
186 mContext.startService(service);
190 mContext.bindService(service, conn2, 0);
193 mContext.unbindService(conn2)
    [all...]
  /cts/tests/tests/view/src/android/view/cts/
OrientationListenerTest.java 29 private Context mContext;
34 mContext = getContext();
38 new MockOrientationListener(mContext);
40 new MockOrientationListener(mContext, SensorManager.SENSOR_DELAY_UI);
45 MockOrientationListener listener = new MockOrientationListener(mContext);
52 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ACCELEROMETER,
55 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ORIENTATION,
61 MockOrientationListener listener = new MockOrientationListener(mContext);
66 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_ACCELEROMETER,
73 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_MAGNETIC_FIELD
    [all...]
OrientationEventListenerTest.java 31 new MockOrientationEventListener(mContext);
33 new MockOrientationEventListener(mContext, SensorManager.SENSOR_DELAY_UI);
37 MockOrientationEventListener listener = new MockOrientationEventListener(mContext);
43 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE);
47 MockOrientationEventListener listener = new MockOrientationEventListener(mContext);
  /frameworks/base/core/java/com/android/internal/view/
ActionBarPolicy.java 33 private Context mContext;
40 mContext = context;
44 return mContext.getResources().getInteger(R.integer.max_action_buttons);
52 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
56 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
58 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
63 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb);
67 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
70 Resources r = mContext.getResources();
83 return mContext.getApplicationInfo().targetSdkVersion
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ContextTest.java 37 private Context mContext;
42 mContext = getContext();
43 mContext.setTheme(R.style.Test_Theme);
47 String testString = mContext.getString(R.string.context_test_string1);
50 testString = mContext.getString(R.string.context_test_string1, "expected");
53 testString = mContext.getString(R.string.context_test_string2);
58 testString = mContext.getString(0, "expected");
65 testString = mContext.getString(0);
72 CharSequence testCharSequence = mContext.getText(R.string.context_test_string2);
77 testCharSequence = mContext.getText(0)
    [all...]
MutableContextWrapperTest.java 27 Context mContext;
33 mContext = getContext();
38 mMutableContextWrapper = new MutableContextWrapper(mContext);
43 mMutableContextWrapper = new MutableContextWrapper(mContext);
44 assertTrue(mContext.equals(mMutableContextWrapper.getBaseContext()));
  /frameworks/base/core/tests/coretests/src/android/view/
CreateViewTest.java 41 new CreateViewTest.ViewOne(mContext);
46 LinearLayout vert = new LinearLayout(mContext);
47 vert.addView(new CreateViewTest.ViewOne(mContext),
53 LinearLayout vert = new LinearLayout(mContext);
55 ViewOne one = new ViewOne(mContext);
58 ViewOne two = new ViewOne(mContext);
61 ViewOne three = new ViewOne(mContext);
64 ViewOne four = new ViewOne(mContext);
67 ViewOne five = new ViewOne(mContext);
70 ViewOne six = new ViewOne(mContext);
    [all...]
  /packages/apps/Email/src/com/android/email/service/
AccountService.java 39 private Context mContext;
45 NotificationController nc = NotificationController.getInstance(mContext);
51 NotificationController.getInstance(mContext).cancelLoginFailedNotification(accountId);
61 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
68 VendorPolicyLoader.getInstance(mContext).useAlternateExchangeStrings());
79 EmailServiceUtils.startRemoteServices(mContext);
81 MailActivityEmail.updateLoggingFlags(mContext);
83 return Device.getDeviceId(mContext);
92 if (mContext == null) {
93 mContext = this
    [all...]
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/invalidation/
InvalidationController.java 34 private final Context mContext;
46 registerIntent.setClass(mContext, InvalidationService.class);
47 mContext.startService(registerIntent);
58 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext);
75 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext);
80 registerIntent.setClass(mContext, InvalidationService.class);
81 mContext.startService(registerIntent);
88 Intent intent = new Intent(mContext, InvalidationService.class);
89 mContext.startService(intent);
96 Intent intent = new Intent(mContext, InvalidationService.class)
    [all...]

Completed in 2307 milliseconds

1 2 3 4 5 6 7 8 91011>>