/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 124 private DpmMockContext mContext; field in DevicePolicyManagerTest 160 mContext = getContext(); in setUp() 161 when(mContext.packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp() 165 when(mContext.userManager.isUserUnlocked(anyInt())).thenReturn(true); in setUp() 185 final long ident = mContext.binder.clearCallingIdentity(); in initializeDpms() 189 dpms = new DevicePolicyManagerServiceTestable(mContext, dataDir); in initializeDpms() 194 dpm = new DevicePolicyManagerTestable(mContext, dpms); in initializeDpms() 196 mContext.binder.restoreCallingIdentity(ident); in initializeDpms() 216 }).when(mContext.userManager).setApplicationRestrictions( in setUpUserManager() 228 }).when(mContext.userManager).getApplicationRestrictions( in setUpUserManager() [all …]
|
/frameworks/support/core-utils/java/android/support/v4/provider/ |
D | TreeDocumentFile.java | 25 private Context mContext; field in TreeDocumentFile 30 mContext = context; in TreeDocumentFile() 36 final Uri result = DocumentsContractApi21.createFile(mContext, mUri, mimeType, displayName); in createFile() 37 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null; in createFile() 42 final Uri result = DocumentsContractApi21.createDirectory(mContext, mUri, displayName); in createDirectory() 43 return (result != null) ? new TreeDocumentFile(this, mContext, result) : null; in createDirectory() 53 return DocumentsContractApi19.getName(mContext, mUri); in getName() 58 return DocumentsContractApi19.getType(mContext, mUri); in getType() 63 return DocumentsContractApi19.isDirectory(mContext, mUri); in isDirectory() 68 return DocumentsContractApi19.isFile(mContext, mUri); in isFile() [all …]
|
D | SingleDocumentFile.java | 25 private Context mContext; field in SingleDocumentFile 30 mContext = context; in SingleDocumentFile() 51 return DocumentsContractApi19.getName(mContext, mUri); in getName() 56 return DocumentsContractApi19.getType(mContext, mUri); in getType() 61 return DocumentsContractApi19.isDirectory(mContext, mUri); in isDirectory() 66 return DocumentsContractApi19.isFile(mContext, mUri); in isFile() 71 return DocumentsContractApi19.isVirtual(mContext, mUri); in isVirtual() 76 return DocumentsContractApi19.lastModified(mContext, mUri); in lastModified() 81 return DocumentsContractApi19.length(mContext, mUri); in length() 86 return DocumentsContractApi19.canRead(mContext, mUri); in canRead() [all …]
|
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | RSContinuousTest.java | 37 private Context mContext; field in RSContinuousTest 45 mContext = mActivityRule.getActivity().getApplication().getApplicationContext(); in before() 51 UT_alloc test = new UT_alloc(null, mContext); in test_UT_alloc() 59 UT_array_alloc test = new UT_array_alloc(null, mContext); in test_UT_array_alloc() 67 UT_array_init test = new UT_array_init(null, mContext); in test_UT_array_init() 75 UT_atomic test = new UT_atomic(null, mContext); in test_UT_atomic() 83 UT_bug_char test = new UT_bug_char(null, mContext); in test_UT_bug_char() 91 UT_check_dims test = new UT_check_dims(null, mContext); in test_UT_check_dims() 99 UT_clamp test = new UT_clamp(null, mContext); in test_UT_clamp() 107 UT_clamp_relaxed test = new UT_clamp_relaxed(null, mContext); in test_UT_clamp_relaxed() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | CreateViewTest.java | 41 new CreateViewTest.ViewOne(mContext); in testLayout1() 46 LinearLayout vert = new LinearLayout(mContext); in testLayout2() 47 vert.addView(new CreateViewTest.ViewOne(mContext), in testLayout2() 53 LinearLayout vert = new LinearLayout(mContext); in testLayout3() 55 ViewOne one = new ViewOne(mContext); in testLayout3() 58 ViewOne two = new ViewOne(mContext); in testLayout3() 61 ViewOne three = new ViewOne(mContext); in testLayout3() 64 ViewOne four = new ViewOne(mContext); in testLayout3() 67 ViewOne five = new ViewOne(mContext); in testLayout3() 70 ViewOne six = new ViewOne(mContext); in testLayout3() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 234 isMetered(mContext, 1, isRoaming)); in testIsMetered() 238 isMetered(mContext, 1, isRoaming)); in testIsMetered() 242 isMetered(mContext, 1, isRoaming)); in testIsMetered() 246 isMetered(mContext, 1, isRoaming)); in testIsMetered() 250 isMetered(mContext, 1, isRoaming)); in testIsMetered() 254 isMetered(mContext, 1, isRoaming)); in testIsMetered() 258 isMetered(mContext, 1, isRoaming)); in testIsMetered() 262 isMetered(mContext, 1, isRoaming)); in testIsMetered() 265 mContext, 1, isRoaming)); in testIsMetered() 267 mContext, 1, isRoaming)); in testIsMetered() [all …]
|
/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
D | FileProviderTest.java | 61 private Context mContext; field in FileProviderTest 65 mContext = InstrumentationRegistry.getTargetContext(); in setup() 66 mResolver = mContext.getContentResolver(); in setup() 72 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriSimple() 74 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriSimple() 78 file = buildPath(mContext.getFilesDir(), "subdir", "file.test"); in testStrategyUriSimple() 93 strat.addRoot("tag", mContext.getFilesDir()); in testStrategyUriJumpOutside() 95 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); in testStrategyUriJumpOutside() 106 strat.addRoot("tag1", mContext.getFilesDir()); in testStrategyUriShortestRoot() 109 File file = buildPath(mContext.getFilesDir(), "file.test"); in testStrategyUriShortestRoot() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
D | FullBackupTest.java | 42 private Context mContext; field in FullBackupTest 51 mContext = getContext(); in setUp() 63 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyInclude() 72 new File(mContext.getFilesDir(), "onlyInclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyInclude() 82 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_onlyExclude() 88 new File(mContext.getFilesDir(), "onlyExclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_onlyExclude() 99 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_includeAndExclude() 105 new File(mContext.getFilesDir(), "include.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude() 110 new File(mContext.getFilesDir(), "exclude.txt").getCanonicalPath(), in testparseBackupSchemeFromXml_includeAndExclude() 128 FullBackup.BackupScheme bs = FullBackup.getBackupSchemeForTest(mContext); in testparseBackupSchemeFromXml_lotsOfIncludesAndExcludes() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiNotificationControllerTest.java | 58 @Mock private Context mContext; field in WifiNotificationControllerTest 77 when(mContext.getSystemService(Context.NOTIFICATION_SERVICE)) in setUp() 80 when(mFrameworkFacade.getIntegerSetting(mContext, in setUp() 83 when(mContext.getSystemService(Context.USER_SERVICE)) in setUp() 85 when(mContext.getResources()).thenReturn(mResources); in setUp() 91 mContext, mock_looper.getLooper(), mFrameworkFacade, in setUp() 96 verify(mContext) in setUp() 112 TestUtil.sendWifiStateChanged(mBroadcastReceiver, mContext, WifiManager.WIFI_STATE_ENABLED); in verifyNotificationDisplayed() 113 TestUtil.sendNetworkStateChanged(mBroadcastReceiver, mContext, in verifyNotificationDisplayed() 118 TestUtil.sendScanResultsAvailable(mBroadcastReceiver, mContext); in verifyNotificationDisplayed() [all …]
|
/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/ |
D | PreferenceParentGroupTest.java | 40 private Context mContext; field in PreferenceParentGroupTest 44 mContext = InstrumentationRegistry.getTargetContext(); in setup() 54 PreferenceManager manager = new PreferenceManager(mContext); in parentAddRemoveTest() 56 PreferenceScreen screen = manager.createPreferenceScreen(mContext); in parentAddRemoveTest() 59 PreferenceCategory category = new PreferenceCategory(mContext); in parentAddRemoveTest() 62 CheckBoxPreference pref = new CheckBoxPreference(mContext); in parentAddRemoveTest() 84 PreferenceManager manager = new PreferenceManager(mContext); in parentReassignTest() 86 PreferenceScreen screen = manager.createPreferenceScreen(mContext); in parentReassignTest() 88 PreferenceCategory category1 = new PreferenceCategory(mContext); in parentReassignTest() 90 PreferenceCategory category2 = new PreferenceCategory(mContext); in parentReassignTest() [all …]
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | NotificationComparatorTest.java | 54 @Mock Context mContext; field in NotificationComparatorTest 85 when(mContext.getResources()).thenReturn(getContext().getResources()); in setUp() 86 when(mContext.getContentResolver()).thenReturn(getContext().getContentResolver()); in setUp() 87 when(mContext.getPackageManager()).thenReturn(mPm); in setUp() 88 when(mContext.getSystemService(eq(Context.TELECOM_SERVICE))).thenReturn(mTm); in setUp() 94 when(mContext.getApplicationInfo()).thenReturn(legacy); in setUp() 99 smsPkg = Settings.Secure.getString(mContext.getContentResolver(), in setUp() 102 Notification n1 = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp() 106 mRecordMinCall = new NotificationRecord(mContext, new StatusBarNotification(callPkg, in setUp() 111 Notification n2 = new Notification.Builder(mContext, TEST_CHANNEL_ID) in setUp() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | RenderScript.java | 238 long curCon = mContext; in nContextDestroy() 240 mContext = 0; in nContextDestroy() 248 rsnContextSetSurface(mContext, w, h, sur); in nContextSetSurface() 253 rsnContextSetSurfaceTexture(mContext, w, h, sur); in nContextSetSurfaceTexture() 258 rsnContextSetPriority(mContext, p); in nContextSetPriority() 263 rsnContextSetCacheDir(mContext, cacheDir); in nContextSetCacheDir() 268 rsnContextDump(mContext, bits); in nContextDump() 273 rsnContextFinish(mContext); in nContextFinish() 279 rsnContextSendMessage(mContext, id, data); in nContextSendMessage() 285 rsnContextBindRootScript(mContext, script); in nContextBindRootScript() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/content/ |
D | ContextCompatTest.java | 37 private Context mContext; field in ContextCompatTest 45 mContext = mActivityTestRule.getActivity(); in setup() 51 ContextCompat.getColor(mContext, R.color.text_color)); in testGetColor() 57 ContextCompat.getColor(mContext, R.color.simple_themed_selector), in testGetColor() 65 ContextCompat.getColorStateList(mContext, R.color.complex_unthemed_selector); in testGetColorStateList() 79 ContextCompat.getColorStateList(mContext, R.color.complex_themed_selector); in testGetColorStateList() 94 ContextCompat.getDrawable(mContext, R.drawable.test_drawable_red); in testGetDrawable() 96 unthemedDrawable, mContext.getResources().getColor(R.color.test_red)); in testGetDrawable() 102 ContextCompat.getDrawable(mContext, R.drawable.themed_drawable); in testGetDrawable() 111 mContext.getResources().getDisplayMetrics().densityDpi); in testDrawableConfigurationWorkaround() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutManager.java | 586 private final Context mContext; field in ShortcutManager 593 mContext = context; in ShortcutManager() 622 return mService.setDynamicShortcuts(mContext.getPackageName(), in setDynamicShortcuts() 641 return mService.getDynamicShortcuts(mContext.getPackageName(), injectMyUserId()) in getDynamicShortcuts() 660 return mService.getManifestShortcuts(mContext.getPackageName(), injectMyUserId()) in getManifestShortcuts() 682 return mService.addDynamicShortcuts(mContext.getPackageName(), in addDynamicShortcuts() 696 mService.removeDynamicShortcuts(mContext.getPackageName(), shortcutIds, in removeDynamicShortcuts() 710 mService.removeAllDynamicShortcuts(mContext.getPackageName(), injectMyUserId()); in removeAllDynamicShortcuts() 728 return mService.getPinnedShortcuts(mContext.getPackageName(), injectMyUserId()) in getPinnedShortcuts() 749 return mService.updateShortcuts(mContext.getPackageName(), in updateShortcuts() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiInjector.java | 71 private final Context mContext; field in WifiInjector 142 mContext = context; in WifiInjector() 143 mUseRealLogger = mContext.getResources().getBoolean( in WifiInjector() 145 mSettingsStore = new WifiSettingsStore(mContext); in WifiInjector() 146 mWifiPermissionsWrapper = new WifiPermissionsWrapper(mContext); in WifiInjector() 147 mNetworkScoreManager = mContext.getSystemService(NetworkScoreManager.class); in WifiInjector() 148 mWifiNetworkScoreCache = new WifiNetworkScoreCache(mContext); in WifiInjector() 151 mWifiPermissionsUtil = new WifiPermissionsUtil(mWifiPermissionsWrapper, mContext, in WifiInjector() 152 mSettingsStore, UserManager.get(mContext), mNetworkScoreManager, this); in WifiInjector() 169 mSupplicantStaIfaceHal = new SupplicantStaIfaceHal(mContext, mWifiMonitor); in WifiInjector() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/ |
D | MffEnvironment.java | 34 private FilterContext mContext; field in MffEnvironment 50 mContext = new FilterContext(); in MffEnvironment() 51 mContext.setFrameManager(frameManager); in MffEnvironment() 59 return mContext; in getContext() 67 mContext.initGLEnvironment(glEnvironment); in setGLEnvironment() 85 GLEnvironment glEnv = mContext.getGLEnvironment(); in activateGLEnvironment() 87 mContext.getGLEnvironment().activate(); in activateGLEnvironment() 99 GLEnvironment glEnv = mContext.getGLEnvironment(); in deactivateGLEnvironment() 101 mContext.getGLEnvironment().deactivate(); in deactivateGLEnvironment()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RotationLockControllerImpl.java | 28 private final Context mContext; field in RotationLockControllerImpl 41 mContext = context; in RotationLockControllerImpl() 55 return RotationPolicy.getRotationLockOrientation(mContext); in getRotationLockOrientation() 59 return RotationPolicy.isRotationLocked(mContext); in isRotationLocked() 63 RotationPolicy.setRotationLock(mContext, locked); in setRotationLocked() 67 return RotationPolicy.isRotationLockToggleVisible(mContext); in isRotationLockAffordanceVisible() 73 RotationPolicy.registerRotationPolicyListener(mContext, mRotationPolicyListener, in setListening() 76 RotationPolicy.unregisterRotationPolicyListener(mContext, mRotationPolicyListener); in setListening() 87 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext), in notifyChanged() 88 RotationPolicy.isRotationLockToggleVisible(mContext)); in notifyChanged()
|
/frameworks/support/compat/tests/java/android/support/v4/content/pm/ |
D | ShortcutManagerCompatTest.java | 68 Context mContext; field in ShortcutManagerCompatTest 77 mContext = spy(mActivityTestRule.getActivity()); in setup() 78 mInfoCompat = new ShortcutInfoCompat.Builder(mContext, "test-id") in setup() 94 doReturn(mockShortcutManager).when(mContext).getSystemService(eq(Context.SHORTCUT_SERVICE)); in testIsRequestPinShortcutSupported_v26() 97 assertTrue(ShortcutManagerCompat.isRequestPinShortcutSupported(mContext)); in testIsRequestPinShortcutSupported_v26() 98 assertFalse(ShortcutManagerCompat.isRequestPinShortcutSupported(mContext)); in testIsRequestPinShortcutSupported_v26() 99 assertTrue(ShortcutManagerCompat.isRequestPinShortcutSupported(mContext)); in testIsRequestPinShortcutSupported_v26() 112 doReturn(mockShortcutManager).when(mContext).getSystemService(eq(Context.SHORTCUT_SERVICE)); in testRequestPinShortcut_v26() 116 assertTrue(ShortcutManagerCompat.requestPinShortcut(mContext, mInfoCompat, null)); in testRequestPinShortcut_v26() 132 doReturn(mockShortcutManager).when(mContext).getSystemService(eq(Context.SHORTCUT_SERVICE)); in testCreateShortcutResultIntent_v26() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSSecurityFooterTest.java | 71 mContext.addMockSystemService(Context.LAYOUT_INFLATER_SERVICE, in setUp() 72 new LayoutInflaterBuilder(mContext) in setUp() 76 h.post(() -> mFooter = new QSSecurityFooter(null, mContext)); in setUp() 100 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management), in testManagedNoOwnerName() 116 assertEquals(mContext.getString(R.string.quick_settings_disclosure_named_management, in testManagedOwnerName() 132 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_monitoring), in testNetworkLoggingEnabled() 144 assertEquals(mContext.getString( in testNetworkLoggingEnabled() 157 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_monitoring), in testManagedCACertsInstalled() 169 assertEquals(mContext.getString(R.string.quick_settings_disclosure_management_named_vpn, in testManagedOneVpnEnabled() 181 assertEquals(mContext.getString( in testManagedOneVpnEnabled() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 57 private Context mContext; field in AccessPointTest 63 mContext = InstrumentationRegistry.getTargetContext(); in setUp() 88 AccessPoint originalAccessPoint = new AccessPoint(mContext, configuration); in testCopyAccessPoint_dataShouldMatch() 93 AccessPoint copy = new AccessPoint(mContext, originalAccessPoint); in testCopyAccessPoint_dataShouldMatch() 107 AccessPoint copy = new AccessPoint(mContext, createWifiConfiguration()); in testThatCopyAccessPoint_scanCacheShouldMatch() 115 AccessPoint activeAp = new TestAccessPointBuilder(mContext).setActive(true).build(); in testCompareTo_GivesActiveBeforeInactive() 116 AccessPoint inactiveAp = new TestAccessPointBuilder(mContext).setActive(false).build(); in testCompareTo_GivesActiveBeforeInactive() 123 AccessPoint nearAp = new TestAccessPointBuilder(mContext).setReachable(true).build(); in testCompareTo_GivesReachableBeforeUnreachable() 124 AccessPoint farAp = new TestAccessPointBuilder(mContext).setReachable(false).build(); in testCompareTo_GivesReachableBeforeUnreachable() 131 AccessPoint savedAp = new TestAccessPointBuilder(mContext).setSaved(true).build(); in testCompareTo_GivesSavedBeforeUnsaved() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 159 mNotificationManager = mContext.getSystemService(NotificationManager.class); in start() 161 mStorageManager = mContext.getSystemService(StorageManager.class); in start() 164 mContext.registerReceiver(mSnoozeReceiver, new IntentFilter(ACTION_SNOOZE_VOLUME), in start() 166 mContext.registerReceiver(mFinishReceiver, new IntentFilter(ACTION_FINISH_WIZARD), in start() 180 mContext.getPackageManager().registerMoveCallback(mMoveCallback, new Handler()); in start() 204 final CharSequence title = mContext.getString(R.string.ext_media_missing_title, in updateMissingPrivateVolumes() 206 final CharSequence text = mContext.getString(R.string.ext_media_missing_message); in updateMissingPrivateVolumes() 209 new Notification.Builder(mContext, NotificationChannels.STORAGE) in updateMissingPrivateVolumes() 211 .setColor(mContext.getColor( in updateMissingPrivateVolumes() 222 SystemUI.overrideNotificationAppName(mContext, builder); in updateMissingPrivateVolumes() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | AccessibilityShortcutController.java | 59 private final Context mContext; field in AccessibilityShortcutController 80 mContext = context; in AccessibilityShortcutController() 91 mContext.getContentResolver().registerContentObserver( in AccessibilityShortcutController() 94 mContext.getContentResolver().registerContentObserver( in AccessibilityShortcutController() 97 mContext.getContentResolver().registerContentObserver( in AccessibilityShortcutController() 121 !TextUtils.isEmpty(getTargetServiceComponentNameString(mContext, mUserId)); in onSettingsChanged() 122 final ContentResolver cr = mContext.getContentResolver(); in onSettingsChanged() 135 final ContentResolver cr = mContext.getContentResolver(); in performAccessibilityShortcut() 142 RingtoneManager.getRingtone(mContext, Settings.System.DEFAULT_NOTIFICATION_URI); in performAccessibilityShortcut() 151 Vibrator vibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE); in performAccessibilityShortcut() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 32 private Context mContext; field in ActionBarPolicy 39 mContext = context; in ActionBarPolicy() 48 final Configuration config = mContext.getResources().getConfiguration(); in getMaxActionButtons() 70 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit() 74 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs() 76 return mContext.getResources().getBoolean(R.bool.action_bar_embed_tabs); in hasEmbeddedTabs() 81 final Configuration configuration = mContext.getResources().getConfiguration(); in hasEmbeddedTabs() 89 TypedArray a = mContext.obtainStyledAttributes(null, R.styleable.ActionBar, in getTabContainerHeight() 92 Resources r = mContext.getResources(); in getTabContainerHeight() 105 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 59 XmlResourceParser xml = ci.loadXmlMetaData(mContext.getPackageManager(), in checkMetaData() 88 TypedArray a = mContext.obtainStyledAttributes(xml, in checkMetaData() 99 ComponentName cn = new ComponentName(mContext, LocalActivity.class); in testActivityWithData() 100 ActivityInfo ai = mContext.getPackageManager().getActivityInfo( in testActivityWithData() 105 ai = mContext.getPackageManager().getActivityInfo(cn, 0); in testActivityWithData() 112 ComponentName cn = new ComponentName(mContext, LocalReceiver.class); in testReceiverWithData() 113 ActivityInfo ai = mContext.getPackageManager().getReceiverInfo( in testReceiverWithData() 118 ai = mContext.getPackageManager().getReceiverInfo(cn, 0); in testReceiverWithData() 125 ComponentName cn = new ComponentName(mContext, LocalService.class); in testServiceWithData() 126 ServiceInfo si = mContext.getPackageManager().getServiceInfo( in testServiceWithData() [all …]
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | SetupWizardLayoutTest.java | 59 private Context mContext; field in SetupWizardLayoutTest 63 mContext = new ContextThemeWrapper(InstrumentationRegistry.getContext(), in setUp() 69 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testDefaultTemplate() 75 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testSetHeaderText() 83 SetupWizardLayout layout = new SetupWizardLayout(mContext); in testAddView() 84 TextView tv = new TextView(mContext); in testAddView() 94 LayoutInflater inflater = LayoutInflater.from(mContext); in testInflateFromXml() 103 SetupWizardLayout layout = new SetupWizardLayout(mContext, R.layout.test_template); in testCustomTemplate() 107 TextView tv = new TextView(mContext); in testCustomTemplate() 125 final SetupWizardLayout layout = new SetupWizardLayout(mContext); in testGetNavigationBar() [all …]
|