/cts/tests/tests/gesture/src/android/gesture/cts/ |
D | GestureStrokeTest.java | 32 private LineGestureStrokeHelper mHelper; field in GestureStrokeTest 36 mHelper = new LineGestureStrokeHelper(); in setUp() 43 GestureStroke emptyStroke = mHelper.createGestureStroke(); in testGetPath_empty() 52 GestureStroke emptyStroke = mHelper.createGestureStroke(new GesturePoint(0, 0, 0)); in testGetPath_singlePoint() 62 GestureStroke lineStroke = mHelper.createLineGesture(); in testGetPath_line() 64 mHelper.assertLineBoundingBox(linePath); in testGetPath_line() 73 GestureStroke lineStroke = mHelper.createLineGesture(); in testToPath_line() 79 mHelper.assertLineBoundingBox(linePath); in testToPath_line() 90 GestureStroke lineStroke = mHelper.createLineGesture(); in testToPath_boundedLine() 110 GestureStroke line = mHelper.createLineGesture(); in testComputeOrientedBoundingBox() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | MonthDisplayHelperTest.java | 160 MonthDisplayHelper mHelper = new MonthDisplayHelper(2007, Calendar.SEPTEMBER, in testPrevMonth() local 163 assertArrayEquals(new int[] { 26, 27, 28, 29, 30, 31, 1 }, mHelper.getDigitsForRow(0)); in testPrevMonth() 165 mHelper.previousMonth(); in testPrevMonth() 167 assertEquals(Calendar.AUGUST, mHelper.getMonth()); in testPrevMonth() 168 assertArrayEquals(new int[] { 29, 30, 31, 1, 2, 3, 4 }, mHelper.getDigitsForRow(0)); in testPrevMonth() 170 mHelper = new MonthDisplayHelper(2007, Calendar.JANUARY); in testPrevMonth() 172 mHelper.previousMonth(); in testPrevMonth() 174 assertEquals(2006, mHelper.getYear()); in testPrevMonth() 175 assertEquals(Calendar.DECEMBER, mHelper.getMonth()); in testPrevMonth() 180 MonthDisplayHelper mHelper = new MonthDisplayHelper(2007, Calendar.SEPTEMBER, in testIsWithinCurrentMonth() local [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Database.java | 34 private final SQLiteOpenHelper mHelper; field in Database 44 mHelper = new SQLiteOpenHelper(context, name, null /* factory */, version) { in Database() 90 return mHelper.getReadableDatabase() in query() 104 return mHelper.getWritableDatabase().insert(table, null /* nullColumnHack */, values); in insert() 119 return mHelper.getWritableDatabase().delete(table, selection, selectionArgs); in delete() 136 return mHelper.getWritableDatabase().update(table, values, selection, selectionArgs); in update() 143 mHelper.close(); in close()
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio.cpp | 51 AAudioStreamBuilder* builder() const { return mHelper->builder(); } in builder() 52 AAudioStream* stream() const { return mHelper->stream(); } in stream() 53 const StreamBuilderHelper::Parameters& actual() const { return mHelper->actual(); } in actual() 54 int32_t framesPerBurst() const { return mHelper->framesPerBurst(); } in framesPerBurst() 107 aaudio_format_t format = AAudioStream_getFormat(mHelper->stream()); in getDataBuffer() 123 aaudio_format_t format = AAudioStream_getFormat(mHelper->stream()); in allocateDataBuffer() 150 mHelper->startStream(); in testTimestamp() 182 mHelper->stopStream(); in testTimestamp() 192 std::unique_ptr<T> mHelper; member in AAudioStreamTest 214 mHelper.reset(new InputStreamBuilderHelper( in SetUp() [all …]
|
D | test_aaudio_callback.cpp | 171 mHelper->createAndVerifyStream(&mSetupSuccessful); in createAndVerifyHonoringMMap() 179 ASSERT_FALSE(AAudioExtensions::getInstance().isMMapUsed(mHelper->stream())); in createAndVerifyHonoringMMap() 185 AAudioStreamBuilder* builder() const { return mHelper->builder(); } in builder() 186 AAudioStream* stream() const { return mHelper->stream(); } in stream() 187 const StreamBuilderHelper::Parameters& actual() const { return mHelper->actual(); } in actual() 189 std::unique_ptr<T> mHelper; member in AAudioStreamCallbackTest 224 mHelper.reset(new InputStreamBuilderHelper( in SetUp() 230 mHelper->initBuilder(); in SetUp() 266 mHelper->startStream(); in TEST_P() 280 mHelper->waitForState(AAUDIO_STREAM_STATE_STOPPED); in TEST_P() [all …]
|
/cts/tests/camera/src/android/hardware/cts/ |
D | LegacyCameraPerformanceTest.java | 52 private CameraPerformanceTestHelper mHelper; field in LegacyCameraPerformanceTest 58 mHelper = new CameraPerformanceTestHelper(); in setUp() 64 if (mHelper.getCamera() != null) { in tearDown() 65 mHelper.getCamera().release(); in tearDown() 93 mHelper.initializeMessageLooper(id); in testLegacyApiPerformance() 96 Parameters parameters = mHelper.getCamera().getParameters(); in testLegacyApiPerformance() 108 mHelper.getCamera().setParameters(parameters); in testLegacyApiPerformance() 112 mHelper.getCamera().setPreviewTexture(previewTexture); in testLegacyApiPerformance() 114 mHelper.startPreview(); in testLegacyApiPerformance() 119 mHelper.autoFocus(); in testLegacyApiPerformance() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 89 private NotificationHelper mHelper; field in NotificationAssistantServiceTest 107 mHelper = new NotificationHelper(mContext); in setUp() 108 mPreviousAssistant = mHelper.getEnabledAssistant(); in setUp() 130 mHelper.enableOtherPkgAssistantIfNeeded(mPreviousAssistant); in tearDown() 135 mNotificationListenerService = mHelper.enableListener(PKG); in testOnNotificationEnqueued() 141 StatusBarNotification sbn = mHelper.findPostedNotification( in testOnNotificationEnqueued() 151 mNotificationAssistantService = mHelper.enableAssistant(PKG); in testOnNotificationEnqueued() 154 sbn = mHelper.findPostedNotification(null, 1, NotificationHelper.SEARCH_TYPE.POSTED); in testOnNotificationEnqueued() 169 StatusBarNotification sbn = mHelper.findPostedNotification( in testAdjustNotification_userSentimentKey() 198 StatusBarNotification sbn = mHelper.findPostedNotification( in testAdjustNotification_proposedImportanceKey() [all …]
|
D | NotificationManager29Test.java | 72 NotificationHelper mHelper; field in NotificationManager29Test 82 mHelper = new NotificationHelper(mContext); in setUp() 87 mHelper.disableListener(PKG); in tearDown() 140 assertNotNull(mHelper.enableListener(PKG)); in testPostFullScreenIntent_noPermission() 153 StatusBarNotification n = mHelper.findPostedNotification( in testPostFullScreenIntent_noPermission()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 79 private NotificationHelper mHelper; field in LegacyNotificationManagerTest 86 mHelper = new NotificationHelper(mContext); in setUp() 87 mHelper.disableListener(PKG); in setUp() 107 mHelper.disableListener(PKG); in tearDown() 200 mListener = mHelper.enableListener(PKG); in testSuspendPackage() 204 StatusBarNotification sbn = mHelper.findPostedNotification( in testSuspendPackage() 211 assertTrue(mHelper.isNotificationGone(sbn.getKey())); in testSuspendPackage() 216 assertNotNull(mHelper.findPostedNotification( in testSuspendPackage() 222 mListener = mHelper.enableListener(PKG); in testSuspendedPackageSendNotification() 237 assertNotNull(mHelper.findPostedNotification( in testSuspendedPackageSendNotification() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/ |
D | NotificationManager28Test.java | 59 private NotificationHelper mHelper; field in NotificationManager28Test 69 mHelper = new NotificationHelper(mContext); in setUp() 70 assertNotNull(mHelper.enableListener(PKG)); in setUp() 75 mHelper.disableListener(PKG); in tearDown() 101 StatusBarNotification n = mHelper.findPostedNotification( in testPostFullScreenIntent_noPermission()
|
/cts/libs/helpers/core/src/com/android/cts/helpers/ |
D | DeviceInteractionHelperRule.java | 81 private T mHelper; field in DeviceInteractionHelperRule 122 if (mHelper == null) { in getHelper() 125 return mHelper; in getHelper() 227 mHelper = mHelperManager.get(mHelperClass, classMatch); in evaluate() 234 if (mHelper == null) { in evaluate()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | VideoCodecTestBase.java | 959 private MediaEncoderAsyncHelper mHelper; field in VideoCodecTestBase.MediaEncoderAsync 967 if (mHelper == null) { 972 byte[] encFrame = mHelper.getInputFrame(); 1005 if (mHelper == null) { 1050 mHelper.saveAvgQp(avgQp); 1058 if (mHelper.saveOutputFrame(out)) { 1090 mHelper = helper; in setAsyncHelper()
|