Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 116) sorted by relevance

12345

/cts/tests/media/jni/
DNativeMediaCommon.cpp56 bool hasRefCSD = AMediaFormat_getBuffer(refFormat, name, &refCsd.first, &refCsd.second); in isCSDIdentical()
57 bool hasTestCSD = AMediaFormat_getBuffer(testFormat, name, &testCsd.first, &testCsd.second); in isCSDIdentical()
63 if (refCsd.second != testCsd.second) { in isCSDIdentical()
64 ALOGW("ref/test %s buffer sizes are not identical %zu/%zu", name, refCsd.second, in isCSDIdentical()
65 testCsd.second); in isCSDIdentical()
68 if (memcmp(refCsd.first, testCsd.first, refCsd.second)) { in isCSDIdentical()
/cts/tests/tests/slice/src/android/slice/cts/
DSliceSpecTest.java35 SliceSpec second = new SliceSpec("second", 1); in testDifferentTypes() local
37 assertFalse(first.canRender(second)); in testDifferentTypes()
38 assertFalse(second.canRender(first)); in testDifferentTypes()
41 verify(second); in testDifferentTypes()
47 SliceSpec second = new SliceSpec("namespace", 1); in testRenderDifference() local
49 assertTrue(first.canRender(second)); in testRenderDifference()
50 assertFalse(second.canRender(first)); in testRenderDifference()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringTest.java166 Spanned second = (Spanned) first.subSequence(2,4); in testSubsequence_copiesSpans() local
167 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testSubsequence_copiesSpans()
173 {underlineSpan, 0, second.length(), Spanned.SPAN_PRIORITY}, in testSubsequence_copiesSpans()
179 assertEquals(expected[i][1], second.getSpanStart(secondSpan)); in testSubsequence_copiesSpans()
180 assertEquals(expected[i][2], second.getSpanEnd(secondSpan)); in testSubsequence_copiesSpans()
181 assertEquals(expected[i][3], second.getSpanFlags(secondSpan)); in testSubsequence_copiesSpans()
194 SpannableString second = new SpannableString(first); in testCopyConstructor_copiesAllSpans() local
195 Object[] secondSpans = second.getSpans(0, second.length(), Object.class); in testCopyConstructor_copiesAllSpans()
202 assertEquals(first.getSpanStart(firstSpan), second.getSpanStart(secondSpan)); in testCopyConstructor_copiesAllSpans()
203 assertEquals(first.getSpanEnd(firstSpan), second.getSpanEnd(secondSpan)); in testCopyConstructor_copiesAllSpans()
[all …]
DSpannableStringBuilderTest.java710 Object second = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst() local
713 builder.setSpan(second, 0, text.length(), flags); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
720 assertEquals(second, spans[1]); in testGetSpans_returnsSpansInInsertionOrderWhenTheLaterCoversTheFirst()
728 Object second = new SubscriptSpan(); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder() local
736 builder.setSpan(second, 2, 4, flagsPriority); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
744 assertEquals(second, spans[0]); in testGetSpans_returnsSpansSortedFirstByPriorityThenByInsertionOrder()
755 Object second = new SubscriptSpan(); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls() local
761 builder.setSpan(second, 0, text.length(), flags); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
764 builder.removeSpan(second); in testGetSpans_returnsSpansInInsertionOrderAfterRemoveSpanCalls()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1UTCTime.java40 private int second; field in Asn1UTCTime
57 second = other.second; in assignTo()
101 return second; in getSecond()
105 second = newSecond; in setSecond()
115 builder.append(twoDigit.format(second)); in encodeToIA5String()
135 builder.append(twoDigit.format(second)); in toHumanReadableString()
211 second = Integer.parseInt(result.substring(yearLength + 8, yearLength + 10)); in retrieveResult()
213 second = 0; in retrieveResult()
/cts/suite/audio_quality/test/
DTaskCaseTest.cpp63 ASSERT_TRUE(((list->front().second.get() == buffer1.get()) && in TEST_F()
64 (list->back().second.get() == buffer2.get())) || in TEST_F()
65 ((list->front().second.get() == buffer2.get()) && in TEST_F()
66 (list->back().second.get() == buffer1.get()))); in TEST_F()
104 ASSERT_TRUE(((list->front().second == val2) && (list->back().second == val3)) || in TEST_F()
105 ((list->front().second == val3) && (list->back().second == val4))); in TEST_F()
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/
DEmbeddingActivity.java17 package android.server.wm.second;
19 import static android.server.wm.second.Components.EmbeddingActivity.ACTION_EMBEDDING_TEST_ACTIVITY_…
20 import static android.server.wm.second.Components.EmbeddingActivity.EXTRA_EMBEDDING_COMPONENT_NAME;
21 import static android.server.wm.second.Components.EmbeddingActivity.EXTRA_EMBEDDING_TARGET_DISPLAY;
DSecondActivity.java17 package android.server.wm.second;
19 import static android.server.wm.second.Components.SecondActivity.EXTRA_DISPLAY_ACCESS_CHECK;
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java130 boolean italic = style.second.booleanValue(); in testBuilder_buffer()
151 boolean italic = style.second.booleanValue(); in testBuilder_buffer_ttc()
173 boolean italic = style.second.booleanValue(); in testBuilder_buffer_vf()
197 boolean italic = style.second.booleanValue(); in testBuilder_buffer_override()
214 boolean italic = style.second.booleanValue(); in testBuilder_buffer_override()
246 boolean italic = style.second.booleanValue(); in testBuilder_file()
272 boolean italic = style.second.booleanValue(); in testBuilder_file_ttc()
299 boolean italic = style.second.booleanValue(); in testBuilder_file_vf()
328 boolean italic = style.second.booleanValue(); in testBuilder_file_override()
349 boolean italic = style.second.booleanValue(); in testBuilder_file_override()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java1078 private boolean equalsAccessiblityEvent(AccessibilityEvent first, AccessibilityEvent second) { in equalsAccessiblityEvent() argument
1079 return first.getEventType() == second.getEventType() in equalsAccessiblityEvent()
1080 && first.isChecked() == second.isChecked() in equalsAccessiblityEvent()
1081 && first.getCurrentItemIndex() == second.getCurrentItemIndex() in equalsAccessiblityEvent()
1082 && first.isEnabled() == second.isEnabled() in equalsAccessiblityEvent()
1083 && first.getFromIndex() == second.getFromIndex() in equalsAccessiblityEvent()
1084 && first.getItemCount() == second.getItemCount() in equalsAccessiblityEvent()
1085 && first.isPassword() == second.isPassword() in equalsAccessiblityEvent()
1086 && first.getRemovedCount() == second.getRemovedCount() in equalsAccessiblityEvent()
1087 && first.isScrollable()== second.isScrollable() in equalsAccessiblityEvent()
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskSave.cpp91 if (!it->second->saveToFile(fileName)) { in handleFile()
128 if (it->second.getType() == TaskCase::Value::ETypeDouble) { in handleReport()
129 details.appendFormat(" %s: %f\n", it->first.string(), it->second.getDouble()); in handleReport()
132 it->second.getInt64()); in handleReport()
/cts/common/device-side/nativetesthelper/jni/
Dgtest_wrapper.cpp227 found->second.run = true; in Java_com_android_gtestrunner_GtestRunner_nAddTest()
240 if (!entry.second.run) continue; in Java_com_android_gtestrunner_GtestRunner_nRun()
243 if (entry.second.nativeName.find("DISABLED_") == 0 || in Java_com_android_gtestrunner_GtestRunner_nRun()
244 entry.second.nativeName.find("/DISABLED_") != std::string::npos || in Java_com_android_gtestrunner_GtestRunner_nRun()
245 entry.second.nativeName.find(".DISABLED_") != std::string::npos) { in Java_com_android_gtestrunner_GtestRunner_nRun()
249 filterStream << entry.second.nativeName << ":"; in Java_com_android_gtestrunner_GtestRunner_nRun()
/cts/tests/tests/location/src/android/location/cts/psedorange/
DGpsTime.java79 public GpsTime(int year, int month, int day, int hour, int minute, double second) { in GpsTime() argument
81 (int) second, (int) ((second * nanoSecPerSec) % nanoSecPerSec)); in GpsTime()
203 int second = (int) TimeUnit.NANOSECONDS.toSeconds(gpsNanos % NANOS_IN_WEEK);
204 return Pair.create(week, second);
/cts/tests/tests/graphics/src/android/graphics/cts/
DSumPathEffectTest.java65 PathEffect second = new DashPathEffect(new float[] { 10, 5 }, 5); in testSumPathEffect() local
66 paint.setPathEffect(second); in testSumPathEffect()
69 SumPathEffect sumPathEffect = new SumPathEffect(second, first); in testSumPathEffect()
DTypefaceCustomFallbackBuilderTest.java54 final boolean italic = style.second.booleanValue(); in createFullFamilyTypeface()
72 final boolean italic = style.second.booleanValue(); in testSingleFont_path()
87 final boolean italic = style.second.booleanValue(); in testSingleFont_ttc()
103 final boolean italic = style.second.booleanValue(); in testSingleFont_vf()
126 final boolean italic = style.second.booleanValue(); in testFamily_selectStyle()
139 final boolean italic = familyStyle.second.booleanValue(); in testFamily_selectStyleByBuilder()
151 testStyle.second.booleanValue() in testFamily_selectStyleByBuilder()
/cts/tests/tests/database/src/android/database/cts/
DContentObservableTest.java60 MyContentObserver second = new MyContentObserver(); in testNotifyChange() local
61 mContentObservable.registerObserver(second); in testNotifyChange()
68 assertTrue(second.hasChanged()); in testNotifyChange()
/cts/hostsidetests/jvmti/base/jni/
Dredefine.cpp80 if (stack == redefinitions_.end() || stack->second.empty()) { in RetrieveRedefinition()
83 *data = stack->second.top(); in RetrieveRedefinition()
91 if (stack == redefinitions_.end() || stack->second.empty()) { in PopRedefinition()
94 stack->second.pop(); in PopRedefinition()
/cts/tests/tests/telecom/src/android/telecom/cts/
DAdhocConferenceTest.java68 ConnectionRequest request = verifyAdhocConferenceCall().second; in testStartConference()
93 assertTrue(resultPair.second.isAdhocConferenceCall()); in testAddNewIncomingConference_onAnswer()
124 assertTrue(resultPair.second.isAdhocConferenceCall()); in testConferenceCallAddConferenceParticipants()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplaySecurityTests.java30 import static android.server.wm.second.Components.EMBEDDING_ACTIVITY;
31 import static android.server.wm.second.Components.EmbeddingActivity.ACTION_EMBEDDING_TEST_ACTIVITY_…
32 import static android.server.wm.second.Components.EmbeddingActivity.EXTRA_EMBEDDING_COMPONENT_NAME;
33 import static android.server.wm.second.Components.EmbeddingActivity.EXTRA_EMBEDDING_TARGET_DISPLAY;
34 import static android.server.wm.second.Components.SECOND_ACTIVITY;
35 import static android.server.wm.second.Components.SECOND_LAUNCH_BROADCAST_ACTION;
36 import static android.server.wm.second.Components.SECOND_LAUNCH_BROADCAST_RECEIVER;
37 import static android.server.wm.second.Components.SECOND_NO_EMBEDDING_ACTIVITY;
38 import static android.server.wm.second.Components.SecondActivity.EXTRA_DISPLAY_ACCESS_CHECK;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDataPathInBandTestCase.java191 if (info.first == null || info.second == null) { in executeTestSubscriber()
197 if (info.second.getNetworkSpecifier() != null) { in executeTestSubscriber()
208 if (!(info.second.getTransportInfo() instanceof WifiAwareNetworkInfo)) { in executeTestSubscriber()
214 (WifiAwareNetworkInfo) info.second.getTransportInfo(); in executeTestSubscriber()
406 if (info.first == null || info.second == null) { in executeTestPublisher()
412 if (info.second.getNetworkSpecifier() != null) { in executeTestPublisher()
DDiscoveryWithRangingTestCase.java250 if (results.second == null || results.second.size() != 1) { in executeRanging()
254 RangingResult result = results.second.get(0); in executeRanging()
/cts/tests/tests/location/protos/
Dephemeris.proto39 // Time of clock (second).
42 // Time of ephemeris (second).
82 // Amplitude of second-order harmonic perturbations.
/cts/tests/camera/src/android/hardware/camera2/cts/
DCaptureResultTest.java202 List<CaptureResult> partialResults = resultPair.second; in testPartialResult()
325 prevImage, result.second); in testResultTimestamps()
336 prevImage, result2.second); in testResultTimestamps()
338 jpegImage, result2.second); in testResultTimestamps()
343 mCollector.expectGreater("Timestamps must be increasing.", result.second, in testResultTimestamps()
344 result2.second); in testResultTimestamps()
353 long resultDiff = result4.second - result3.second; in testResultTimestamps()
358 prevImage, result3.second); in testResultTimestamps()
362 prevImage, result4.second); in testResultTimestamps()
368 mCollector.expectGreater("Timestamps must be increasing.", result3.second, in testResultTimestamps()
[all …]
DDngCreatorTest.java161 DngCreator dngCreator = new DngCreator(characteristics, resultPair.second); in testSingleImageBasic()
255 resultPair.second.get(CaptureResult.SENSOR_TIMESTAMP) / 1000000); in testSingleImageThumbnail()
261 DngCreator dngCreator = new DngCreator(characteristics, resultPair.second); in testSingleImageThumbnail()
397 data.characteristics, data.imagePair.second, /*offsetX*/ 0, /*offsetY*/ 0, in testRaw16JpegConsistency()
406 new DngCreator(data.characteristics, data.imagePair.second); in testRaw16JpegConsistency()
476 DngCreator dngCreator = new DngCreator(data.characteristics, data.imagePair.second); in testDngRenderingByBitmapFactor()
649 return new Pair<Image, CaptureResult>(res.first.get(0), res.second); in captureSingleRawShot()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostResultTest.java159 private static void assertFilesAreEqual(File first, File second) throws Exception { in assertFilesAreEqual() argument
161 first.getAbsolutePath(), second.getAbsolutePath()); in assertFilesAreEqual()

12345