Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/libs/androidfw/tests/
DBackupHelpers_test.cpp38 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/
Dih_util_test.cpp155 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 …]
DBatteryTypeParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in BatteryTypeParserTest
DSystemPropertiesParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in SystemPropertiesParserTest
DPageTypeInfoParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in PageTypeInfoParserTest
DKernelWakesParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in KernelWakesParserTest
DEventLogTagsParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in EventLogTagsParserTest
DCpuFreqParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in CpuFreqParserTest
DProcrankParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in ProcrankParserTest
DCpuInfoParser_test.cpp42 ASSERT_TRUE(tf.fd != -1); in SetUp()
46 TemporaryFile tf; member in CpuInfoParserTest
/frameworks/base/cmds/incidentd/tests/
DFdBuffer_test.cpp40 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 …]
DSection_test.cpp53 virtual void SetUp() override { ASSERT_NE(tf.fd, -1); } in SetUp()
65 TemporaryFile tf; member in SectionTest
DPrivacyFilter_test.cpp59 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/
DStyleSpan.java125 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()
DTextAppearanceSpan.java129 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/
DPropertyMap_fuzz.cpp46 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/
DFabricatedOverlayTests.cpp109 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/
DSwitch.java377 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/
DSpannedTest.java109 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/
Danalyze_prefetch_file.py57 tf = TraceFile()
58 tf.ParseFromString(f.read())
59 return tf
/frameworks/av/media/libstagefright/tests/fuzzers/
DWriterFuzzer.cpp164 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/
DQSDualTileLabel.java141 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/
DSkiaCapture.cpp183 procs.fTypefaceProc = [](SkTypeface* tf, void* ctx) { in setupMultiFrameCapture() argument
184 return tf->serialize(SkTypeface::SerializeBehavior::kDoIncludeData); in setupMultiFrameCapture()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp280 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/
DProtoOutputStream_test.cpp30 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()

12