/system/core/libutils/ |
D | StrongPointer_test.cpp | 40 SPFoo* foo = sp1.get(); in TEST() local 41 ASSERT_EQ(1, foo->getStrongCount()); in TEST() 44 ASSERT_EQ(1, foo->getStrongCount()) << "std::move failed, incremented refcnt"; in TEST() 59 sp<SPFoo> foo; in TEST() local 60 ASSERT_EQ(foo, nullptr); in TEST() 61 ASSERT_EQ(nullptr, foo); in TEST() 66 sp<SPFoo> foo = sp<SPFoo>::make(&isDeleted); in TEST() local 67 ASSERT_EQ(foo.get(), foo); in TEST() 68 ASSERT_EQ(foo, foo.get()); in TEST() 69 ASSERT_NE(nullptr, foo); in TEST() [all …]
|
D | RefBase_test.cpp | 88 Foo* foo = new Foo(&isDeleted); in TEST() local 89 ASSERT_EQ(INITIAL_STRONG_VALUE, foo->getStrongCount()); in TEST() 91 sp<Foo> sp1(foo); in TEST() 93 ASSERT_EQ(1, foo->getStrongCount()); in TEST() 95 ASSERT_EQ(2, foo->getWeakRefs()->getWeakCount()); in TEST() 98 ASSERT_EQ(1, foo->getStrongCount()) in TEST() 116 Foo* foo = new Foo(&isDeleted); in TEST() local 117 EXPECT_EQ(0, foo->getWeakRefs()->getWeakCount()); in TEST() 119 wp<Foo> wp1(foo); in TEST() 120 EXPECT_EQ(1, foo->getWeakRefs()->getWeakCount()); in TEST() [all …]
|
/system/extras/ioshark/ |
D | compile-only.sh | 11 fgrep -v '= -1' bar > foo 12 mv foo bar 29 fgrep android_fs_data $1 | sed 's/^.* \[.*\] //' | sed s/://g | sed s/,//g > foo 30 sed 's/android_fs_dataread_start/read/' foo > bar1 33 awk '{ print $2, "ftrace", $3, $5, $7, $9, $13 }' bar > foo 36 awk '{print $7}' foo | sort | uniq > pidlist 39 awk -v pid=$i '{ if (pid == $7) print $0}' foo > fstrace.$i 42 rm foo 62 process_strace $stracefile foo.$pid 63 if ! [ -s foo.$pid ]; then [all …]
|
D | collect-straces-ftraces.sh | 11 fgrep -v '= -1' bar > foo 12 mv foo bar 29 fgrep android_fs_data $1 | sed 's/^.* \[.*\] //' | sed s/://g | sed s/,//g > foo 31 sed 's/android_fs_dataread_start/read/' foo > bar1 34 awk '{ print $2, "ftrace", $3, $5, $7, $9, $13 }' bar > foo 38 awk '{print $7}' foo | sort | uniq > pidlist 41 awk -v pid=$i '{ if (pid == $7) print $0}' foo > fstrace.$i 44 rm foo 64 process_strace $stracefile foo.$pid 65 if ! [ -s foo.$pid ]; then [all …]
|
D | collect-straces.sh | 43 fgrep -v '= -1' bar > foo 49 awk -v begin="$begin_time" '{ printf "%f strace ", $1 - begin; $1=""; print $0}' foo > bar
|
/system/tools/aidl/tests/java_app/src/android/aidl/tests/ |
D | ImmutableAnnotationTests.java | 52 Foo foo = new Foo(7, new Bar("my"), list, map, array); in testReadWriteImmutableParcelable() local 53 foo.writeToParcel(parcel, 0); in testReadWriteImmutableParcelable() 57 assertThat(foo.a, is(foo2.a)); in testReadWriteImmutableParcelable() 58 assertThat(foo.b.s, is(foo2.b.s)); in testReadWriteImmutableParcelable() 59 assertThat(foo.c.size(), is(foo.c.size())); in testReadWriteImmutableParcelable() 60 assertThat(foo.c.get(0).s, is(foo2.c.get(0).s)); in testReadWriteImmutableParcelable() 61 assertThat(foo.c.size(), is(foo.c.size())); in testReadWriteImmutableParcelable() 62 assertThat(foo.d.get("key").s, is(foo2.d.get("key").s)); in testReadWriteImmutableParcelable() 63 assertThat(foo.e.length, is(foo.e.length)); in testReadWriteImmutableParcelable() 65 for (int i = 0; i < foo.e.length; i++) { in testReadWriteImmutableParcelable() [all …]
|
D | MapTests.java | 41 Foo foo = new Foo(); in testWriteAndThenReadMaps() local 45 foo.barMap = new HashMap<>(); in testWriteAndThenReadMaps() 46 foo.barMap.put("Foo", bar); in testWriteAndThenReadMaps() 48 foo.stringMap = new HashMap<>(); in testWriteAndThenReadMaps() 49 foo.stringMap.put("Foo", "Bar"); in testWriteAndThenReadMaps() 51 foo.interfaceMap = new HashMap<>(); in testWriteAndThenReadMaps() 52 foo.interfaceMap.put("Foo", intf); in testWriteAndThenReadMaps() 54 foo.ibinderMap = new HashMap<>(); in testWriteAndThenReadMaps() 55 foo.ibinderMap.put("Foo", intf.asBinder()); in testWriteAndThenReadMaps() 57 foo.writeToParcel(parcel, 0); in testWriteAndThenReadMaps()
|
/system/bt/gd/dumpsys/ |
D | filter_test.cc | 113 const testing::FooTestSchema* foo = data_root->foo_module_data(); in TEST_F() local 115 ASSERT_EQ(123, foo->foo_int_private()); in TEST_F() 116 ASSERT_EQ(123, foo->foo_int_opaque()); in TEST_F() 117 ASSERT_EQ(123, foo->foo_int_anonymized()); in TEST_F() 118 ASSERT_EQ(123, foo->foo_int_any()); in TEST_F() 119 ASSERT_STREQ("123", foo->foo_int_string()->c_str()); in TEST_F() 121 ASSERT_FLOAT_EQ(123.456, foo->foo_float_private()); in TEST_F() 122 ASSERT_FLOAT_EQ(123.456, foo->foo_float_opaque()); in TEST_F() 123 ASSERT_FLOAT_EQ(123.456, foo->foo_float_anonymized()); in TEST_F() 124 ASSERT_FLOAT_EQ(123.456, foo->foo_float_any()); in TEST_F() [all …]
|
/system/tools/aidl/tests/ |
D | test_data_string_constants.cpp | 29 const String EXAMPLE_CONSTANT = "foo"; 127 public static final String EXAMPLE_CONSTANT = "foo"; 179 static const ::android::String16 value(::android::String16("foo")); 405 public static final String EXAMPLE_CONSTANT = "foo"; 467 static const ::android::String16 value(::android::String16("foo"));
|
/system/extras/libfscrypt/tests/ |
D | fscrypt_test.cpp | 182 #define TEST_INEQUALITY(foo, field, value) { \ in TEST() argument 183 auto bar = foo; \ in TEST() 185 EXPECT_NE(foo, bar); \ in TEST() 187 EncryptionPolicy foo; in TEST() local 188 foo.key_raw_ref = "foo"; in TEST() 195 foo.options = foo_options; in TEST() 196 EXPECT_EQ(foo, foo); in TEST() 197 TEST_INEQUALITY(foo, key_raw_ref, "bar"); in TEST() 198 TEST_INEQUALITY(foo, options.version, 2); in TEST() 199 TEST_INEQUALITY(foo, options.contents_mode, -1); in TEST() [all …]
|
/system/tools/hidl/hidl2aidl/test/ |
D | ndk_test_compile.cpp | 38 void testIFoo(const std::shared_ptr<aidl::hidl2aidl::IFoo>& foo) { in testIFoo() argument 39 ndk::ScopedAStatus status1 = foo->someBar(std::string(), std::string()); in testIFoo() 42 ndk::ScopedAStatus status2 = foo->oneOutput(&f); in testIFoo() 63 void testIFoo2(const std::shared_ptr<aidl::hidl2aidl2::IFoo>& foo) { in testIFoo2() argument 64 ndk::ScopedAStatus status = foo->someFoo(3); in testIFoo2()
|
D | cpp_test_compile.cpp | 43 void testIFoo(const sp<hidl2aidl::IFoo>& foo) { in testIFoo() argument 44 Status status1 = foo->someBar(String16(), String16()); in testIFoo() 47 Status status2 = foo->oneOutput(&f); in testIFoo() 81 void testIFoo2(const sp<hidl2aidl2::IFoo>& foo) { in testIFoo2() argument 82 Status status = foo->someFoo(3); in testIFoo2()
|
/system/tools/hidl/test/cpp_impl_test/ |
D | Android.bp | 7 "android.hardware.tests.foo@1.0", 10 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-impl-headers android.hardware.tests.foo@1.0 && " + 29 "android.hardware.tests.foo@1.0", 32 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-impl-sources android.hardware.tests.foo@1.0 && " + 52 "android.hardware.tests.foo@1.0",
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 274 IBase::Foo foo; in TEST_F() local 275 foo.x = 1; in TEST_F() 276 foo.y.z = 2.5; in TEST_F() 278 …foo.y.s = "Hello, world, \x46\x6F\x6F\x20\xC2\xA9\x20\x62\x61\x72\x20\xF0\x9D\x8C\x86\x20\x54\x72\… in TEST_F() 280 foo.aaa.resize(5); in TEST_F() 281 for (size_t i = 0; i < foo.aaa.size(); ++i) { in TEST_F() 282 foo.aaa[i].z = 1.0f + (float)i * 0.01f; in TEST_F() 283 foo.aaa[i].s = ("Hello, world " + std::to_string(i)).c_str(); in TEST_F() 288 foo, in TEST_F() 292 EXPECT_EQ(result.y.s.size(), foo.y.s.size()); in TEST_F() [all …]
|
/system/core/adb/ |
D | types_test.cpp | 60 IOVector foo = bc.take_front(3); in TEST() local 61 ASSERT_EQ(3ULL, foo.size()); in TEST() 63 ASSERT_EQ(create_block("foo"), foo.coalesce()); in TEST() 74 IOVector foo = bc.take_front(3); in TEST() local 75 ASSERT_EQ(3ULL, foo.size()); in TEST() 76 ASSERT_EQ(create_block("foo"), foo.coalesce()); in TEST()
|
/system/linkerconfig/modules/tests/ |
D | section_test.cc | 127 Namespace& foo = namespaces.emplace_back("foo"); in TEST() local 128 foo.AddProvides(std::vector{"libfoo.so"}); in TEST() 129 foo.AddRequires(std::vector{"libbar.so"}); in TEST() 175 Namespace& foo = namespaces.emplace_back("foo"); in TEST() local 176 foo.AddRequires(std::vector{"libfoo.so"}); in TEST() 189 Namespace& foo = namespaces.emplace_back("foo"); in TEST() local 190 foo.AddRequires(std::vector{"libfoo.so"}); in TEST()
|
D | apex_test.cc | 70 Namespace foo("foo"), bar("bar"); in TEST() local 71 InitializeWithApex(foo, in TEST() 89 namespaces.push_back(std::move(foo)); in TEST()
|
/system/tools/hidl/test/hidl_test/ |
D | static_test.cpp | 11 using ::android::hardware::tests::foo::V1_0::IFoo; 26 static_assert(std::is_same<decltype(IFoo::S1::foo), IFoo::InnerTestStruct>::value, 28 static_assert(!std::is_same<decltype(IFoo::S1::foo), IFoo::S1::InnerTestStruct>::value, 30 static_assert((int32_t) decltype(IFoo::S2::foo)::VALUE == 0, 56 Return<void> rule0c(const ::android::hardware::tests::foo::V1_0::Outer&) override { in rule0c() 60 Return<void> rule0d(const ::android::hardware::tests::foo::V1_0::Outer&) override { in rule0d() 74 Return<void> rule0g(const ::android::hardware::tests::foo::V1_0::Outer::Inner&) override { in rule0g() 78 Return<void> rule0h(const ::android::hardware::tests::foo::V1_0::Outer::Inner&) override { in rule0h() 86 Return<void> rule1b(const ::android::hardware::tests::foo::V1_0::Def&) override { in rule1b() 90 Return<void> rule2a(const ::android::hardware::tests::foo::V1_0::Unrelated&) override { in rule2a() [all …]
|
D | FooCallback.h | 12 namespace foo { 16 using ::android::hardware::tests::foo::V1_0::IFooCallback;
|
D | hidl_test_client.cpp | 123 using ::android::hardware::tests::foo::V1_0::Abc; 124 using ::android::hardware::tests::foo::V1_0::IFoo; 125 using ::android::hardware::tests::foo::V1_0::IFooCallback; 126 using ::android::hardware::tests::foo::V1_0::ISimple; 127 using ::android::hardware::tests::foo::V1_0::implementation::FooCallback; 361 sp<IFoo> foo; member in HidlEnvironment 402 foo = IFoo::getService("foo", mode == PASSTHROUGH /* getStub */); in getServices() 403 ASSERT_NE(foo, nullptr); in getServices() 404 ASSERT_EQ(foo->isRemote(), mode == BINDERIZED); in getServices() 451 sp<IFoo> foo; member in HidlTest [all …]
|
/system/tools/hidl/test/ |
D | run_all_host_tests.sh | 15 android.hardware.tests.foo@1.0-vts.driver \ 16 android.hardware.tests.foo@1.0-vts.profiler)
|
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/ |
D | HidlTestJava.java | 690 IBase.Foo foo = new IBase.Foo(); in client() local 691 foo.x = 1; in client() 697 foo.aaa.add(bar); in client() 700 foo.y.z = 3.14f; in client() 701 foo.y.s = "Lorem ipsum..."; in client() 703 IBase.Foo result = proxy.someOtherBaseMethod(foo); in client() 704 ExpectTrue(result.equals(foo)); in client() 710 IBase.Foo foo = new IBase.Foo(); in client() local 711 foo.x = 1; in client() 717 foo.aaa.add(bar); in client() [all …]
|
/system/security/keystore/ |
D | test-keystore | 208 keystore system u foo 215 keystore system p foo 237 keystore system p foo 250 keystore system p foo
|
/system/tools/hidl/test/error_test/interface_unique_method_names/1.0/ |
D | IFoo.hal | 19 foo(int32_t arg); 20 foo(IFoo arg); // duplicates first method name
|
/system/tools/hidl/ |
D | README.md | 38 hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0
|