/frameworks/base/libs/androidfw/tests/ |
D | BackupHelpers_test.cpp | 38 TemporaryFile tf; in TEST_F() local 41 ASSERT_EQ(0, posix_fallocate64(tf.fd, 0, fileSize)); in TEST_F() 43 … domain */ String8(""), /* rootpath */ String8(""), /* filePath */ String8(tf.path), /* outSize */… in TEST_F() 51 TemporaryFile tf; in TEST_F() local 54 ASSERT_EQ(0, posix_fallocate64(tf.fd, 0, fileSize)); in TEST_F() 56 … domain */ String8(""), /* rootpath */ String8(""), /* filePath */ String8(tf.path), /* outSize */… in TEST_F()
|
/frameworks/base/cmds/incident_helper/tests/ |
D | ih_util_test.cpp | 155 TemporaryFile tf; in TEST() local 156 ASSERT_NE(tf.fd, -1); in TEST() 157 ASSERT_TRUE(WriteStringToFile("test string\nsecond\nooo\n", tf.path)); in TEST() 159 Reader r(tf.fd); in TEST() 172 TemporaryFile tf; in TEST() local 173 ASSERT_NE(tf.fd, -1); in TEST() 174 ASSERT_TRUE(WriteStringToFile("", tf.path)); in TEST() 176 Reader r(tf.fd); in TEST() 184 TemporaryFile tf; in TEST() local 185 ASSERT_NE(tf.fd, -1); in TEST() [all …]
|
D | BatteryTypeParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in BatteryTypeParserTest
|
D | SystemPropertiesParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in SystemPropertiesParserTest
|
D | PageTypeInfoParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in PageTypeInfoParserTest
|
D | KernelWakesParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in KernelWakesParserTest
|
D | EventLogTagsParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in EventLogTagsParserTest
|
D | CpuFreqParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in CpuFreqParserTest
|
D | ProcrankParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in ProcrankParserTest
|
D | CpuInfoParser_test.cpp | 42 ASSERT_TRUE(tf.fd != -1); in SetUp() 46 TemporaryFile tf; member in CpuInfoParserTest
|
/frameworks/base/cmds/incidentd/tests/ |
D | FdBuffer_test.cpp | 40 ASSERT_NE(tf.fd, -1); in SetUp() 78 TemporaryFile tf; member in FdBufferTest 88 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F() 89 ASSERT_EQ(NO_ERROR, buffer.read(tf.fd, READ_TIMEOUT)); in TEST_F() 101 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F() 102 ASSERT_EQ(NO_ERROR, buffer.read(tf.fd, READ_TIMEOUT)); in TEST_F() 114 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F() 115 ASSERT_EQ(NO_ERROR, buffer.read(tf.fd, READ_TIMEOUT)); in TEST_F() 149 ASSERT_TRUE(WriteStringToFile(testdata, tf.path)); in TEST_F() 168 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), in TEST_F() [all …]
|
D | Section_test.cpp | 53 virtual void SetUp() override { ASSERT_NE(tf.fd, -1); } in SetUp() 65 TemporaryFile tf; member in SectionTest
|
D | PrivacyFilter_test.cpp | 59 virtual void SetUp() override { ASSERT_NE(tf.fd, -1); } 62 ASSERT_TRUE(WriteStringToFile(str, tf.path)); 63 ASSERT_EQ(NO_ERROR, buffer.read(tf.fd, 10000)); 120 TemporaryFile tf;
|
/frameworks/base/core/java/android/text/style/ |
D | StyleSpan.java | 125 Typeface tf; in apply() local 127 tf = Typeface.defaultFromStyle(want); in apply() 129 tf = Typeface.create(old, want); in apply() 132 int fake = want & ~tf.getStyle(); in apply() 142 paint.setTypeface(tf); in apply()
|
D | TextAppearanceSpan.java | 129 int tf = a.getInt(com.android.internal.R.styleable.TextAppearance_typeface, 0); in TextAppearanceSpan() local 131 switch (tf) { in TextAppearanceSpan() 471 Typeface tf = ds.getTypeface(); in updateMeasureState() local 473 if (tf != null) { in updateMeasureState() 474 style = tf.getStyle(); in updateMeasureState() 481 } else if (tf == null) { in updateMeasureState() 484 styledTypeface = Typeface.create(tf, style); in updateMeasureState()
|
/frameworks/native/libs/input/ |
D | PropertyMap_fuzz.cpp | 46 TemporaryFile tf; in __anone469e1e60502() local 53 android::base::WriteStringToFd(bytes, tf.fd); in __anone469e1e60502() 55 android::PropertyMap::load(tf.path); in __anone469e1e60502()
|
/frameworks/base/cmds/idmap2/tests/ |
D | FabricatedOverlayTests.cpp | 109 TemporaryFile tf; in TEST() local 110 std::ofstream out(tf.path); in TEST() 114 auto container = OverlayResourceContainer::FromPath(tf.path); in TEST() 116 EXPECT_EQ(tf.path, (*container)->GetPath()); in TEST()
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 377 Typeface tf = null; in setSwitchTypefaceByIndex() local 380 tf = Typeface.SANS_SERIF; in setSwitchTypefaceByIndex() 384 tf = Typeface.SERIF; in setSwitchTypefaceByIndex() 388 tf = Typeface.MONOSPACE; in setSwitchTypefaceByIndex() 392 setSwitchTypeface(tf, styleIndex); in setSwitchTypefaceByIndex() 401 public void setSwitchTypeface(Typeface tf, int style) { in setSwitchTypeface() argument 403 if (tf == null) { in setSwitchTypeface() 404 tf = Typeface.defaultFromStyle(style); in setSwitchTypeface() 406 tf = Typeface.create(tf, style); in setSwitchTypeface() 409 setSwitchTypeface(tf); in setSwitchTypeface() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 109 TypefaceSpan[] tf = s2.getSpans(8, 9, TypefaceSpan.class); in testWrapParcel() local 110 assertEquals(1, tf.length); in testWrapParcel() 111 assertEquals(8, s2.getSpanStart(tf[0])); in testWrapParcel() 112 assertEquals(9, s2.getSpanEnd(tf[0])); in testWrapParcel()
|
/frameworks/base/startop/scripts/iorap/ |
D | analyze_prefetch_file.py | 57 tf = TraceFile() 58 tf.ParseFromString(f.read()) 59 return tf
|
/frameworks/av/media/libstagefright/tests/fuzzers/ |
D | WriterFuzzer.cpp | 164 TemporaryFile tf; in LLVMFuzzerTestOneInput() local 167 sp<MediaWriter> writer = createWriter(tf.fd, writerType, fileMeta); in LLVMFuzzerTestOneInput() 214 operations[op](&dataProvider, writer, fileMeta, tf.fd); in LLVMFuzzerTestOneInput() 219 operations[op](&dataProvider, writer, fileMeta, tf.fd); in LLVMFuzzerTestOneInput()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSDualTileLabel.java | 141 public void setTypeface(Typeface tf) { in setTypeface() argument 142 mFirstLine.setTypeface(tf); in setTypeface() 143 mSecondLine.setTypeface(tf); in setTypeface()
|
/frameworks/native/libs/renderengine/skia/debug/ |
D | SkiaCapture.cpp | 183 procs.fTypefaceProc = [](SkTypeface* tf, void* ctx) { in setupMultiFrameCapture() argument 184 return tf->serialize(SkTypeface::SerializeBehavior::kDoIncludeData); in setupMultiFrameCapture()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.cpp | 280 procs.fTypefaceProc = [](SkTypeface* tf, void* ctx){ in setupMultiFrameCapture() argument 281 return tf->serialize(SkTypeface::SerializeBehavior::kDoIncludeData); in setupMultiFrameCapture() 428 procs.fTypefaceProc = [](SkTypeface* tf, void* ctx){ in endCapture() argument 429 return tf->serialize(SkTypeface::SerializeBehavior::kDoIncludeData); in endCapture()
|
/frameworks/base/libs/protoutil/tests/ |
D | ProtoOutputStream_test.cpp | 30 TemporaryFile tf; in flushToString() local 33 EXPECT_NE(tf.fd, -1); in flushToString() 34 EXPECT_TRUE(proto->flush(tf.fd)); in flushToString() 35 EXPECT_TRUE(ReadFileToString(tf.path, &content)); in flushToString()
|