Home
last modified time | relevance | path

Searched +defs:c +defs:context (Results 1 – 25 of 55) sorted by relevance

123

/cts/tests/tests/text/src/android/text/cts/
DEmojiTest.java216 CaptureCanvas(Context context) { in CaptureCanvas()
227 Bitmap capture(char c[]) { in capture()
245 CaptureTextView(Context context) { in CaptureTextView()
250 Bitmap capture(char c[]) { in capture()
269 CaptureEditText(Context context) { in CaptureEditText()
274 Bitmap capture(char c[]) { in capture()
305 Bitmap capture(char c[]) { in capture()
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DLineBreakerTest.java60 Context context = InstrumentationRegistry.getTargetContext(); in classSetUp() local
107 ParagraphConstraints c = new ParagraphConstraints(); in testSetGetWidth() local
117 ParagraphConstraints c = new ParagraphConstraints(); in testSetGetIndent() local
130 ParagraphConstraints c = new ParagraphConstraints(); in testSetGetTabStops() local
145 final ParagraphConstraints c = new ParagraphConstraints(); in testLineBreak_Simple() local
168 final ParagraphConstraints c = new ParagraphConstraints(); in testLineBreak_Simple2() local
200 final ParagraphConstraints c = new ParagraphConstraints(); in testLineBreak_Simple3() local
244 final ParagraphConstraints c = new ParagraphConstraints(); in testLineBreak_Simple_NotRectangle() local
278 final ParagraphConstraints c = new ParagraphConstraints(); in testLineBreak_Simple_Hyphenation() local
323 final ParagraphConstraints c = new ParagraphConstraints(); in testLineBreak_Simple_Styled() local
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DResourceCursorAdapterTest.java192 public MockResourceCursorAdapter(Context context, int layout, Cursor c) { in MockResourceCursorAdapter()
199 public MockResourceCursorAdapter(Context context, int layout, in MockResourceCursorAdapter()
200 Cursor c, boolean autoRequery) { in MockResourceCursorAdapter()
207 public void bindView(View view, Context context, Cursor cursor) { in bindView()
DCursorAdapterTest.java303 Cursor c = (Cursor) cursorAdapter.getItem(0); in testGetItem() local
381 public MockCursorAdapter(Context context, Cursor c) { in MockCursorAdapter()
388 public MockCursorAdapter(Context context, Cursor c, boolean autoRequery) { in MockCursorAdapter()
420 public void init(Context context, Cursor c, boolean autoRequery) { in init()
428 public void bindView(View view, Context context, Cursor cursor) { in bindView()
441 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView()
DSimpleCursorTreeAdapterTest.java220 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor, in MockSimpleCursorTreeAdapter()
228 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor, in MockSimpleCursorTreeAdapter()
235 public MockSimpleCursorTreeAdapter(Context c, Cursor cursor, int groupLayout, in MockSimpleCursorTreeAdapter()
247 protected void bindChildView(View v, Context context, Cursor cursor, boolean isLastChild) { in bindChildView()
251 protected void bindGroupView(View v, Context context, Cursor cursor, boolean isExpanded) { in bindGroupView()
/cts/hostsidetests/compilation/app_using_other_app/src/android/compilation/cts/appusingotherapp/
DUsingOtherAppTest.java42 Context context = ApplicationProvider.getApplicationContext(); in useOtherApp() local
47 Class<?> c = classLoader.loadClass("android.compilation.cts.appusedbyotherapp.MyActivity"); in useOtherApp() local
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Video_MediaTest.java101 Cursor c = null; in testGetContentUri() local
154 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreVideoMediaExternal() local
187 Context context = mContext; in testStoreVideoMediaExternal() local
195 private Uri insertVideo(Context context) throws IOException { in insertVideo()
323 try (Cursor c = mContentResolver.query(publishUri, in testLocationDeprecated()
336 try (Cursor c = mContentResolver.query(publishUri, in testLocationDeprecated()
358 final Uri c = ProviderTestUtils.scanFileFromShell( in testCanonicalize() local
385 try (Cursor c = mContentResolver.query(uri, null, null, null)) { in testMetadata()
462 try (Cursor c = mContentResolver.query(mediaUri, projection, null, null)) { in testMediaWithSubtitles()
468 try (Cursor c = mContentResolver.query(subUri, projection, null, null)) { in testMediaWithSubtitles()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java137 Calendar c = new GregorianCalendar(2008, Calendar.DECEMBER, 18); in test_format_M() local
148 Calendar c = new GregorianCalendar(2008, Calendar.DECEMBER, 18); in test_format_L() local
158 Calendar c = new GregorianCalendar(2008, Calendar.DECEMBER, 18); in test_format_E() local
169 Calendar c = new GregorianCalendar(2008, Calendar.DECEMBER, 18); in test_format_c() local
247 Calendar c = new GregorianCalendar(utc); in checkFormat() local
332 final Context context = mContext.createConfigurationContext(config); in test_ContextLocaleIsUsed() local
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DResultsAssertionsUtils.java80 final Context context = InstrumentationRegistry.getTargetContext(); in assertMimeType() local
86 final Context context = InstrumentationRegistry.getTargetContext(); in assertContainsMimeType() local
94 final Context context = InstrumentationRegistry.getTargetContext(); in assertRedactedReadOnlyAccess() local
96 try (Cursor c = resolver.query(uri, projection, null, null)) { in assertRedactedReadOnlyAccess()
121 try (Cursor c = resolver.query( in assertExtension()
177 try (Cursor c = resolver.query(uri, null, null, null)) { in assertImageRedactedReadOnlyAccess()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DServiceBinder.java42 private ServiceBinder(Context context, ComponentName componentName, int flags) { in ServiceBinder()
51 public static ServiceBinder bind(Context c, ComponentName cn, int flags) throws Exception { in bind()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DSearchUtil.java53 public static boolean verifySearchResult(Context context, SearchableInfo searchable, in verifySearchResult()
67 try (Cursor c = provider.query(uri, null, selection, selectionArg, null, null)) { in verifySearchResult()
90 public static List<SearchableInfo> getSearchableInfos(Context context) { in getSearchableInfos()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java128 try (Cursor c = mContentResolver.query( in testLegacy()
164 try (Cursor c = mContentResolver.query(MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI, in testMediaNone()
168 try (Cursor c = mContentResolver.query(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, in testMediaNone()
172 try (Cursor c = mContentResolver.query(MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI, in testMediaNone()
187 try (Cursor c = mContentResolver.query(collection, in doMediaNone()
277 try (Cursor c = mContentResolver.query(collectionUri, new String[]{MediaColumns._ID}, in doReadUriPermissionOnUriWithoutId_sameQueryResult()
283 try (Cursor c = mContentResolver.query(collectionUri, new String[]{MediaColumns._ID}, in doReadUriPermissionOnUriWithoutId_sameQueryResult()
353 try (Cursor c = mContentResolver.query(collectionUri, new String[]{MediaColumns._ID}, null, in doOwningOneFileNotGrantPrefixUriPermission()
483 try (Cursor c = mContentResolver.query(collection, in doMediaRead()
518 try (Cursor c = mContentResolver.query(collection, in doMediaWrite()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DP2pBroadcastReceiverTest.java49 public P2pBroadcastReceiverTest(Context context) { in P2pBroadcastReceiverTest()
58 public void init(Channel c) { in init()
185 public void onReceive(Context context, Intent intent) { in onReceive()
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletFactory.java94 Context context = new Context(); in getRootDoc() local
98 Constructor<Messager> c; in getRootDoc() local
/cts/libs/json/src/com/android/json/stream/
DJsonWriter.java231 JsonScope context = peek(); in close() local
357 char c = value.charAt(i); in string() local
422 JsonScope context = peek(); in beforeName() local
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java62 final Context context = InstrumentationRegistry.getTargetContext(); in setUp() local
74 final Context context = InstrumentationRegistry.getTargetContext(); in tearDown() local
591 try (Cursor c = qb.query(mDatabase, null, null, null, null, null, null)) { in testStrictQuery()
597 try (Cursor c = qb.query(mDatabase, null, "1=1", null, null, null, null)) { in testStrictQuery()
601 try (Cursor c = qb.query(mDatabase, null, "1=1 --", null, null, null, null)) { in testStrictQuery()
605 try (Cursor c = qb.query(mDatabase, null, "1=1) OR (1=1", null, null, null, null)) { in testStrictQuery()
609 try (Cursor c = qb.query(mDatabase, null, "1=1)) OR ((1=1", null, null, null, null)) { in testStrictQuery()
854 try (Cursor c = mStrictBuilder.query(mDatabase, projectionIn, selection, selectionArgs, in assertStrictQueryValid()
861 try (Cursor c = mStrictBuilder.query(mDatabase, projectionIn, selection, selectionArgs, in assertStrictQueryInvalid()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java46 public static long getFreeDiskSize(Context context) { in getFreeDiskSize()
51 public static long getFreeMemory(Context context) { in getFreeMemory()
57 public static long getTotalMemory(Context context) { in getTotalMemory()
369 public static <T> T getEventually(@NonNull Callable<T> c) throws Exception { in getEventually()
382 public static <T> T getEventually(@NonNull Callable<T> c, long timeoutMillis) throws Exception { in getEventually()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DPhoneNumberUtilsTest.java166 Context context = getContext(); in testGetMethods() local
289 char c = '*'; in testJudgeMethods() local
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java60 Cursor c = mTestSRSProvider.query(mTestUri, null, null, null, null); in testSearchRecentSuggestions() local
187 public MySearchRecentSuggestions(Context context, String authority, int mode) { in MySearchRecentSuggestions()
/cts/tests/tests/tv/src/android/media/tv/cts/
DStubTunerTvInputService.java94 StubSessionImpl(Context context) { in StubSessionImpl()
106 Canvas c = mSurface.lockCanvas(null); in updateSurfaceLocked() local
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java83 DatabaseHelper(Context context, String dbname) { in DatabaseHelper()
265 try (Cursor c = db.rawQuery("SELECT icu_load_collation(?, ?);", in query()
345 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy, in query() local
468 public static boolean getCrashOnLaunch(Context context) { in getCrashOnLaunch()
473 public static void setCrashOnLaunch(Context context, boolean value) { in setCrashOnLaunch()
494 private static File getCrashOnLaunchFile(Context context) { in getCrashOnLaunchFile()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java142 public static List<File> getAllPackageSpecificPaths(Context context) { in getAllPackageSpecificPaths()
152 public static List<File> getAllPackageSpecificPathsExceptMedia(Context context) { in getAllPackageSpecificPathsExceptMedia()
161 public static List<File> getAllPackageSpecificPathsExceptObb(Context context) { in getAllPackageSpecificPathsExceptObb()
170 public static List<File> getAllPackageSpecificObbGiftPaths(Context context, in getAllPackageSpecificObbGiftPaths()
185 public static List<File> getAllPackageSpecificNoGiftPaths(Context context, in getAllPackageSpecificNoGiftPaths()
197 public static List<File> getPrimaryPackageSpecificPathsExceptMedia(Context context) { in getPrimaryPackageSpecificPathsExceptMedia()
205 public static List<File> getPrimaryPackageSpecificPaths(Context context) { in getPrimaryPackageSpecificPaths()
214 public static List<File> getSecondaryPackageSpecificPaths(Context context) { in getSecondaryPackageSpecificPaths()
490 int c; in copy() local
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaScannerTest.java165 Cursor c = res.query(media1Uri, new String[] { "title" }, null, null, null); in testLocalizeRingtoneTitles() local
210 Cursor c = res.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, null, in testMediaScanner() local
348 Cursor c = res.query(file1Uri, new String[] { "parent" }, null, null, null); in testWildcardPaths() local
591 Cursor c = res.query(MediaStore.Audio.Media.getContentUri("external"), columns, in testEncodingDetection() local
702 public MockMediaScannerConnection(Context context, MediaScannerConnectionClient client) { in MockMediaScannerConnection()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DSipDelegateManagerTest.java108 public void onReceive(Context context, Intent intent) { in onReceive()
165 SipDelegateConfiguration c = new SipDelegateConfiguration.Builder(1, in connect() local
321 TestSipDelegateConnection c = new TestSipDelegateConnection(d); in testIncorrectPermissions() local
465 SipDelegateConfiguration c = new SipDelegateConfiguration.Builder(1, in testSipDialogStateChangesOnMultipleDelegates() local
688 ImsFeatureConfiguration c = getConfigForRcs(); in testIsSupportedWithSipTransportCapableOnlyRcs() local
715 ImsFeatureConfiguration c = getConfigForMmTelAndRcs(); in testIsSupportedWithSipTransportCapableButNotImplemented() local
740 ImsFeatureConfiguration c = getConfigForMmTelAndRcs(); in testIsSupportedWithSipTransportImplementedButNotCapable() local
764 ImsFeatureConfiguration c = getConfigForMmTelAndRcs(); in testIsSupportedWithSipTransportNotImplementedNotCapable() local
847 SipDelegateConfiguration c = new SipDelegateConfiguration.Builder(1, in testImsServiceDisconnected() local
1021 SipDelegateConfiguration c = new SipDelegateConfiguration.Builder(1, in testCreateMultipleDelegates() local
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlViewHostTests.java152 MotionConsumingSurfaceView(Context c) { in MotionConsumingSurfaceView()
418 private static int getGlEsVersion(Context context) { in getGlEsVersion()
956 MotionRecordingSurfaceView(Context c) { in MotionRecordingSurfaceView()
979 public TouchPunchingView(Context context) { in TouchPunchingView()
1003 ForwardingSurfaceView(Context c) { in ForwardingSurfaceView()
1027 DetachRecordingView(Context c) { in DetachRecordingView()
1039 ConfigRecordingView(Context c, CountDownLatch latch) { in ConfigRecordingView()
1401 TouchTransferringView(Context c) { in TouchTransferringView()

123