Home
last modified time | relevance | path

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

12345

/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DTimeoutTest.java39 private static final String NAME = "TIME, Y U NO OUT?"; field in TimeoutTest
53 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, -1, 2, 2)); in testInvalidConstructor()
54 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 0, 2, 2)); in testInvalidConstructor()
56 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, -1, 2)); in testInvalidConstructor()
57 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 0, 2)); in testInvalidConstructor()
58 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 1, 2)); in testInvalidConstructor()
60 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, -1)); in testInvalidConstructor()
61 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, 0)); in testInvalidConstructor()
63 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 2, 2, 1)); in testInvalidConstructor()
68 final Timeout timeout = new Timeout(NAME, 1, 2, 5); in testGetters()
[all …]
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DTimeoutTest.java39 private static final String NAME = "TIME, Y U NO OUT?"; field in TimeoutTest
53 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, -1, 2, 2)); in testInvalidConstructor()
54 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 0, 2, 2)); in testInvalidConstructor()
56 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, -1, 2)); in testInvalidConstructor()
57 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 0, 2)); in testInvalidConstructor()
58 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 1, 2)); in testInvalidConstructor()
60 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, -1)); in testInvalidConstructor()
61 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, 0)); in testInvalidConstructor()
63 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 2, 2, 1)); in testInvalidConstructor()
68 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.java57 private static final String NAME = "carrierName"; field in ApnDatabaseTest
76 put(Carriers.NAME, NAME);
195 contentValues.put(Carriers.NAME, NAME); in testQueryConflictCase()
210 Carriers.NAME, in testQueryConflictCase()
226 final String selectionToDelete = Carriers.NAME + "=?"; in testQueryConflictCase()
227 String[] selectionArgsToDelete = { NAME }; in testQueryConflictCase()
250 contentValues.put(Carriers.NAME, NAME); in testUpdateConflictCase()
265 Carriers.NAME, in testUpdateConflictCase()
271 String selection = Carriers.NAME + "=?"; in testUpdateConflictCase()
272 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/graphics/src/android/graphics/cts/
DNinePatchTest.java48 private static final String NAME = "TESTNAME"; field in NinePatchTest
67 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in setup()
77 mNinePatch = new NinePatch(mBitmap, new byte[2], NAME); in testConstructorNamedTooShort()
86 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testConstructor()
88 assertEquals(NAME, mNinePatch.getName()); in testConstructor()
94 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testPaintAccessors()
178 NinePatch ninePatch = new NinePatch(bitmap, chunk, NAME); in testHasAlpha()
199 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetDensity()
214 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetTransparentRegion()
232 mNinePatch = new NinePatch(mBitmap, mChunk, NAME); in testGetTransparentRegion()
/cts/apps/CameraITS/tests/scene1/
Dtest_burst_sameness_manual.py30 NAME = os.path.basename(__file__).split(".")[0] variable
77 its.image.write_image(imgs[i], "%s_frame%03d.jpg"%(NAME, i))
81 its.image.write_image(img_mean, "%s_mean.jpg"%(NAME))
85 pylab.title(NAME)
92 matplotlib.pyplot.savefig("%s_plot_means.png" % (NAME))
Dtest_yuv_jpeg_all.py27 NAME = os.path.basename(__file__).split(".")[0] variable
56 NAME, size[0], size[1]))
70 NAME, size[0], size[1]))
81 matplotlib.pylab.title(NAME)
88 matplotlib.pyplot.savefig("%s_plot_means.png" % (NAME))
Dtest_param_sensitivity.py26 NAME = os.path.basename(__file__).split('.')[0] variable
62 its.image.write_image(img, '%s_iso=%04d.jpg' % (NAME, s))
74 pylab.title(NAME)
77 matplotlib.pyplot.savefig('%s_plot_means.png' % (NAME))
Dtest_param_exposure_time.py26 NAME = os.path.basename(__file__).split('.')[0] variable
58 img, '%s_frame%d.jpg' % (NAME, i))
71 pylab.title(NAME)
74 plot_name = '%s_plot_means.png' % NAME
Dtest_yuv_plus_dng.py22 NAME = os.path.basename(__file__).split(".")[0] variable
46 its.image.write_image(img, "%s.jpg" % (NAME))
48 with open("%s.dng"%(NAME), "wb") as f:
Dtest_black_white.py24 NAME = os.path.basename(__file__).split(".")[0] variable
55 its.image.write_image(img, "%s_black.jpg" % NAME)
74 its.image.write_image(img, "%s_white.jpg" % NAME)
96 matplotlib.pyplot.savefig("%s_plot_means.png" % (NAME))
Dtest_param_color_correction.py26 NAME = os.path.basename(__file__).split('.')[0] variable
87 its.image.write_image(img, '%s_req=%d.jpg' % (NAME, i))
102 pylab.title(NAME)
105 matplotlib.pyplot.savefig('%s_plot_means.png' % (NAME))
Dtest_exposure.py27 NAME = os.path.basename(__file__).split('.')[0] variable
114 its.image.write_image(img, '%s_mult=%3.2f.jpg' % (NAME, m))
151 pylab.title(NAME + 'RGB Data')
155 matplotlib.pyplot.savefig('%s_plot_means.png' % (NAME))
163 pylab.title(NAME + 'RAW Data')
168 matplotlib.pyplot.savefig('%s_plot_raw_means.png' % (NAME))
Dtest_crop_regions.py23 NAME = os.path.basename(__file__).split(".")[0] variable
57 img_full, "%s_full_%dx%d.jpg" % (NAME, wfull, hfull))
84 its.image.write_image(img_crop, "%s_crop%d.jpg" % (NAME, i))
94 tile_full, "%s_fullregion%d.jpg" % (NAME, j))
Dtest_reprocess_noise_reduction.py27 NAME = os.path.basename(__file__).split(".")[0] variable
80 its.image.write_image(img, "%s_low_gain_fmt=jpg.jpg" % NAME)
107 NAME, nr_mode))
138 pylab.title(NAME + ", reprocess_fmt=" + reprocess_format)
143 (NAME, reprocess_format))
/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/tests/tests/util/src/android/util/cts/
DAndroidExceptionTest.java32 private static final String NAME = "Test_AndroidException"; field in AndroidExceptionTest
43 throw new AndroidException(NAME); in testAndroidException()
45 assertEquals(NAME, e.getMessage()); in testAndroidException()
DAndroidRuntimeExceptionTest.java32 private static final String NAME = "Test_AndroidRuntimeException"; field in AndroidRuntimeExceptionTest
43 throw new AndroidRuntimeException(NAME); in testAndroidRuntimeException()
45 assertEquals(NAME, e.getMessage()); in testAndroidRuntimeException()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java56 private static final String NAME = TAG; field in VirtualDisplayTest
120 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay()
144 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay()
169 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplayWithDynamicSurface()
202 assertEquals("display name must match supplied name", NAME, display.getName()); in assertDisplayRegistered()
210 findDisplay(mDisplayManager.getDisplays(), NAME)); in assertDisplayRegistered()
215 DisplayManager.DISPLAY_CATEGORY_PRESENTATION), NAME)); in assertDisplayRegistered()
219 DisplayManager.DISPLAY_CATEGORY_PRESENTATION), NAME)); in assertDisplayRegistered()
225 findDisplay(mDisplayManager.getDisplays(), NAME)); in assertDisplayUnregistered()
/cts/apps/CameraITS/tests/inprog/
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_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_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))

12345