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

1 2 3 4 5 6 7 8 91011>>

  /cts/libs/deviceutil/src/android/cts/util/
CtsAndroidTestCase.java 32 public Context getContext() {
33 return getInstrumentation().getContext();
  /frameworks/base/core/tests/coretests/src/android/content/
BrickDeniedTest.java 29 getContext().sendBroadcast(new Intent("SHES_A_BRICK_HOUSE"));
30 getContext().sendBroadcast(new Intent("android.intent.action.BRICK"));
  /cts/tests/tests/tv/src/android/media/tv/cts/
TvInputInfoTest.java 36 if (!Utils.hasTvInputFramework(getContext())) {
40 (TvInputManager) getContext().getSystemService(Context.TV_INPUT_SERVICE);
48 mPackageManager = getContext().getPackageManager();
52 if (!Utils.hasTvInputFramework(getContext())) {
57 assertEquals(intent.getComponent(), new ComponentName(getContext(),
64 if (!Utils.hasTvInputFramework(getContext())) {
69 assertEquals(intent.getComponent(), new ComponentName(getContext(),
76 if (!Utils.hasTvInputFramework(getContext())) {
83 if (!Utils.hasTvInputFramework(getContext())) {
90 if (!Utils.hasTvInputFramework(getContext())) {
    [all...]
  /external/chromium_org/third_party/skia/src/gpu/
GrGpuObject.cpp 46 const GrContext* GrGpuObject::getContext() const {
48 return fGpu->getContext();
54 GrContext* GrGpuObject::getContext() {
56 return fGpu->getContext();
  /external/skia/src/gpu/
GrGpuObject.cpp 46 const GrContext* GrGpuObject::getContext() const {
48 return fGpu->getContext();
54 GrContext* GrGpuObject::getContext() {
56 return fGpu->getContext();
  /packages/providers/TvProvider/tests/src/com/android/providers/tv/
TvProviderForTesting.java 25 return getContext().getPackageName();
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
ImportantNoticeUtilsTests.java 100 mImportantNoticePreferences = new ImportantNoticePreferences(getContext());
112 ImportantNoticeUtils.getCurrentImportantNoticeVersion(getContext()));
119 ImportantNoticeUtils.shouldShowImportantNotice(getContext()));
121 ImportantNoticeUtils.getLastImportantNoticeVersion(getContext()));
123 ImportantNoticeUtils.getNextImportantNoticeVersion(getContext()));
125 ImportantNoticeUtils.getNextImportantNoticeTitle(getContext())));
127 ImportantNoticeUtils.getNextImportantNoticeContents(getContext())));
129 ImportantNoticeUtils.updateLastImportantNoticeVersion(getContext());
132 ImportantNoticeUtils.shouldShowImportantNotice(getContext()));
134 ImportantNoticeUtils.getLastImportantNoticeVersion(getContext()));
    [all...]
  /frameworks/base/core/tests/coretests/src/android/app/activity/
ServiceTest.java 201 getContext().startService(new Intent(service).putExtras(bundle));
205 getContext().startService(new Intent(service).putExtras(bundle));
211 getContext().stopService(service);
219 getContext().stopService(service);
225 getContext().startService(service);
239 getContext().bindService(service, conn, 0);
240 getContext().startService(service);
244 getContext().bindService(service, conn2, 0);
247 getContext().unbindService(conn2);
252 getContext().stopService(service)
    [all...]
SubActivityTest.java 26 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
32 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
38 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
45 new ComponentName(getContext(), RemoteSubActivityScreen.class));
52 new ComponentName(getContext(), RemoteSubActivityScreen.class));
59 new ComponentName(getContext(), RemoteSubActivityScreen.class));
65 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class));
72 new ComponentName(getContext(), RemoteSubActivityScreen.class));
80 new ComponentName(getContext(), RemoteSubActivityScreen.class));
87 mIntent.putExtra("component", new ComponentName(getContext(), SubActivityScreen.class))
    [all...]
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLECPointContext.java 49 if (!NativeCrypto.EC_GROUP_cmp(group.getContext(), other.group.getContext())) {
53 return NativeCrypto.EC_POINT_cmp(group.getContext(), pointCtx, other.pointCtx);
58 group.getContext(), pointCtx);
70 public long getContext() {
77 NativeCrypto.EC_POINT_new(group.getContext()));
78 NativeCrypto.EC_POINT_set_affine_coordinates(group.getContext(),
79 point.getContext(), javaPoint.getAffineX().toByteArray(),
OpenSSLCipherContext.java 39 long getContext() {
  /hardware/qcom/gps/core/
LocAdapterProxyBase.h 49 ContextBase* getContext() const {
50 return mLocAdapterBase->getContext();
  /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
HelpersTest.java 36 IoUtils.deleteContents(getContext().getFilesDir());
37 IoUtils.deleteContents(getContext().getCacheDir());
43 final File expected = new File(getContext().getFilesDir(), "file.mp4");
44 final String actual = Helpers.generateSaveFile(getContext(),
51 final File expected1 = new File(getContext().getFilesDir(), "file.txt");
52 final String actual1 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt",
55 final File expected2 = new File(getContext().getFilesDir(), "file-1.txt");
56 final String actual2 = Helpers.generateSaveFile(getContext(), "http://example.com/file.txt",
64 final File expected = new File(getContext().getFilesDir(), "file.mp4");
65 final String actual = Helpers.generateSaveFile(getContext(),
    [all...]
  /cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
RandomRWTest.java 28 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR);
29 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD);
36 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE);
40 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, getReportLog(), fileSize,
49 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, getReportLog(), fileSize,
  /cts/tests/tests/widget/src/android/widget/cts/
ViewSwitcherTest.java 47 new ViewSwitcher(getContext());
49 new ViewSwitcher(getContext(), null);
51 XmlPullParser parser = getContext().getResources().getXml(R.layout.viewswitcher_layout);
53 new ViewSwitcher(getContext(), attrs);
57 mViewSwitcher = new ViewSwitcher(getContext());
65 mViewSwitcher = new ViewSwitcher(getContext());
67 ListView lv1 = new ListView(getContext());
68 ListView lv2 = new ListView(getContext());
80 mViewSwitcher = new ViewSwitcher(getContext());
82 ListView lv1 = new ListView(getContext());
    [all...]
ImageButtonTest.java 31 XmlPullParser parser = getContext().getResources().getXml(R.layout.imagebutton_test);
35 new ImageButton(getContext());
37 new ImageButton(getContext(), attrs);
39 new ImageButton(getContext(), attrs, 0);
  /cts/tests/tests/rscpp/src/android/cts/rscpp/
RSAllocationTest.java 32 assertTrue(typedTest(this.getContext().getCacheDir().toString()));
37 assertTrue(test1DCopy(this.getContext().getCacheDir().toString()));
42 assertTrue(testSetElementAt(this.getContext().getCacheDir().toString()));
  /frameworks/base/keystore/tests/src/android/security/
KeyPairGeneratorSpecTest.java 43 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1,
46 assertEquals("Context should be the one specified", getContext(), spec.getContext());
62 KeyPairGeneratorSpec spec = new KeyPairGeneratorSpec.Builder(getContext())
73 assertEquals("Context should be the one specified", getContext(), spec.getContext());
101 new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW,
110 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW,
119 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW,
128 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/interactions/
ContactInteractionUtilTest.java 71 calendar.getTimeInMillis(), getContext()));
80 getContext()));
86 assertEquals(getContext().getResources().getString(R.string.yesterday),
88 getContext()));
98 assertEquals(getContext().getResources().getString(R.string.yesterday),
100 getContext(), calendar));
105 assertEquals(getContext().getResources().getString(R.string.tomorrow),
107 getContext()));
115 assertEquals(getContext().getResources().getString(R.string.tomorrow),
117 getContext(), calendar))
    [all...]
  /packages/apps/Email/tests/src/com/android/email/activity/
