Home
last modified time | relevance | path

Searched refs:fPtr (Results 1 – 25 of 97) sorted by relevance

1234

/external/skia/src/core/
DSkMask.h152 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {}
153 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {}
158 ++fPtr;
167 --fPtr;
173 fPtr = SkTAddOffset<const uint8_t>(fPtr, rb);
176 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; }
178 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset);
180 const uint8_t* fPtr;
185 AlphaIter(const uint8_t* ptr) : fPtr(ptr) {}
186 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr) {}
[all …]
DSkAutoMalloc.h26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {}
53 fPtr.reset(size ? sk_malloc_throw(size) : nullptr);
56 return fPtr.get();
62 void* get() { return fPtr.get(); } in get()
63 const void* get() const { return fPtr.get(); } in get()
71 return fPtr.release(); in release()
78 std::unique_ptr<void, WrapFree> fPtr; variable
95 fPtr = fStorage; in SkAutoSMalloc()
104 fPtr = fStorage; in SkAutoSMalloc()
114 if (fPtr != (void*)fStorage) { in ~SkAutoSMalloc()
[all …]
DSkTLazy.h23 explicit SkTLazy(const T* src) : fPtr(src ? new (&fStorage) T(*src) : nullptr) {} in SkTLazy()
24 SkTLazy(const SkTLazy& that) : fPtr(that.fPtr ? new (&fStorage) T(*that.fPtr) : nullptr) {} in SkTLazy()
25 SkTLazy(SkTLazy&& that) : fPtr(that.fPtr ? new (&fStorage) T(std::move(*that.fPtr)) : nullptr){} in SkTLazy()
55 fPtr = new (&fStorage) T(std::forward<Args>(args)...); in init()
56 return fPtr; in init()
67 *fPtr = src; in set()
69 fPtr = new (&fStorage) T(src); in set()
71 return fPtr; in set()
76 *fPtr = std::move(src); in set()
78 fPtr = new (&fStorage) T(std::move(src)); in set()
[all …]
/external/skqp/src/core/
DSkMask.h150 AlphaIter(const uint8_t* ptr, int offset) : fPtr(ptr), fOffset(7 - offset) {}
151 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr), fOffset(that.fOffset) {}
156 ++fPtr;
165 --fPtr;
171 fPtr = SkTAddOffset<const uint8_t>(fPtr, rb);
174 uint8_t operator*() const { return ((*fPtr) >> fOffset) & 1 ? 0xFF : 0; }
176 return fPtr < that.fPtr || (fPtr == that.fPtr && fOffset > that.fOffset);
178 const uint8_t* fPtr;
183 AlphaIter(const uint8_t* ptr) : fPtr(ptr) {}
184 AlphaIter(const AlphaIter& that) : fPtr(that.fPtr) {}
[all …]
DSkAutoMalloc.h26 : fPtr(size ? sk_malloc_throw(size) : nullptr), fSize(size) {}
53 fPtr.reset(size ? sk_malloc_throw(size) : nullptr);
56 return fPtr.get();
62 void* get() { return fPtr.get(); } in get()
63 const void* get() const { return fPtr.get(); } in get()
71 return fPtr.release(); in release()
78 std::unique_ptr<void, WrapFree> fPtr; variable
96 fPtr = fStorage; in SkAutoSMalloc()
105 fPtr = fStorage; in SkAutoSMalloc()
115 if (fPtr != (void*)fStorage) { in ~SkAutoSMalloc()
[all …]
DSkSpan.h18 constexpr SkSpan(T(&t)[N]) : fPtr(t), fSize(N) {} in SkSpan()
19 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan()
20 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan()
22 constexpr explicit SkSpan(std::vector<U>& v) : fPtr{v.data()}, fSize{v.size()} {} in SkSpan()
25 constexpr T& operator [] (size_t i) const { return fPtr[i]; }
26 constexpr T* begin() const { return fPtr; } in begin()
27 constexpr T* end() const { return fPtr + fSize; } in end()
28 constexpr const T* cbegin() const { return fPtr; } in cbegin()
29 constexpr const T* cend() const { return fPtr + fSize; } in cend()
30 constexpr T* data() const { return fPtr; } in data()
[all …]
DSkRecords.h91 Optional() : fPtr(nullptr) {} in Optional()
92 Optional(T* ptr) : fPtr(ptr) {} in Optional()
93 Optional(Optional&& o) : fPtr(o.fPtr) { in Optional()
94 o.fPtr = nullptr; in Optional()
96 ~Optional() { if (fPtr) fPtr->~T(); } in ~Optional()
98 ACT_AS_PTR(fPtr)
100 T* fPtr;
107 Adopted(T* ptr) : fPtr(ptr) { SkASSERT(fPtr); }
110 fPtr = source->fPtr;
111 source->fPtr = NULL;
[all …]
/external/skia/src/utils/win/
DSkTScopedComPtr.h31 T *fPtr;
34 constexpr SkTScopedComPtr() : fPtr(nullptr) {} in SkTScopedComPtr()
35 constexpr SkTScopedComPtr(std::nullptr_t) : fPtr(nullptr) {} in SkTScopedComPtr()
36 explicit SkTScopedComPtr(T *ptr) : fPtr(ptr) {} in SkTScopedComPtr()
37 SkTScopedComPtr(SkTScopedComPtr&& that) : fPtr(that.release()) {} in SkTScopedComPtr()
49 T &operator*() const { SkASSERT(fPtr != nullptr); return *fPtr; }
51 explicit operator bool() const { return fPtr != nullptr; }
53 T *operator->() const { return fPtr; }
61 T **operator&() { SkASSERT(fPtr == nullptr); return &fPtr; }
63 T *get() const { return fPtr; } in get()
[all …]
/external/webrtc/modules/audio_coding/codecs/ilbc/
Dget_lsp_poly.c48 int32_t *fPtr; in WebRtcIlbcfix_GetLspPoly() local
51 fPtr = f; in WebRtcIlbcfix_GetLspPoly()
53 (*fPtr) = (int32_t)16777216; in WebRtcIlbcfix_GetLspPoly()
54 fPtr++; in WebRtcIlbcfix_GetLspPoly()
56 (*fPtr) = WEBRTC_SPL_MUL((*lspPtr), -1024); in WebRtcIlbcfix_GetLspPoly()
57 fPtr++; in WebRtcIlbcfix_GetLspPoly()
62 (*fPtr) = fPtr[-2]; in WebRtcIlbcfix_GetLspPoly()
67 high = (int16_t)(fPtr[-1] >> 16); in WebRtcIlbcfix_GetLspPoly()
68 low = (int16_t)((fPtr[-1] & 0xffff) >> 1); in WebRtcIlbcfix_GetLspPoly()
72 (*fPtr) += fPtr[-2]; in WebRtcIlbcfix_GetLspPoly()
[all …]
/external/skqp/src/utils/win/
DSkTScopedComPtr.h38 T *fPtr;
41 constexpr SkTScopedComPtr() : fPtr(nullptr) {} in SkTScopedComPtr()
42 constexpr SkTScopedComPtr(std::nullptr_t) : fPtr(nullptr) {} in SkTScopedComPtr()
43 explicit SkTScopedComPtr(T *ptr) : fPtr(ptr) {} in SkTScopedComPtr()
44 SkTScopedComPtr(SkTScopedComPtr&& that) : fPtr(that.release()) {} in SkTScopedComPtr()
56 T &operator*() const { SkASSERT(fPtr != nullptr); return *fPtr; }
58 explicit operator bool() const { return fPtr != nullptr; }
60 SkBlockComRef<T> *operator->() const { return static_cast<SkBlockComRef<T>*>(fPtr); }
68 T **operator&() { SkASSERT(fPtr == nullptr); return &fPtr; }
70 T *get() const { return fPtr; } in get()
[all …]
/external/icu/icu4c/source/i18n/
Dnumber_symbolswrapper.cpp48 fPtr.dfs = new DecimalFormatSymbols(dfs); in setTo()
54 fPtr.ns = ns; in setTo()
65 if (other.fPtr.dfs != nullptr) { in doCopyFrom()
66 fPtr.dfs = new DecimalFormatSymbols(*other.fPtr.dfs); in doCopyFrom()
68 fPtr.dfs = nullptr; in doCopyFrom()
73 if (other.fPtr.ns != nullptr) { in doCopyFrom()
74 fPtr.ns = new NumberingSystem(*other.fPtr.ns); in doCopyFrom()
76 fPtr.ns = nullptr; in doCopyFrom()
89 fPtr.dfs = src.fPtr.dfs; in doMoveFrom()
90 src.fPtr.dfs = nullptr; in doMoveFrom()
[all …]
Dnumber_decimfmtprops.h44 LocalPointer<CurrencyPluralInfo> fPtr;
49 if (!other.fPtr.isNull()) { in CurrencyPluralInfoWrapper()
50 fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr)); in CurrencyPluralInfoWrapper()
56 !other.fPtr.isNull()) {
57 fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
/external/skia/include/private/
DSkTemplates.h244 explicit SkAutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {} in fPtr() function
248 : fPtr(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr) {} in SkAutoTMalloc()
255 fPtr.reset(count ? (T*)sk_realloc_throw(fPtr.release(), count * sizeof(T)) : nullptr); in realloc()
260 fPtr.reset(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr);
264 T* get() const { return fPtr.get(); } in get()
266 operator T*() { return fPtr.get(); }
268 operator const T*() const { return fPtr.get(); }
270 T& operator[](int index) { return fPtr.get()[index]; }
272 const T& operator[](int index) const { return fPtr.get()[index]; }
275 const T* data() const { return fPtr.get(); } in data()
[all …]
/external/skqp/include/private/
DSkTemplates.h223 explicit SkAutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {} in fPtr() function
227 : fPtr(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr) {} in SkAutoTMalloc()
234 fPtr.reset(count ? (T*)sk_realloc_throw(fPtr.release(), count * sizeof(T)) : nullptr); in realloc()
239 fPtr.reset(count ? (T*)sk_malloc_throw(count, sizeof(T)) : nullptr);
243 T* get() const { return fPtr.get(); } in get()
245 operator T*() { return fPtr.get(); }
247 operator const T*() const { return fPtr.get(); }
249 T& operator[](int index) { return fPtr.get()[index]; }
251 const T& operator[](int index) const { return fPtr.get()[index]; }
258 T* release() { return fPtr.release(); } in release()
[all …]
/external/llvm-project/clang/test/Analysis/inlining/
Dinline-defensive-checks.m71 int testNilReceiver(Foo* fPtr) {
72 if (fPtr)
74 // On a path where fPtr is nil, mem should be nil.
75 Foo *mem = [fPtr getFooPtr];
79 int suppressNilReceiverRetNullCond(Foo* fPtr) {
81 fPtr = retInputOrNil(fPtr);
82 // On a path where fPtr is nzil, mem should be nil.
83 Foo *mem = [fPtr getFooPtr];
87 int suppressNilReceiverRetNullCondCast(id fPtr) {
89 fPtr = retInputOrNil(fPtr);
[all …]
/external/clang/test/Analysis/inlining/
Dinline-defensive-checks.m71 int testNilReceiver(Foo* fPtr) {
72 if (fPtr)
74 // On a path where fPtr is nil, mem should be nil.
75 Foo *mem = [fPtr getFooPtr];
79 int suppressNilReceiverRetNullCond(Foo* fPtr) {
81 fPtr = retInputOrNil(fPtr);
82 // On a path where fPtr is nzil, mem should be nil.
83 Foo *mem = [fPtr getFooPtr];
87 int suppressNilReceiverRetNullCondCast(id fPtr) {
89 fPtr = retInputOrNil(fPtr);
[all …]
/external/skia/src/gpu/
DGrRefCnt.h35 constexpr gr_sp() : fPtr(nullptr) {} in gr_sp()
36 constexpr gr_sp(std::nullptr_t) : fPtr(nullptr) {} in gr_sp()
42 gr_sp(const gr_sp<T, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {} in gr_sp()
45 gr_sp(const gr_sp<U, Ref, Unref>& that) : fPtr(SafeRef(that.get())) {} in gr_sp()
47 gr_sp(const sk_sp<T>& that) : fPtr(SafeRef(that.get())) {} in gr_sp()
55 gr_sp(gr_sp<T, Ref, Unref>&& that) : fPtr(that.release()) {} in gr_sp()
61 gr_sp(sk_sp<T>&& that) : fPtr(SafeRef(that.get())) {} in gr_sp()
67 explicit gr_sp(T* obj) : fPtr(obj) {} in gr_sp()
73 SafeUnref(fPtr); in ~gr_sp()
74 SkDEBUGCODE(fPtr = nullptr); in ~gr_sp()
[all …]
DGrVertexWriter.h26 void* fPtr; member
29 GrVertexWriter(void* ptr) : fPtr(ptr) {} in GrVertexWriter()
35 fPtr = that.fPtr;
36 that.fPtr = nullptr;
40 bool operator==(const GrVertexWriter& that) const { return fPtr == that.fPtr; }
41 operator bool() const { return fPtr != nullptr; }
44 return {SkTAddOffset<void>(fPtr, offsetInBytes)}; in makeOffset()
74 memcpy(fPtr, &val, sizeof(T)); in write()
75 fPtr = SkTAddOffset<void>(fPtr, sizeof(T)); in write()
83 memcpy(fPtr, val, N * sizeof(T)); in write()
[all …]
/external/skia/include/core/
DSkSpan.h28 constexpr SkSpan() : fPtr{nullptr}, fSize{0} {} in SkSpan()
29 constexpr SkSpan(T* ptr, size_t size) : fPtr{ptr}, fSize{size} {} in SkSpan()
31 constexpr SkSpan(const SkSpan<U>& that) : fPtr(that.data()), fSize{that.size()} {} in SkSpan()
35 fPtr = that.fPtr;
41 return fPtr[i];
43 constexpr T& front() const { return fPtr[0]; } in front()
44 constexpr T& back() const { return fPtr[fSize - 1]; } in back()
45 constexpr T* begin() const { return fPtr; } in begin()
46 constexpr T* end() const { return fPtr + fSize; } in end()
55 return SkSpan{fPtr, prefixLen}; in first()
[all …]
DSkRefCnt.h219 constexpr sk_sp() : fPtr(nullptr) {} in sk_sp()
220 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp()
226 sk_sp(const sk_sp<T>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
229 sk_sp(const sk_sp<U>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
236 sk_sp(sk_sp<T>&& that) : fPtr(that.release()) {} in sk_sp()
239 sk_sp(sk_sp<U>&& that) : fPtr(that.release()) {} in sk_sp()
245 explicit sk_sp(T* obj) : fPtr(obj) {} in sk_sp()
251 SkSafeUnref(fPtr); in ~sk_sp()
252 SkDEBUGCODE(fPtr = nullptr); in ~sk_sp()
298 T* get() const { return fPtr; } in get()
[all …]
/external/skqp/include/core/
DSkTLazy.h23 explicit SkTLazy(const T* src) : fPtr(src ? new (&fStorage) T(*src) : nullptr) {} in SkTLazy()
55 fPtr = new (&fStorage) T(std::forward<Args>(args)...); in init()
56 return fPtr; in init()
67 *fPtr = src; in set()
69 fPtr = new (&fStorage) T(src); in set()
71 return fPtr; in set()
76 *fPtr = std::move(src); in set()
78 fPtr = new (&fStorage) T(std::move(src)); in set()
80 return fPtr; in set()
88 fPtr->~T(); in reset()
[all …]
DSkRefCnt.h208 constexpr sk_sp() : fPtr(nullptr) {} in sk_sp()
209 constexpr sk_sp(std::nullptr_t) : fPtr(nullptr) {} in sk_sp()
215 sk_sp(const sk_sp<T>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
218 sk_sp(const sk_sp<U>& that) : fPtr(SkSafeRef(that.get())) {} in sk_sp()
225 sk_sp(sk_sp<T>&& that) : fPtr(that.release()) {} in sk_sp()
228 sk_sp(sk_sp<U>&& that) : fPtr(that.release()) {} in sk_sp()
234 explicit sk_sp(T* obj) : fPtr(obj) {} in sk_sp()
240 SkSafeUnref(fPtr); in ~sk_sp()
241 SkDEBUGCODE(fPtr = nullptr); in ~sk_sp()
287 T* get() const { return fPtr; } in get()
[all …]
/external/skia/tools/
DRegistry.h47 const Registry* fPtr; member
48 const T& operator*() { return SkASSERT(fPtr), fPtr->get(); }
49 void operator++() { if (fPtr) { fPtr = fPtr->next(); } }
50 bool operator!=(const Iterator& other) const { return fPtr != other.fPtr; }
/external/skqp/tools/
DRegistry.h47 const Registry* fPtr; member
48 const T& operator*() { return SkASSERT(fPtr), fPtr->get(); }
49 void operator++() { if (fPtr) { fPtr = fPtr->next(); } }
50 bool operator!=(const Iterator& other) const { return fPtr != other.fPtr; }
/external/icu/libicu/cts_headers/
Dnumber_decimfmtprops.h44 LocalPointer<CurrencyPluralInfo> fPtr;
49 if (!other.fPtr.isNull()) { in CurrencyPluralInfoWrapper()
50 fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr)); in CurrencyPluralInfoWrapper()
56 !other.fPtr.isNull()) {
57 fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));

1234