Home
last modified time | relevance | path

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

12345

/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/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java53 private static final String NAME = "carrierName"; field in ApnDatabaseTest
74 put(Carriers.NAME, NAME);
196 contentValues.put(Carriers.NAME, NAME); in testQueryConflictCase()
210 Carriers.NAME, Carriers.APN, Carriers.PORT, Carriers.PROTOCOL, Carriers.NUMERIC, in testQueryConflictCase()
227 final String selectionToDelete = Carriers.NAME + "=?"; in testQueryConflictCase()
228 String[] selectionArgsToDelete = {NAME}; in testQueryConflictCase()
258 contentValues.put(Carriers.NAME, NAME); in testUpdateConflictCase()
272 Carriers.NAME, Carriers.APN, Carriers.PORT, Carriers.PROTOCOL, Carriers.NUMERIC, in testUpdateConflictCase()
274 String selection = Carriers.NAME + "=?"; in testUpdateConflictCase()
275 String[] selectionArgs = {NAME}; in testUpdateConflictCase()
[all …]
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_SimRecordsTest.java120 SimRecords.NAME, in queryAdn_nullProjection_returnsCursorWithAllSupportedColumns()
130 try (Cursor cursor = query(adnUri, new String[]{SimRecords.NAME})) { in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection() argument
131 assertThat(cursor).hasColumnNames(SimRecords.NAME); in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection()
136 SimRecords.NAME, SimRecords.PHONE_NUMBER in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection()
191 SimRecords.NAME, in queryAdn_nonEmpty_returnsAdnRecordsFromSim()
219 SimRecords.NAME, in queryFdn_nonEmpty_returnsFdnRecordsFromSim()
257 projection = new String[]{SimRecords.NAME, SimRecords.PHONE_NUMBER}; in query_itemUri_returnsCursorWithCorrectItem()
294 values.put(SimRecords.NAME, "Name"); in insertAdn_addsRecordAndReturnsValidUri()
304 SimRecords.NAME, in insertAdn_addsRecordAndReturnsValidUri() argument
319 values.put(SimRecords.NAME, "Updated"); in updateAdn_existingRecord_updatesRecordAndReturns1()
[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/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()
55 throw new AndroidException(NAME, CAUSE); in testAndroidException()
57 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/apps/CameraITS/tests/scene1_1/
Dtest_burst_sameness_manual.py34 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
55 logging.debug('Starting %s', NAME)
101 imgs[0], '%s_frame000.jpg' % os.path.join(log_path, NAME))
108 imgs[i], '%s_frame%03d.jpg'%(os.path.join(log_path, NAME), i))
112 pylab.figure(NAME)
113 pylab.title(NAME)
121 '%s_plot_means.png' % os.path.join(log_path, NAME))
Dtest_param_exposure_time.py32 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
43 logging.debug('Starting %s', NAME)
81 img, '%s_frame%d.jpg' % (os.path.join(log_path, NAME), i))
91 pylab.figure(NAME)
95 pylab.title(NAME)
98 plot_name = '%s_plot_means.png' % os.path.join(log_path, NAME)
Dtest_latching.py31 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
52 logging.debug('Starting %s', NAME)
99 os.path.join(log_path, NAME), i))
110 pylab.figure(NAME)
115 pylab.title(NAME)
119 log_path, NAME))
Dtest_linearity.py32 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
58 logging.debug('Starting %s', NAME)
99 os.path.join(self.log_path, NAME), sens)
111 pylab.figure(NAME)
115 pylab.title(NAME)
121 '%s_plot_means.png' % os.path.join(self.log_path, NAME))
Dtest_param_color_correction.py36 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
58 logging.debug('Starting %s', NAME)
114 os.path.join(log_path, NAME), i))
125 pylab.figure(NAME)
130 pylab.title(NAME)
134 '%s_plot_means.png' % os.path.join(log_path, NAME))
Dtest_dng_noise_model.py32 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
54 logging.debug('Starting %s', NAME)
102 img, '%s_%d.jpg' % (os.path.join(log_path, NAME), sens))
152 pylab.figure(NAME)
156 pylab.title(NAME)
161 matplotlib.pyplot.savefig('%s_plot.png' % os.path.join(log_path, NAME))
Dtest_crop_regions.py37 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
44 logging.debug('Starting %s', NAME)
82 os.path.join(log_path, NAME), wfull, hfull))
110 os.path.join(log_path, NAME), i))
122 os.path.join(log_path, NAME), j))
Dtest_ev_compensation_basic.py33 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
65 logging.debug('Starting %s', NAME)
74 test_name_w_path = os.path.join(log_path, NAME)
129 pylab.figure(NAME)
131 pylab.title(NAME)
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Audio_PlaylistsTest.java82 values.put(Playlists.NAME, "My favourites " + System.nanoTime()); in testStoreAudioPlaylistsExternal()
95 assertEquals(values.getAsString(Playlists.NAME), in testStoreAudioPlaylistsExternal()
96 c.getString(c.getColumnIndex(Playlists.NAME))); in testStoreAudioPlaylistsExternal()
121 values.put(Playlists.NAME, name1); in testName()
126 new String[] { Playlists.NAME, MediaColumns.DISPLAY_NAME }, null, null)) { in testName() argument
133 values.put(Playlists.NAME, name2); in testName()
137 new String[] { Playlists.NAME, MediaColumns.DISPLAY_NAME }, null, null)) { in testName() argument
/cts/apps/CameraITS/tests/scene1_2/
Dtest_yuv_jpeg_all.py30 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
65 os.path.join(log_path, NAME), img_type, size[0], size[1]))
82 logging.debug('Starting %s', NAME)
117 pylab.figure(NAME)
118 pylab.title(NAME)
126 '%s_plot_means.png' % os.path.join(log_path, NAME))
Dtest_yuv_plus_dng.py28 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
35 logging.debug('Starting %s', NAME)
67 img, '%s_yuv.jpg' % os.path.join(log_path, NAME))
69 with open('%s.dng'%(os.path.join(log_path, NAME)), 'wb') as f:
Dtest_param_sensitivity.py31 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
43 logging.debug('Starting %s', NAME)
56 test_name_with_path = os.path.join(log_path, NAME)
100 pylab.figure(NAME)
105 pylab.title(NAME)
Dtest_raw_sensitivity.py32 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
53 logging.debug('Starting %s', NAME)
66 name_with_log_path = os.path.join(self.log_path, NAME)
113 pylab.figure(NAME)
119 pylab.title(NAME)
Dtest_yuv_plus_raw12.py29 NAME = os.path.splitext(os.path.basename(__file__))[0] variable
41 logging.debug('Starting %s', NAME)
81 os.path.join(log_path, NAME), mode), True)
91 os.path.join(log_path, NAME), mode), True)
/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/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/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java81 private static final String NAME = TAG; field in VirtualDisplayTest
161 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplay()
186 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivatePresentationVirtualDisplay()
212 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testPrivateVirtualDisplayWithDynamicSurface()
245 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testUntrustedSysDecorVirtualDisplay()
273 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testTrustedVirtualDisplay()
285 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testHdrApiMethods()
297 VirtualDisplay virtualDisplay = mDisplayManager.createVirtualDisplay(NAME, in testGetHdrCapabilitiesWithUserDisabledFormats()
319 assertEquals("display name must match supplied name", NAME, display.getName()); in assertDisplayRegistered()
327 findDisplay(mDisplayManager.getDisplays(), NAME)); in assertDisplayRegistered()
[all …]
/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)

12345