UiUtilitiesTests.java 35 assertEquals("0B", UiUtilities.formatSize(getContext(), 0));
36 assertEquals("1B", UiUtilities.formatSize(getContext(), 1));
37 assertEquals("1023B", UiUtilities.formatSize(getContext(), 1023));
38 assertEquals("1KB", UiUtilities.formatSize(getContext(), 1024));
39 assertEquals("1023KB", UiUtilities.formatSize(getContext(), 1024 * 1024 - 1));
40 assertEquals("1MB", UiUtilities.formatSize(getContext(), 1024 * 1024));
41 assertEquals("1023MB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024 - 1));
42 assertEquals("1GB", UiUtilities.formatSize(getContext(), 1024 * 1024 * 1024));
43 assertEquals("5GB", UiUtilities.formatSize(getContext(), 5L * 1024 * 1024 * 1024));
47 final Context c = getContext();
    [all...]
  /packages/apps/Email/tests/src/com/android/emailcommon/
DeviceTests.java 32 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);
39 final String deviceId = Device.getConsistentDeviceId(getContext());
40 final String deviceId2 = Device.getConsistentDeviceId(getContext());
  /cts/tests/tests/provider/src/android/provider/cts/
Contacts_PhonesTest.java 26 String display = Phones.getDisplayLabel(getContext(),
30 CharSequence[] labels = getContext().getResources().getTextArray(
32 display = Phones.getDisplayLabel(getContext(),
36 display = Phones.getDisplayLabel(getContext(),
40 display = Phones.getDisplayLabel(getContext(),
44 display = Phones.getDisplayLabel(getContext(),
48 display = Phones.getDisplayLabel(getContext(),
52 display = Phones.getDisplayLabel(getContext(),
56 display = Phones.getDisplayLabel(getContext(),
72 String display = Phones.getDisplayLabel(getContext(),
    [all...]
Contacts_OrganizationsTest.java 26 String display = Organizations.getDisplayLabel(getContext(),
30 CharSequence[] labels = getContext().getResources().getTextArray(
32 display = Organizations.getDisplayLabel(getContext(),
36 display = Organizations.getDisplayLabel(getContext(),
  /cts/tests/tests/security/src/android/security/cts/
MMapExecutableTest.java 31 assertTrue(mmapExecutable(getContext().getApplicationInfo().sourceDir));
  /external/chromium_org/third_party/WebKit/Source/devtools/scripts/jsdoc-validator/src/org/chromium/devtools/jsdoc/checks/
ContextTrackingChecker.java 26 protected ValidatorContext getContext() {
27 return state.getContext();
32 Pattern.matches("(?s).*@" + tagName + "\\b.*", getContext().getNodeText(comment));
36 getContext().reportErrorInNode(node, 0, errorText);

Completed in 1554 milliseconds

1 2 3 4 5 6 7 8 91011>>