HomeSort by relevance Sort by last modified time
    Searched refs:mContext (Results 26 - 50 of 4082) sorted by null

12 3 4 5 6 7 8 91011>>

  /cts/tests/tests/view/src/android/view/cts/
OrientationListenerTest.java 36 private Context mContext;
40 mContext = InstrumentationRegistry.getTargetContext();
45 new MockOrientationListener(mContext);
47 new MockOrientationListener(mContext, SensorManager.SENSOR_DELAY_UI);
53 MockOrientationListener listener = new MockOrientationListener(mContext);
61 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ACCELEROMETER,
64 new MockOrientationListener(mContext).onAccuracyChanged(SensorManager.SENSOR_ORIENTATION,
71 MockOrientationListener listener = new MockOrientationListener(mContext);
76 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_ACCELEROMETER,
82 new MockOrientationListener(mContext).onSensorChanged(SensorManager.SENSOR_MAGNETIC_FIELD
    [all...]
OrientationEventListenerTest.java 39 private Context mContext;
43 mContext = InstrumentationRegistry.getTargetContext();
48 new MyOrientationEventListener(mContext);
50 new MyOrientationEventListener(mContext, SensorManager.SENSOR_DELAY_UI);
55 MyOrientationEventListener listener = new MyOrientationEventListener(mContext);
62 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE);
66 MyOrientationEventListener listener = new MyOrientationEventListener(mContext);
  /frameworks/base/core/java/com/android/internal/view/
ActionBarPolicy.java 32 private Context mContext;
39 mContext = context;
48 final Configuration config = mContext.getResources().getConfiguration();
70 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
74 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion;
76 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs);
81 final Configuration configuration = mContext.getResources().getConfiguration();
89 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
92 Resources r = mContext.getResources();
105 return mContext.getApplicationInfo().targetSdkVersion
    [all...]
  /frameworks/base/services/tests/notification/src/com/android/server/notification/
NotificationTestCase.java 27 public final TestableContext mContext =
31 return mContext;
  /packages/apps/Email/provider_src/com/android/email/service/
