Home
last modified time | relevance | path

Searched +defs:val +defs:expected (Results 1 – 25 of 51) sorted by relevance

123

/aosp12/hardware/interfaces/renderscript/1.0/vts/functional/
H A DVtsCopyTests.cpp46 std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; }); in TEST_P() local
82 std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; }); in TEST_P() local
119 std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; }); in TEST_P() local
150 std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; }); in TEST_P() local
193 std::vector<float> dataIn(512*512), dataOut(256*256), expected(256*256); in TEST_P() local
194 std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return (float)val++; }); in TEST_P() local
245 std::vector<float> dataIn(128*128*128), dataOut(64*64*64), expected(64*64*64); in TEST_P() local
294 std::vector<float> dataIn(512*512), dataOut(256*256), expected; in TEST_P() local
351 std::vector<uint8_t> dataIn(64*64), dataOut(32*32), expected(32*32); in TEST_P() local
353 [](){ static int val = 0; return (uint8_t)(0xFF & val++); }); in TEST_P() local
[all …]
H A DVtsScriptTests.cpp208 std::vector<uint8_t> dataIn(64), dataOut(64), expected(64); in TEST_P() local
209 std::generate(dataIn.begin(), dataIn.end(), [](){ static uint8_t val = 0; return val++; }); in TEST_P() local
210 std::generate(expected.begin(), expected.end(), [](){ static uint8_t val = 1; return val++; }); in TEST_P() local
258 std::generate(dataIn.begin(), dataIn.end(), [](){ static int val = 0; return val++; }); in TEST_P() local
311 std::vector<int> dataIn(64), dataOut(64), expected(64, 5); in TEST_P() local
427 std::vector<uint8_t> dataIn(128, 128), dataOut(128, 0), expected(128, 7+1); in TEST_P() local
504 std::vector<uint8_t> dataIn(128, 128), dataOut(128, 0), expected(128, 128 + 1); in TEST_P() local
/aosp12/art/test/542-inline-trycatch/src/
H A DMain.java48 int val = 0; in testSingleBlockFromTry() local
64 int val = 0; in testSingleBlockFromCatch() local
75 int val = 0; in testMultipleBlocksFromTry() local
103 int val = 0; in testMultipleBlocksFromCatch() local
121 int val = 0; in testTryCatchFromTry() local
139 int val = 0; in testTryCatchFromCatch() local
165 private static void assertEquals(int expected, int actual) { in assertEquals()
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DAssert.java106 public static void equals(final int expected, final int actual) { in equals()
112 public static void equals(final long expected, final long actual) { in equals()
118 public static void equals(final Object expected, final Object actual) { in equals()
125 public static void oneOf(final int actual, final int ...expected) { in oneOf()
135 final int val, final int rangeMinInclusive, final int rangeMaxInclusive) { in inRange()
143 final long val, final long rangeMinInclusive, final long rangeMaxInclusive) { in inRange()
/aosp12/art/test/660-checker-simd-sad/src/
H A DSimdSadShort3.java216 private static int sadShort2IntInvariantRight(short[] s, int val) { in sadShort2IntInvariantRight()
257 private static int sadShort2IntInvariantLeft(short[] s, int val) { in sadShort2IntInvariantLeft()
415 private static void expectEquals(int expected, int result) { in expectEquals()
421 private static void expectEquals(long expected, long result) { in expectEquals()
/aosp12/system/keymaster/tests/
H A Dandroid_keymaster_test_utils.h58 KeymasterEnum val) { in contains()
65 KeymasterEnum val) { in contains()
73 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT, Tag> tag, uint32_t val) { in contains()
79 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT_REP, Tag> tag, uint32_t val) { in contains()
87 bool contains(const AuthorizationSet& set, TypedTag<KM_ULONG, Tag> tag, uint64_t val) { in contains()
93 bool contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) { in contains()
100 bool contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) { in contains()
306 bool ResponseContains(const std::vector<T>& expected, const T* values, size_t len) { in ResponseContains()
311 template <typename T> bool ResponseContains(T expected, const T* values, size_t len) { in ResponseContains()
H A Dauthorization_set_test.cpp267 uint32_t val; in read_uint32() local
273 uint32_t val; in add_to_uint32() local
445 uint32_t val; in TEST() local
465 uint64_t val; in TEST() local
487 uint64_t val; in TEST() local
507 keymaster_algorithm_t val; in TEST() local
526 keymaster_purpose_t val; in TEST() local
547 uint64_t val; in TEST() local
565 keymaster_blob_t val; in TEST() local
656 AuthorizationSet expected(AuthorizationSetBuilder() in TEST() local
[all …]
/aosp12/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
H A DUtil.java91 Object val = statusField.get(klass); in isInitialized() local
100 public static void assertTrue(boolean val, String msg) { in assertTrue()
106 public static void assertInitializedState(String className, boolean expected, in assertInitializedState()
/aosp12/art/libartbase/base/
H A Dhistogram_test.cc125 …std::string expected("UpdateRange:\tSum: 2.654ms 99% C.I. 15us-212us Avg: 126.380us Max: 212us\n"); in TEST() local
168 std::string expected("Reset:\tSum: 2.654ms 99% C.I. 15us-212us Avg: 126.380us Max: 212us\n"); in TEST() local
207 …std::string expected("MultipleCreateHist:\tSum: 2.654ms 99% C.I. 15us-212us Avg: 126.380us Max: 21… in TEST() local
222 std::string expected = "SingleValue:\tSum: 1us 99% C.I. 1us-1us Avg: 1us Max: 1us\n"; in TEST() local
242 for (uint64_t val = 1ull; val <= 4ull; val++) { in TEST() local
265 …std::string expected = "SpikyValues:\tSum: 14.350ms 99% C.I. 0.089us-2541.825us Avg: 95.033us Max:… in TEST() local
/aosp12/frameworks/native/libs/binder/tests/
H A DbinderTextOutputTest.cpp31 const char* expected, in CheckMessage()
47 #define CHECK_VAL_(val, singleline) \ argument
56 #define CHECK_VAL(val) CHECK_VAL_(val, true) argument
100 android::Parcel val; in TEST() local
106 android::HexDump val(buf, sizeof(buf)); in TEST() local
112 android::HexDump val(buf, sizeof(buf), 4); in TEST() local
117 android::TypeCode val(1234); in TEST() local
122 int32_t val = 321; //0x141 in TEST() local
127 android::String8 val("foobar"); in TEST() local
132 android::String16 val("foobar"); in TEST() local
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DUiBot.java102 public void assertWindowTitle(String expected) { in assertWindowTitle()
139 public void assertDialogText(String expected) throws UiObjectNotFoundException { in assertDialogText()
145 TypedValue val = new TypedValue(); in inFixedLayout() local
/aosp12/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
H A DVehicleObjectPool.h35 #define INC_METRIC_IF_DEBUG(val) PoolStats::instance()->val++; argument
219 bool check(hidl_vec<VecType>* vec, bool expected) { in check()
/aosp12/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator_test.cpp194 String* val = test::GetValue<String>(table.get(), "android:string/four"); in TEST() local
247 std::unique_ptr<Plural> expected = util::make_unique<Plural>(); in TEST() local
/aosp12/system/update_engine/aosp/
H A Ddynamic_partition_control_android_unittest.cc182 const PartitionSuffixSizes& expected) { in UpdatePartitionMetadata()
191 const DeltaArchiveManifest& expected) { in UpdatePartitionMetadata()
238 PartitionSuffixSizes expected{{S("system"), 2_GiB}, in TEST_P() local
277 PartitionSuffixSizes expected{ in TEST_P() local
291 PartitionSuffixSizes expected{ in TEST_P() local
576 DeltaArchiveManifest expected; in TEST_P() local
605 DeltaArchiveManifest expected; in TEST_P() local
621 DeltaArchiveManifest expected; in TEST_P() local
633 DeltaArchiveManifest expected; in TEST_P() local
655 DeltaArchiveManifest expected; in TEST_P() local
[all …]
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
H A DDhcpPacketTest.java270 private void checkIpAddress(String expected, Inet4Address clientIp, Inet4Address yourIp, in checkIpAddress()
276 private void checkIpAddress(String expected, byte type, in checkIpAddress()
668 private void assertDhcpErrorCodes(int expected, int got) { in assertDhcpErrorCodes()
1303 private static byte[] intToByteArray(int val) { in intToByteArray()
1307 private static byte[] shortToByteArray(short val) { in shortToByteArray()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
H A DQuotaControllerTest.java399 private void setDeviceConfigLong(String key, long val) { in setDeviceConfigLong()
407 private void setDeviceConfigInt(String key, int val) { in setDeviceConfigInt()
516 List<TimingSession> expected = new ArrayList<>(); in testOnAppRemovedLocked() local
2948 List<TimingSession> expected = new ArrayList<>(); in testTimerTracking_Discharging() local
3024 List<TimingSession> expected = new ArrayList<>(); in testTimerTracking_ChargingAndDischarging() local
3115 List<TimingSession> expected = new ArrayList<>(); in testTimerTracking_AllBackground() local
3214 List<TimingSession> expected = new ArrayList<>(); in testTimerTracking_ForegroundAndBackground() local
3402 List<TimingSession> expected = new ArrayList<>(); in testTimerTracking_TopAndNonTop() local
3523 List<TimingSession> expected = new ArrayList<>(); in testTimerTracking_TempAllowlisting() local
4618 List<TimingSession> expected = new ArrayList<>(); in testEJTimerTracking_Discharging() local
[all …]
/aosp12/system/core/debuggerd/handler/
H A Ddebuggerd_fallback.cpp203 uint64_t val = trace_output.load(); in trace_handler() local
265 uint64_t expected = pack_thread_fd(-1, -1); in trace_handler() local
/aosp12/packages/apps/TV/libs/
H A Dtruth-0.45.jar ... .common.truth.Correspondence$ExceptionStore) Object expected Object expected Object key int i Object key Object actual ...
/aosp12/hardware/libhardware/modules/camera/3_4/metadata/
H A Dmetadata_test.cpp46 uint8_t val = 1; in SetUp() local
61 virtual void CompareTags(const std::set<int32_t>& expected, in CompareTags()
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
H A DTestHarness.cpp78 double expected = static_cast<double>(expectedBuffer[i]); in expectNear() local
713 std::transform(data, data + numberOfElements, floatData, [&op](T val) { in convertOperandToFloat32()
718 [](T val) { return static_cast<float>(val); }); in convertOperandToFloat32()
801 std::transform(floatData, floatData + numberOfElements, data, [op](float val) { in setDataFromFloat32Buffer()
809 [](float val) { return static_cast<T>(val); }); in setDataFromFloat32Buffer()
/aosp12/frameworks/av/media/codec2/sfplugin/tests/
H A DMediaCodec_sanity_test.cpp433 const static uint8_t expected[] = { 210, 16, 146 }; in TEST_P() local
436 uint8_t val = buf->data()[img->mPlane[ix].mOffset + img->mPlane[ix].mColInc * x in TEST_P() local
/aosp12/art/test/476-checker-ctor-fence-redun-elim/src/
H A DMain.java62 public static void stringEquals(String expected, Object actual) { in stringEquals()
67 private static void stringEquals$noinline$(String expected, Object actual) { in stringEquals$noinline$()
822 public static String valueToString(Object val) { in valueToString()
/aosp12/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_unit_tests.cpp1397 std::string expected = in BacktraceDumpOnSignal() local
1459 std::string expected = in TEST_F() local
1508 std::string expected = in TEST_F() local
1565 std::string expected = in TEST_F() local
2134 std::string expected; in VerifyRecordAllocs() local
2228 std::string expected; in TEST_F() local
2316 std::string expected; in TEST_F() local
2533 int val; in TEST_F() local
2619 std::string expected(kDumpInfo); in TEST_F() local
2653 std::string expected = "This message should appear before the output.\n" in TEST_F() local
[all …]
/aosp12/frameworks/av/media/codec2/tests/
H A DC2ComponentInterface_test.cpp220 void C2CompIntfTest::queryParamAsExpected(const T &expected) { in queryParamAsExpected()
483 for (const auto &val : validValues) { in testWritableParam() local
502 for (const auto &val : invalidValues) { in testWritableParam() local
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
H A DAppStateTrackerTest.java142 Integer val = mGlobalSettings.get(key); in injectGetGlobalSettingInt() local
1525 private void checkAnyAppIdUnexempt(int[] prevArray, int[] newArray, boolean expected) { in checkAnyAppIdUnexempt()

123