HomeSort by relevance Sort by last modified time
    Searched refs:mContext (Results 1 - 25 of 1980) 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/compile/slang/
slang_rs_exportable.h 34 RSContext *mContext;
40 : mContext(Context),
53 inline bool isKeep() const { return (mContext == NULL); }
57 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)
  /frameworks/support/v4/java/android/support/v4/provider/
SingleDocumentFile.java 24 private Context mContext;
29 mContext = context;
50 return DocumentsContractApi19.getName(mContext, mUri);
55 return DocumentsContractApi19.getType(mContext, mUri);
60 return DocumentsContractApi19.isDirectory(mContext, mUri);
65 return DocumentsContractApi19.isFile(mContext, mUri);
70 return DocumentsContractApi19.lastModified(mContext, mUri);
75 return DocumentsContractApi19.length(mContext, mUri);
80 return DocumentsContractApi19.canRead(mContext, mUri);
85 return DocumentsContractApi19.canWrite(mContext, mUri)
    [all...]
TreeDocumentFile.java 23 private Context mContext;
28 mContext = context;
34 final Uri result = DocumentsContractApi21.createFile(mContext, mUri, mimeType, displayName);
35 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null;
40 final Uri result = DocumentsContractApi21.createDirectory(mContext, mUri, displayName);
41 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null;
51 return DocumentsContractApi19.getName(mContext, mUri);
56 return DocumentsContractApi19.getType(mContext, mUri);
61 return DocumentsContractApi19.isDirectory(mContext, mUri);
66 return DocumentsContractApi19.isFile(mContext, mUri)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
RadioButtonTest.java 32 private Context mContext;
37 mContext = getInstrumentation().getTargetContext();
41 AttributeSet attrs = mContext.getResources().getLayout(R.layout.radiogroup_1);
44 new RadioButton(mContext);
51 new RadioButton(mContext, attrs);
57 new RadioButton(mContext, null);
59 new RadioButton(mContext, attrs, 0);
65 new RadioButton(mContext, null, 0);
66 new RadioButton(mContext, attrs, Integer.MAX_VALUE);
67 new RadioButton(mContext, attrs, Integer.MIN_VALUE)
    [all...]
ZoomControlsTest.java 31 private Context mContext;
36 mContext = getInstrumentation().getContext();
41 new ZoomControls(mContext);
43 new ZoomControls(mContext, null);
48 ZoomControls zoomControls = new ZoomControls(mContext);
66 ZoomControls zoomControls = new ZoomControls(mContext);
78 ZoomControls zoomControls = new ZoomControls(mContext);
91 final ZoomControls zoomControls = new ZoomControls(mContext);
103 ZoomControls zoomControls = new ZoomControls(mContext);
110 ZoomControls zoomControls = new ZoomControls(mContext);
    [all...]
  /frameworks/base/core/java/com/android/internal/view/
ActionBarPolicy.java 31 private Context mContext;
38 mContext = context;
42 return mContext.getResources().getInteger(R.integer.max_action_buttons);
50 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
54 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
56 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
61 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs_pre_jb);
65 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
68 Resources r = mContext.getResources();
81 return mContext.getApplicationInfo().targetSdkVersion
    [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);
  /hardware/intel/img/hwcomposer/ips/anniedale/
AnnRGBPlane.cpp 30 memset(&mContext, 0, sizeof(mContext));
75 return (void *)&mContext;
185 mContext.type = DC_SPRITE_PLANE;
187 mContext.type = DC_PRIMARY_PLANE;
197 mContext.ctx.sp_ctx.index = mIndex;
198 mContext.ctx.sp_ctx.pipe = mDevice;
199 mContext.ctx.sp_ctx.cntr = spriteFormat | 0x80000000;
200 mContext.ctx.sp_ctx.linoff = linoff;
201 mContext.ctx.sp_ctx.stride = stride
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
RotationLockControllerImpl.java 28 private final Context mContext;
41 mContext = context;
55 return RotationPolicy.getRotationLockOrientation(mContext);
59 return RotationPolicy.isRotationLocked(mContext);
63 RotationPolicy.setRotationLock(mContext, locked);
67 return RotationPolicy.isRotationLockToggleVisible(mContext);
73 RotationPolicy.registerRotationPolicyListener(mContext, mRotationPolicyListener,
76 RotationPolicy.unregisterRotationPolicyListener(mContext, mRotationPolicyListener);
87 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext),
88 RotationPolicy.isRotationLockToggleVisible(mContext));
    [all...]
  /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...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
GlobalSetting.java 28 private final Context mContext;
35 mContext = context;
40 return Global.getInt(mContext.getContentResolver(), mSettingName, 0);
44 Global.putInt(mContext.getContentResolver(), mSettingName, value);
50 mContext.getContentResolver().registerContentObserver(
53 mContext.getContentResolver().unregisterContentObserver(this);
  /frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
ActionBarPolicy.java 35 private Context mContext;
42 mContext = context;
46 return mContext.getResources().getInteger(R.integer.abc_max_action_buttons);
53 return !ViewConfigurationCompat.hasPermanentMenuKey(ViewConfiguration.get(mContext));
58 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
62 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
64 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs);
69 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs_pre_jb);
73 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
76 Resources r = mContext.getResources()
    [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));
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/
PreferenceUtils.java 28 private final Context mContext;
31 mContext = context;
35 return Settings.Global.getInt(mContext.getContentResolver(),
40 Settings.Global.putInt(mContext.getContentResolver(),
  /packages/services/Telephony/src/com/android/services/telephony/
TelephonyGlobals.java 37 private final Context mContext;
47 mContext = context.getApplicationContext();
61 mTtyManager = new TtyManager(mContext, phone);
64 TelecomAccountRegistry.getInstance(mContext).setupOnBoot();
  /cts/tests/tests/app/src/android/app/cts/
ServiceTest.java 43 private Context mContext;
140 mContext.startService(new Intent(service).putExtras(bundle));
143 mContext.startService(new Intent(service).putExtras(bundle));
148 mContext.stopService(service);
152 mContext.stopService(service);
179 mContext.bindService(service, conn, 0);
180 mContext.startService(service);
184 mContext.bindService(service, conn2, 0);
187 mContext.unbindService(conn2);
191 mContext.unbindService(conn)
    [all...]
  /external/conscrypt/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/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...]
  /frameworks/base/services/core/java/com/android/server/am/
LockTaskNotify.java 34 private final Context mContext;
40 mContext = context;
42 mContext.getSystemService(Context.ACCESSIBILITY_SERVICE);
51 String text = mContext.getString(isLocked
54 text = mContext.getString(R.string.lock_to_app_toast_accessible);
59 mLastToast = Toast.makeText(mContext, text, Toast.LENGTH_LONG);
68 Toast.makeText(mContext, mContext.getString(showString), Toast.LENGTH_LONG).show();

Completed in 851 milliseconds

1 2 3 4 5 6 7 8 91011>>