Home
last modified time | relevance | path

Searched refs:NAME (Results 1 – 25 of 107) sorted by relevance

12345

/cts/tests/autofillservice/src/android/autofillservice/cts/
DTimeoutTest.java37 private static final String NAME = "TIME, Y U NO OUT?"; field in TimeoutTest
49 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, -1, 2, 2)); in testInvalidConstructor()
50 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 0, 2, 2)); in testInvalidConstructor()
52 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, -1, 2)); in testInvalidConstructor()
53 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 0, 2)); in testInvalidConstructor()
54 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 1, 2)); in testInvalidConstructor()
56 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, -1)); in testInvalidConstructor()
57 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, 0)); in testInvalidConstructor()
59 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 2, 2, 1)); in testInvalidConstructor()
64 final Timeout timeout = new Timeout(NAME, 1, 2, 5); in testGetters()
[all …]
/cts/apps/CameraITS/tests/
Dtutorial.py53 NAME = os.path.basename(__file__).split(".")[0]
79 its.image.write_image(rgbimg, "%s_rgb_1.jpg" % (NAME))
84 its.image.write_image(yimg, "%s_y_plane_1.jpg" % (NAME))
85 its.image.write_image(uimg, "%s_u_plane_1.jpg" % (NAME))
86 its.image.write_image(vimg, "%s_v_plane_1.jpg" % (NAME))
122 its.image.write_image(rgbimg, "%s_rgb_2.jpg" % (NAME))
142 its.image.write_image(tile, "%s_rgb_2_tile.jpg" % (NAME))
153 its.image.write_image(rgbimg_lut, "%s_rgb_2_lut.jpg" % (NAME))
163 its.image.write_image(rgbimg_mat, "%s_rgb_2_mat.jpg" % (NAME))
174 matplotlib.pyplot.savefig("%s_histogram.png" % (NAME))
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java55 private static final String NAME = "carrierName"; field in ApnDatabaseTest
74 put(Carriers.NAME, NAME);
193 contentValues.put(Carriers.NAME, NAME); in testQueryConflictCase()
208 Carriers.NAME, in testQueryConflictCase()
224 final String selectionToDelete = Carriers.NAME + "=?"; in testQueryConflictCase()
225 String[] selectionArgsToDelete = { NAME }; in testQueryConflictCase()
248 contentValues.put(Carriers.NAME, NAME); in testUpdateConflictCase()
263 Carriers.NAME, in testUpdateConflictCase()
269 String selection = Carriers.NAME + "=?"; in testUpdateConflictCase()
270 String[] selectionArgs = { NAME }; in testUpdateConflictCase()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentQueryMapTest.java51 DummyProvider.NAME, DummyProvider.VALUE};
66 values0.put(DummyProvider.NAME, NAME0); in setUp()
71 values1.put(DummyProvider.NAME, NAME1); in setUp()
97 new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); in testConstructor()
108 new ContentQueryMap(null, DummyProvider.NAME, false, new Handler()); in testConstructor()
117 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, true, null); in testGetRows()
127 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, false, new Handler()); in testGetRows()
138 mContentQueryMap = new ContentQueryMap(mCursor, DummyProvider.NAME, false, null); in testRequery()
152 values.put(DummyProvider.NAME, NAME2); in testRequery()
155 DummyProvider.NAME + " = '" + NAME0 + "'", null); in testRequery()
[all …]
DAsyncQueryHandlerTest.java66 DummyProvider._ID, DummyProvider.NAME};
81 values0.put(DummyProvider.NAME, NAME0); in setUp()
85 values1.put(DummyProvider.NAME, NAME1); in setUp()
89 values2.put(DummyProvider.NAME, NAME2); in setUp()
108 values1.put(DummyProvider.NAME, NAME3); in testStartInsert()
110 values2.put(DummyProvider.NAME, NAME4); in testStartInsert()
181 values1.put(DummyProvider.NAME, NAME3); in testStartUpdate()
183 values2.put(DummyProvider.NAME, NAME4); in testStartUpdate()
190 DummyProvider.NAME + "=?", new String[] { NAME0 }, NO_CANCEL); in testStartUpdate()
200 DummyProvider.NAME + "=?", new String[] { NAME1 }, CANCELABLE); in testStartUpdate()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DUrlQuerySanitizerTest.java40 private static final String NAME = "name"; field in UrlQuerySanitizerTest
78 assertTrue(uqs.hasParameter(NAME)); in testUrlQuerySanitizer()
83 assertEquals(EXPECTED_UNDERLINE_NAME, uqs.getValue(NAME)); in testUrlQuerySanitizer()
91 assertTrue(urlSet.contains(NAME)); in testUrlQuerySanitizer()
99 assertEquals(NAME, pvp.mParameter); in testUrlQuerySanitizer()
121 uqs.registerParameter(NAME, null); in testUrlQuerySanitizer()
122 assertNull(uqs.getValueSanitizer(NAME)); in testUrlQuerySanitizer()
123 assertNotNull(uqs.getEffectiveValueSanitizer(NAME)); in testUrlQuerySanitizer()
127 uqs.registerParameter(NAME, null); in testUrlQuerySanitizer()
128 assertNull(uqs.getEffectiveValueSanitizer(NAME)); in testUrlQuerySanitizer()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DAndroidRuntimeExceptionTest.java31 private static final String NAME = "Test_AndroidRuntimeException"; field in AndroidRuntimeExceptionTest
42 throw new AndroidRuntimeException(NAME); in testAndroidRuntimeException()
44 assertEquals(NAME, e.getMessage()); in testAndroidRuntimeException()
DAndroidExceptionTest.java31 private static final String NAME = "Test_AndroidException"; field in AndroidExceptionTest
42 throw new AndroidException(NAME); in testAndroidException()
44 assertEquals(NAME, e.getMessage()); in testAndroidException()
/cts/apps/CameraITS/tests/inprog/
Dtest_rawstats.py26 NAME = os.path.basename(__file__).split(".")[0]
43 its.image.write_image(m, "%s_mean_ch%d.jpg" % (NAME,ch), True)
44 its.image.write_image(v, "%s_var_ch%d.jpg" % (NAME,ch), True)
Dtest_black_level.py35 NAME = os.path.basename(__file__).split(".")[0]
68 "%s_s=%05d_y.jpg" % (NAME, s), True)
70 "%s_s=%05d_u.jpg" % (NAME, s), True)
91 matplotlib.pyplot.savefig("%s_plot_histograms.png" % (NAME))
Dtest_param_edge_mode.py26 NAME = os.path.basename(__file__).split(".")[0]
44 its.image.write_image(img, "%s_mode=%d.jpg" % (NAME, e))
Dtest_blc_lsc.py26 NAME = os.path.basename(__file__).split(".")[0]
75 its.image.write_image(img, "%s_i=%d.jpg"%(NAME, i))
94 matplotlib.pyplot.savefig("%s_plot_means_center.png" % (NAME))
101 matplotlib.pyplot.savefig("%s_plot_means_corner.png" % (NAME))
/cts/tests/tests/permission/src/android/permission/cts/
DNoCaptureVideoPermissionTest.java32 private static final String NAME = "VirtualDisplayTest"; field in NoCaptureVideoPermissionTest
50 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, in testCreatePublicVirtualDisplay()
73 displayManager.createVirtualDisplay(NAME, WIDTH, HEIGHT, DENSITY, in testCreateSecureVirtualDisplay()
95 NAME, WIDTH, HEIGHT, DENSITY, in testCreatePrivateVirtualDisplay()
/cts/apps/CameraITS/tests/scene1/
Dtest_yuv_plus_dng.py24 NAME = os.path.basename(__file__).split(".")[0]
44 its.image.write_image(img, "%s.jpg" % (NAME))
46 with open("%s.dng"%(NAME), "wb") as f:
Dtest_black_white.py27 NAME = os.path.basename(__file__).split(".")[0]
56 its.image.write_image(img, "%s_black.jpg" % (NAME))
71 its.image.write_image(img, "%s_white.jpg" % (NAME))
84 matplotlib.pyplot.savefig("%s_plot_means.png" % (NAME))
Dtest_jpeg.py26 NAME = os.path.basename(__file__).split(".")[0]
43 its.image.write_image(img, "%s_fmt=yuv.jpg" % (NAME))
52 its.image.write_image(img, "%s_fmt=jpg.jpg" % (NAME))
Dtest_yuv_plus_jpeg.py26 NAME = os.path.basename(__file__).split(".")[0]
49 its.image.write_image(img, "%s_yuv.jpg" % (NAME))
54 its.image.write_image(img, "%s_jpeg.jpg" % (NAME))
Dtest_auto_vs_manual.py31 NAME = os.path.basename(__file__).split(".")[0]
60 its.image.write_image(img_auto, "%s_auto.jpg" % (NAME))
73 its.image.write_image(img_man1, "%s_manual_wb.jpg" % (NAME))
87 its.image.write_image(img_man2, "%s_manual_wb_tm.jpg" % (NAME))
/cts/tests/tests/jvmti/attaching/jni/
Dagent.c39 #define NAME(BASE) EVAL(BASE,AGENT_NR) macro
41 JNIEXPORT jboolean JNICALL NAME(Java_android_jvmti_attaching_cts_AttachingTest_isAttached) ( in NAME() function
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/
DEventProviderConstants.java62 public static final String NAME = "events"; field in EventProviderConstants.EventTableConstants
74 public static final String CONTENT_URI = BASE_URI + "/" + NAME;
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_GenresTest.java65 values.put(Genres.NAME, "POP"); in testStoreAudioGenresExternal()
74 assertEquals("POP", c.getString(c.getColumnIndex(Genres.NAME))); in testStoreAudioGenresExternal()
80 values.put(Genres.NAME, "ROCK"); in testStoreAudioGenresExternal()
84 assertEquals("ROCK", c.getString(c.getColumnIndex(Genres.NAME))); in testStoreAudioGenresExternal()
94 values.put(Genres.NAME, "POP"); in testStoreAudioGenresInternal()
109 values.put(Genres.NAME, "Soda Pop"); in testGetContentUriForAudioId()
DMediaStore_Audio_PlaylistsTest.java68 values.put(Playlists.NAME, "My favourites"); in testStoreAudioPlaylistsExternal()
82 assertEquals("My favourites", c.getString(c.getColumnIndex(Playlists.NAME))); in testStoreAudioPlaylistsExternal()
94 values.put(Playlists.NAME, "xxx"); in testStoreAudioPlaylistsExternal()
100 assertEquals("xxx", c.getString(c.getColumnIndex(Playlists.NAME))); in testStoreAudioPlaylistsExternal()
114 values.put(Playlists.NAME, "My favourites"); in testStoreAudioPlaylistsInternal()
/cts/tests/tests/graphics/src/android/graphics/cts/
DNinePatchTest.java47 private static final String NAME = "TESTNAME"; field in NinePatchTest
66 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in setup()
76 mNinePatch = new NinePatch(mBitmap, new byte[2], NAME); in testConstructorNamedTooShort()
85 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testConstructor()
87 assertEquals(NAME, mNinePatch.getName()); in testConstructor()
93 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testPaintAccessors()
177 NinePatch ninePatch = new NinePatch(bitmap, chunk, NAME); in testHasAlpha()
198 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetDensity()
213 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetTransparentRegion()
231 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetTransparentRegion()
/cts/apps/CameraITS/tests/scene0/
Dtest_burst_capture.py25 NAME = os.path.basename(__file__).split(".")[0]
35 img_name = "%s.jpg" % (NAME)
/cts/tests/tests/telephony/src/android/telephony/embms/cts/
DServiceInfoTest.java39 private static final String NAME = "class1"; field in ServiceInfoTest
43 new StreamingServiceInfo(LOCALE_DICT, NAME, LOCALES, ID, BEGIN_DATE, END_DATE);
59 assertEquals(NAME, STREAMING_SERVICE_INFO.getServiceClassName()); in testDataAccess()

12345