Home
last modified time | relevance | path

Searched refs:copied (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/
DSpannedStringNoCopyTest.java44 final SpannedString copied = new SpannedString(first); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() local
45 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
58 final SpannedString copied = new SpannedString(first, true /* ignoreNoCopySpan */); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() local
59 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
76 final SpannedString copied = new SpannedString(new CustomSpanned(first)); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl() local
77 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_OtherSpannedImpl()
90 final SpannedString copied = new SpannedString( in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl() local
92 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannedImpl()
DSpannableStringNoCopyTest.java44 final SpannedString copied = new SpannedString(first); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl() local
45 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_SpannableStringInternalImpl()
58 final SpannedString copied = new SpannedString(first, true /* ignoreNoCopySpan */); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl() local
59 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_SpannableStringInternalImpl()
76 final SpannedString copied = new SpannedString(new CustomSpannable(first)); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl() local
77 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_copyNoCopySpans_OtherSpannableImpl()
90 final SpannedString copied = new SpannedString( in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl() local
92 final Object[] spans = copied.getSpans(0, copied.length(), Object.class); in testCopyConstructor_doesNotCopyNoCopySpans_OtherSpannableImpl()
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp195 auto copied = FontCollection::readVector<readFreeTypeMinikinFontForTest>(&reader); in TEST() local
196 EXPECT_EQ(1u, copied.size()); in TEST()
197 expectVSGlyphsForVsTestFont(copied[0].get()); in TEST()
198 EXPECT_EQ(original[0]->getSupportedTags(), copied[0]->getSupportedTags()); in TEST()
200 EXPECT_NE(original[0]->getId(), copied[0]->getId()); in TEST()
201 std::vector<uint8_t> newBuffer = writeToBuffer(copied); in TEST()
212 auto copied = FontCollection::readVector<readFreeTypeMinikinFontForTest>(&reader); in TEST() local
213 EXPECT_EQ(2u, copied.size()); in TEST()
214 EXPECT_EQ(copied[0]->mFamilies[0], copied[1]->mFamilies[0]); in TEST()
215 std::vector<uint8_t> newBuffer = writeToBuffer(copied); in TEST()
[all …]
DFontFamilyTest.cpp831 std::shared_ptr<FontFamily> copied = in TEST_F() local
833 ASSERT_EQ(original->localeListId(), copied->localeListId()); in TEST_F()
834 ASSERT_EQ(original->variant(), copied->variant()); in TEST_F()
835 ASSERT_EQ(original->getNumFonts(), copied->getNumFonts()); in TEST_F()
836 ASSERT_EQ(original->supportedAxes(), copied->supportedAxes()); in TEST_F()
837 ASSERT_EQ(original->isColorEmojiFamily(), copied->isColorEmojiFamily()); in TEST_F()
838 ASSERT_EQ(original->isCustomFallback(), copied->isCustomFallback()); in TEST_F()
839 ASSERT_EQ(original->hasVSTable(), copied->hasVSTable()); in TEST_F()
840 expectVSGlyphsForVsTestFont(copied.get()); in TEST_F()
842 writeToBuffer<FontFamily, writeFreeTypeMinikinFontForTest>(*copied); in TEST_F()
[all …]
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/
DStreamUtils.java53 int copied = 0; in copyStream() local
54 while (copied < limit) { in copyStream()
55 int maxReadSize = Math.min(bufferSize, limit - copied); in copyStream()
61 copied += read; in copyStream()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/testing/
DDiffScriptProcessor.java172 long copied = 0; in copyBytes() local
173 while (n - copied > COPY_BUFFER_SIZE) { in copyBytes()
176 return copied; in copyBytes()
179 while (n - copied > 0) { in copyBytes()
180 copied += copyBlock(inputStream, outputStream, buffer, (int) (n - copied)); in copyBytes()
182 return copied; in copyBytes()
/frameworks/av/media/libstagefright/
DSkipCutBuffer.cpp87 size_t copied = read(dst, buffer->size()); in submit() local
88 buffer->set_range(0, copied); in submit()
120 size_t copied = read(dst, buffer->capacity()); in submitInternal() local
121 buffer->setRange(0, copied); in submitInternal()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFileUtil.java191 ByteBuffer copied = buffer.slice(); in isCollectionFont() local
192 copied.order(ByteOrder.BIG_ENDIAN); in isCollectionFont()
193 int magicNumber = copied.getInt(0); in isCollectionFont()
/frameworks/base/core/tests/coretests/src/android/service/euicc/
DEuiccProfileInfoTest.java150 EuiccProfileInfo copied = new EuiccProfileInfo.Builder(p).build(); in testBuilder_BasedOnAnotherProfile() local
152 assertEquals(p, copied); in testBuilder_BasedOnAnotherProfile()
153 assertEquals(p.hashCode(), copied.hashCode()); in testBuilder_BasedOnAnotherProfile()
174 EuiccProfileInfo copied = new EuiccProfileInfo.Builder(p).build(); in testBuilder_BasedOnAnotherProfileWithEmptyAccessRules() local
176 assertEquals(null, copied.getUiccAccessRules()); in testBuilder_BasedOnAnotherProfileWithEmptyAccessRules()
/frameworks/base/core/jni/
Deventlog_helper.h110 jsize copied = 0, num = env->GetArrayLength(value); in writeEventArray() local
111 for (; copied < num && copied < 255; ++copied) { in writeEventArray()
113 ScopedLocalRef<jobject> item(env, env->GetObjectArrayElement(value, copied)); in writeEventArray()
/frameworks/layoutlib/create/tests/res/mock_data/mock_android/data/
DdataFile1 A simple data file that should be copied to the output jar unchanged.
DanotherDataFile1 A simple data file that should *not* be copied to the output jar.
/frameworks/compile/slang/tests/F_struct_array_copy/
Dstderr.txt.expect1 struct_array_copy.rscript:35:8: error: Arrays of RS object types within structures cannot be copied
/frameworks/base/core/tests/coretests/src/android/graphics/
DTypefaceTest.java211 Typeface copied = copiedFontMap.get(key); in testSerialize() local
212 assertEquals(original.getStyle(), copied.getStyle()); in testSerialize()
213 assertEquals(original.getWeight(), copied.getWeight()); in testSerialize()
214 assertEquals(measureText(original, "hello"), measureText(copied, "hello"), 1e-6); in testSerialize()
/frameworks/base/test-base/src/junit/
DREADME.android9 These are copied here to ensure that the android.test.runner target remains
/frameworks/base/test-runner/src/junit/
DREADME.android9 These are copied here to ensure that the android.test.runner target remains
/frameworks/base/libs/hwui/hwui/
DCanvas.cpp144 Paint copied(paint); in drawGlyphs() local
154 SkFont* skfont = &copied.getSkFont(); in drawGlyphs()
158 drawGlyphs(glyphFunc, glyphCount, copied, 0 /* x */, 0 /* y */, 0 /* total Advance */); in drawGlyphs()
/frameworks/rs/script_api/
Drs_allocation_data.spec25 <li>Multiple cells can be copied using the rsAllocationCopy* and
/frameworks/native/vulkan/libvulkan/
Dapi.cpp1280 uint32_t copied = std::min(*pPropertyCount, count); in EnumerateInstanceLayerProperties() local
1281 for (uint32_t i = 0; i < copied; i++) in EnumerateInstanceLayerProperties()
1283 *pPropertyCount = copied; in EnumerateInstanceLayerProperties()
1285 return (copied == count) ? VK_SUCCESS : VK_INCOMPLETE; in EnumerateInstanceLayerProperties()
1380 uint32_t copied = std::min(*pPropertyCount, count); in EnumerateDeviceLayerProperties() local
1381 for (uint32_t i = 0; i < copied; i++) in EnumerateDeviceLayerProperties()
1383 *pPropertyCount = copied; in EnumerateDeviceLayerProperties()
1385 return (copied == count) ? VK_SUCCESS : VK_INCOMPLETE; in EnumerateDeviceLayerProperties()
/frameworks/av/media/libstagefright/filters/
Dsaturation.rscript36 // convert to uchar, copied from rsPackColorTo8888
/frameworks/base/startop/view_compiler/
DREADME.md37 copied over to the device by TradeFed when running tests.
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp815 std::map<uint32_t, const std::weak_ptr<Accessor::Impl>> copied; in invalidatorThread() local
823 copied.insert(accessors.begin(), accessors.end()); in invalidatorThread()
826 for (auto it = copied.begin(); it != copied.end(); ++it) { in invalidatorThread()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayView.java240 String copied = mContext.getString(R.string.clipboard_overlay_text_copied); in showDefaultTextPreview() local
241 showTextPreview(copied, false); in showDefaultTextPreview()
/frameworks/native/opengl/specs/
DEGL_ANDROID_presentation_time.txt91 or copied to a native pixmap then the presentation time of the surface at
/frameworks/rs/script_api/include/
Drs_allocation_data.rsh27 * - Multiple cells can be copied using the rsAllocationCopy* and
59 * dstOff: Offset in the destination of the first cell to be copied into.
61 * count: Number of cells to be copied.
63 * srcOff: Offset in the source of the first cell to be copied.
76 * (width * heigth) cells are copied.
139 * x: X offset in the allocation of the first cell to be copied from.
140 * y: Y offset in the allocation of the first cell to be copied from.
141 * z: Z offset in the allocation of the first cell to be copied from.
619 * x: X offset in the allocation of the first cell to be copied into.
620 * y: Y offset in the allocation of the first cell to be copied into.
[all …]

12