AccountService.java 38 private Context mContext;
44 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
51 VendorPolicyLoader.getInstance(mContext).useAlternateExchangeStrings());
62 EmailServiceUtils.startRemoteServices(mContext);
64 DebugUtils.updateLoggingFlags(mContext);
66 return Device.getDeviceId(mContext);
75 if (mContext == null) {
76 mContext = this;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
ByodFlowTestHelper.java 8 private Context mContext;
12 this.mContext = context;
13 this.mPackageManager = mContext.getPackageManager();
24 Utils.requestDeleteManagedProfile(mContext);
47 mPackageManager.setComponentEnabledSetting(new ComponentName(mContext, component),
  /cts/tests/tests/content/src/android/content/cts/
MutableContextWrapperTest.java 27 Context mContext;
33 mContext = getInstrumentation().getTargetContext();
38 mMutableContextWrapper = new MutableContextWrapper(mContext);
44 mMutableContextWrapper = new MutableContextWrapper(mContext);
45 assertTrue(mContext.equals(mMutableContextWrapper.getBaseContext()));
ContextTest.java 43 private Context mContext;
48 mContext = getContext();
49 mContext.setTheme(R.style.Test_Theme);
53 String testString = mContext.getString(R.string.context_test_string1);
56 testString = mContext.getString(R.string.context_test_string1, "expected");
59 testString = mContext.getString(R.string.context_test_string2);
64 testString = mContext.getString(0, "expected");
71 testString = mContext.getString(0);
78 CharSequence testCharSequence = mContext.getText(R.string.context_test_string2);
83 testCharSequence = mContext.getText(0)
    [all...]
  /external/swiftshader/src/OpenGL/compiler/
ValidateGlobalInitializer.cpp 33 const TParseContext *mContext;
40 const TSymbol *sym = mContext->symbolTable.find(node->getSymbol(), mContext->getShaderVersion());
55 if (mContext->getShaderVersion() >= 300)
72 mContext(context),
  /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...]
  /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
PrintSpoolerProvider.java 26 private final Context mContext;
32 mContext = context;
34 Intent intent = new Intent(mContext, PrintSpoolerService.class);
35 mContext.bindService(intent, this, 0);
44 mContext.unbindService(this);
  /packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DateTimeToggleLineItem.java 29 private Context mContext;
36 mContext = context;
44 mContext.getContentResolver(),
47 mContext.sendBroadcast(new Intent(Intent.ACTION_TIME_CHANGED));
52 return Settings.Global.getInt(mContext.getContentResolver(), mSettingString, 0) > 0;
  /packages/apps/Car/Settings/src/com/android/car/settings/system/
AboutSystemLineItem.java 32 private final Context mContext;
36 mContext = context;
41 return mContext.getString(R.string.about_summary, Build.VERSION.RELEASE);
51 Intent intent = new Intent(mContext, AboutSettingsActivity.class);
52 mContext.startActivity(intent);
  /frameworks/support/v7/appcompat/src/android/support/v7/view/
ActionBarPolicy.java 39 private Context mContext;
46 mContext = context;
55 final Configuration configuration = mContext.getResources().getConfiguration();
80 return !ViewConfiguration.get(mContext).hasPermanentMenuKey();
85 return mContext.getResources().getDisplayMetrics().widthPixels / 2;
89 return mContext.getResources().getBoolean(R.bool.abc_action_bar_embed_tabs);
93 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar,
96 Resources r = mContext.getResources();
109 return mContext.getApplicationInfo().targetSdkVersion <
114 return mContext.getResources().getDimensionPixelSize
    [all...]
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
NetworkTypeLoggerTest.java 48 @Mock private Context mContext;
61 mNetworkTypeLogger = new NetworkTypeLogger(mContext, mUtils, mMetricsLoggerWrapper);
67 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(null);
71 verify(mMetricsLoggerWrapper).logAction(mContext, PROVISIONING_NETWORK_TYPE,
78 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO);
80 when(mUtils.isConnectedToNetwork(mContext)).thenReturn(false);
84 verify(mMetricsLoggerWrapper).logAction(mContext, PROVISIONING_NETWORK_TYPE,
91 when(mUtils.getActiveNetworkInfo(mContext)).thenReturn(WIFI_NETWORK_INFO);
92 when(mUtils.isConnectedToNetwork(mContext)).thenReturn(true);
96 verify(mMetricsLoggerWrapper).logAction(mContext, PROVISIONING_NETWORK_TYPE, TYPE_WIFI)
    [all...]
  /frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
RSContinuousTest.java 37 private Context mContext;
45 mContext = mActivityRule.getActivity().getApplication().getApplicationContext();
51 UT_alloc test = new UT_alloc(null, mContext);
59 UT_array_alloc test = new UT_array_alloc(null, mContext);
67 UT_array_init test = new UT_array_init(null, mContext);
75 UT_atomic test = new UT_atomic(null, mContext);
83 UT_bug_char test = new UT_bug_char(null, mContext);
91 UT_check_dims test = new UT_check_dims(null, mContext);
99 UT_clamp test = new UT_clamp(null, mContext);
107 UT_clamp_relaxed test = new UT_clamp_relaxed(null, mContext);
    [all...]
  /hardware/intel/img/hwcomposer/moorefield_hdmi/ips/anniedale/
AnnRGBPlane.cpp 30 memset(&mContext, 0, sizeof(mContext));
75 return (void *)&mContext;
194 mContext.type = DC_SPRITE_PLANE;
196 mContext.type = DC_PRIMARY_PLANE;
206 mContext.ctx.sp_ctx.index = mIndex;
207 mContext.ctx.sp_ctx.pipe = mDevice;
208 mContext.ctx.sp_ctx.cntr = spriteFormat | 0x80000000;
209 mContext.ctx.sp_ctx.linoff = linoff;
210 mContext.ctx.sp_ctx.stride = stride
    [all...]
  /frameworks/base/core/tests/coretests/src/android/app/backup/
FullBackupTest.java 42 private Context mContext;
51 mContext = getContext();
63 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext);
72 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(),
82 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext);
88 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(),
99 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext);
105 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(),
110 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(),
128 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext);
    [all...]
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
NetworkMonitorTest.java 44 @Mock private Context mContext;
53 mNetworkMonitor = new NetworkMonitor(mContext, mUtils);
64 verify(mContext).registerReceiver(receiverCaptor.capture(), eq(NetworkMonitor.FILTER));
67 when(mUtils.isConnectedToWifi(mContext)).thenReturn(false);
68 receiverCaptor.getValue().onReceive(mContext,
75 when(mUtils.isConnectedToWifi(mContext)).thenReturn(true);
76 receiverCaptor.getValue().onReceive(mContext,
92 verify(mContext).registerReceiver(receiverCaptor.capture(), eq(NetworkMonitor.FILTER));
93 verify(mContext).unregisterReceiver(receiverCaptor.getValue());
96 when(mUtils.isConnectedToWifi(mContext)).thenReturn(false)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
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/telecom/src/android/telecom/cts/
DefaultDialerOperationsTest.java 36 private Context mContext;
45 mContext = getInstrumentation().getContext();
47 if (!TestUtils.shouldTestTelecom(mContext)) {
57 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE);
75 if (!TestUtils.shouldTestTelecom(mContext)) {
84 if (!TestUtils.shouldTestTelecom(mContext)) {
88 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null);
94 mContext.getContentResolver().delete(Voicemails.CONTENT_URI,
101 mContext.getContentResolver().update(
112 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null)
    [all...]
  /frameworks/support/compat/tests/java/android/support/v4/content/
ContextCompatTest.java 37 private Context mContext;
45 mContext = mActivityTestRule.getActivity();
51 ContextCompat.getColor(mContext, R.color.text_color));
57 ContextCompat.getColor(mContext, R.color.simple_themed_selector),
65 ContextCompat.getColorStateList(mContext, R.color.complex_unthemed_selector);
79 ContextCompat.getColorStateList(mContext, R.color.complex_themed_selector);
94 ContextCompat.getDrawable(mContext, R.drawable.test_drawable_red);
96 unthemedDrawable, mContext.getResources().getColor(R.color.test_red));
102 ContextCompat.getDrawable(mContext, R.drawable.themed_drawable);
111 mContext.getResources().getDisplayMetrics().densityDpi)
    [all...]
  /packages/apps/TV/src/com/android/tv/
TvOptionsManager.java 51 private final Context mContext;
65 mContext = context;
72 return mContext.getString(R.string.closed_caption_option_item_off);
76 return ((MainActivity) mContext).getTvViewUiManager()
78 ? DisplayMode.getLabel(mDisplayMode, mContext)
79 : DisplayMode.getLabel(DisplayMode.MODE_NORMAL, mContext);
81 return mContext.getString(
88 return mContext.getString(mPipSwap ? R.string.pip_options_item_swap_on
92 return mContext.getString(R.string.pip_options_item_sound_main);
94 return mContext.getString(R.string.pip_options_item_sound_pip_window)
    [all...]
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
FileCopyHelper.java 38 private Context mContext;
49 mContext = context;
63 InputStream source = mContext.getResources().openRawResource(resId);
64 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE);
67 return mContext.getFileStreamPath(fileName).getAbsolutePath();
71 InputStream source = mContext.getResources().openRawResource(resId);
97 mContext.deleteFile(path);
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/
HapticFeedbackController.java 23 private final Context mContext;
31 mContext = context;
35 mIsGloballyEnabled = checkGlobalSetting(mContext);
44 mVibrator = (Vibrator) mContext.getSystemService(Service.VIBRATOR_SERVICE);
47 mIsGloballyEnabled = checkGlobalSetting(mContext);
49 mContext.getContentResolver().registerContentObserver(uri, false, mContentObserver);
57 mContext.getContentResolver().unregisterContentObserver(mContentObserver);

Completed in 405 milliseconds

12 3 4 5 6 7 8 91011>>