Home
last modified time | relevance | path

Searched refs:template (Results 1 – 25 of 167) sorted by relevance

1234567

/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dmeta.h38 template <typename T> struct Void { typedef void Type; };
43 template <bool Cond> struct BoolType {
55 template <bool C> struct SelectIfImpl { template <typename T1, typename T2> struct Apply { typedef …
56 template <> struct SelectIfImpl<false> { template <typename T1, typename T2> struct Apply { typedef…
57 template <bool C, typename T1, typename T2> struct SelectIfCond : SelectIfImpl<C>::template Apply<T…
58 template <typename C, typename T1, typename T2> struct SelectIf : SelectIfCond<C::Value, T1, T2> {};
60 template <bool Cond1, bool Cond2> struct AndExprCond : FalseType {};
61 template <> struct AndExprCond<true, true> : TrueType {};
62 template <bool Cond1, bool Cond2> struct OrExprCond : TrueType {};
63 template <> struct OrExprCond<false, false> : FalseType {};
[all …]
Dstack.h30 template <typename Allocator>
110 template<typename T>
121 template<typename T>
128 template<typename T>
134 template<typename T>
150 template<typename T>
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dencodings.h95 template<typename CharType = char>
101 template<typename OutputStream>
123 template <typename InputStream>
152 template <typename InputStream, typename OutputStream>
196 template <typename InputByteStream>
209 template <typename InputByteStream>
215 template <typename OutputByteStream>
221 template <typename OutputByteStream>
240 template<typename CharType = wchar_t>
247 template<typename OutputStream>
[all …]
Dpointer.h70 template <typename ValueType, typename Allocator = CrtAllocator>
230 template <typename T>
352 template<typename OutputStream>
362 template<typename OutputStream>
442 template <typename stackAllocator>
530 template <typename T>
537 template <typename stackAllocator>
543 template <typename stackAllocator>
550 template <typename stackAllocator>
560 template <typename T, typename stackAllocator>
[all …]
Ddocument.h69 template <typename Encoding, typename Allocator>
72 template <typename Encoding, typename Allocator, typename StackAllocator>
81 template <typename Encoding, typename Allocator>
111 template <bool Const, typename Encoding, typename Allocator>
117 template <bool, typename, typename> friend class GenericMemberIterator;
210 template <bool Const, typename Encoding, typename Allocator>
214 template <typename Encoding, typename Allocator>
220 template <typename Encoding, typename Allocator>
258 template<typename CharType>
285 template<SizeType N>
[all …]
Dreader.h180 template<typename Encoding = UTF8<>, typename Derived = void>
207 template<typename Stream, int = StreamTraits<Stream>::copyOptimization>
211 template<typename Stream>
226 template<typename Stream>
246 template<typename InputStream>
344 template<> inline void SkipWhitespace(InsituStringStream& is) { in SkipWhitespace()
349 template<> inline void SkipWhitespace(StringStream& is) { in SkipWhitespace()
373 template <typename SourceEncoding, typename TargetEncoding, typename StackAllocator = CrtAllocator>
392 template <unsigned parseFlags, typename InputStream, typename Handler>
431 template <typename InputStream, typename Handler>
[all …]
Dstringbuffer.h34 template <typename Encoding, typename Allocator = CrtAllocator>
50 void Put(Ch c) { *stack_.template Push<Ch>() = c; } in Put()
56 *stack_.template Push<Ch>() = '\0'; in ShrinkToFit()
58 stack_.template Pop<Ch>(1); in ShrinkToFit()
60 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push()
61 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop()
65 *stack_.template Push<Ch>() = '\0'; in GetString()
66 stack_.template Pop<Ch>(1); in GetString()
68 return stack_.template Bottom<Ch>(); in GetString()
86 template<>
Dwriter.h53 template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>,…
136 new (level_stack_.template Push<Level>()) Level(false); in StartObject()
145 RAPIDJSON_ASSERT(!level_stack_.template Top<Level>()->inArray);
146 level_stack_.template Pop<Level>(1);
155 new (level_stack_.template Push<Level>()) Level(true); in StartArray()
162 RAPIDJSON_ASSERT(level_stack_.template Top<Level>()->inArray);
163 level_stack_.template Pop<Level>(1);
320 Level* level = level_stack_.template Top<Level>(); in Prefix()
349 template<>
357 template<>
[all …]
Dmemorybuffer.h36 template <typename Allocator = CrtAllocator>
42 void Put(Ch c) { *stack_.template Push<Ch>() = c; } in Put()
47 Ch* Push(size_t count) { return stack_.template Push<Ch>(count); } in Push()
48 void Pop(size_t count) { stack_.template Pop<Ch>(count); } in Pop()
51 return stack_.template Bottom<Ch>(); in GetBuffer()
63 template<>
Drapidjson.h354 template <bool x> struct STATIC_ASSERTION_FAILURE;
355 template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };
356 template<int x> struct StaticAssertTest {};
547 template<typename Stream>
558 template<typename Stream, typename Ch>
570 template <typename Encoding>
589 template <typename Encoding>
604 template <typename Encoding>
630 template <typename Encoding>
Dprettywriter.h34 template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>,…
87 new (Base::level_stack_.template Push<typename Base::Level>()) typename Base::Level(false); in StartObject()
96 RAPIDJSON_ASSERT(!Base::level_stack_.template Top<typename Base::Level>()->inArray);
97 bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
113 new (Base::level_stack_.template Push<typename Base::Level>()) typename Base::Level(true); in StartArray()
120 RAPIDJSON_ASSERT(Base::level_stack_.template Top<typename Base::Level>()->inArray);
121 bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0;
149 typename Base::Level* level = Base::level_stack_.template Top<typename Base::Level>(); in PrettyPrefix()
/packages/apps/Gallery2/jni/filters/
Dkmeans.h25 template <typename T, typename N>
39 template <typename T, typename N>
47 template <typename T, typename N>
55 template <typename T, typename N>
70 template <typename T, typename N>
87 template <typename T>
122 template <typename T, typename N>
140 template <typename T, typename N>
178 template <typename T, typename N>
208 template <typename T, typename N>
[all …]
/packages/apps/TV/common/src/com/android/tv/common/
DSoftPreconditions.java213 static String format(@Nullable String template, @Nullable Object... args) { in format() argument
214 template = String.valueOf(template); // null -> "null" in format()
219 StringBuilder builder = new StringBuilder(template.length() + 16 * args.length); in format()
223 int placeholderStart = template.indexOf("%s", templateStart); in format()
227 builder.append(template, templateStart, placeholderStart); in format()
231 builder.append(template, templateStart, template.length()); in format()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupFragment.java81 final View template = inflater.inflate(R.layout.account_setup_template, container, false); in inflateTemplatedView() local
83 TextView headlineView = UiUtilities.getView(template, R.id.headline); in inflateTemplatedView()
92 (ViewGroup) template.findViewById(R.id.setup_fragment_content); in inflateTemplatedView()
95 mNextButton = UiUtilities.getView(template, R.id.next); in inflateTemplatedView()
97 mPreviousButton = UiUtilities.getView(template, R.id.previous); in inflateTemplatedView()
99 return template; in inflateTemplatedView()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dencoding.md41 template<typename CharType = char>
44 template<typename CharType = wchar_t>
47 template<typename CharType = wchar_t>
50 template<typename CharType = wchar_t>
53 template<typename CharType = unsigned>
56 template<typename CharType = unsigned>
59 template<typename CharType = unsigned>
67template parameter in `GenericValue<Encoding>` and `GenericDocument<Encoding>` indicates the encod…
80 As shown in the declaration, each encoding has a `CharType` template parameter. Actually, it may be…
114 … option can be turned on by adding `kParseValidateEncodingFlag` in `parseFlags` template parameter.
Ddom.md9 … `Document` was used. Similarly to `std::string`, these are actually `typedef` of template classes:
14 template <typename Encoding, typename Allocator = MemoryPoolAllocator<> >
19 template <typename Encoding, typename Allocator = MemoryPoolAllocator<> >
30 User can customize these template parameters.
34 …options are `UTF8`, `UTF16`, `UTF32`. Note that, these 3 types are also template class. `UTF8<>` i…
75 template <unsigned parseFlags, typename SourceEncoding, typename InputStream>
79 template <unsigned parseFlags, typename InputStream>
83 template <typename InputStream>
87 template <unsigned parseFlags>
94 template <unsigned parseFlags, typename SourceEncoding>
[all …]
Dsax.md94 Note that, RapidJSON uses template to statically bind the `Reader` type and the handler type, inste…
136 As mentioned before, `Reader` is a typedef of a template class `GenericReader`:
141 template <typename SourceEncoding, typename TargetEncoding, typename Allocator = MemoryPoolAllocato…
159 The third template parameter `Allocator` is the allocator type for internal data structure (actuall…
166 template <unsigned parseFlags, typename InputStream, typename Handler>
170 template <typename InputStream, typename Handler>
241 `Writer` has a minor design difference to `Reader`. `Writer` is a template class, not a typedef. Th…
246 template<typename OutputStream, typename SourceEncoding = UTF8<>, typename TargetEncoding = UTF8<>,…
256 The `OutputStream` template parameter is the type of output stream. It cannot be deduced and must b…
258 The `SourceEncoding` template parameter specifies the encoding to be used in `String(const Ch*, ...…
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationViewAdapter.java31 import com.android.car.notification.template.BasicNotificationViewHolder;
32 import com.android.car.notification.template.CallNotificationViewHolder;
33 import com.android.car.notification.template.CarNotificationFooterViewHolder;
34 import com.android.car.notification.template.CarNotificationHeaderViewHolder;
35 import com.android.car.notification.template.EmergencyNotificationViewHolder;
36 import com.android.car.notification.template.GroupNotificationViewHolder;
37 import com.android.car.notification.template.GroupSummaryNotificationViewHolder;
38 import com.android.car.notification.template.InboxNotificationViewHolder;
39 import com.android.car.notification.template.MessageNotificationViewHolder;
40 import com.android.car.notification.template.ProgressNotificationViewHolder;
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java285 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in setupPicker() local
287 final long bytes = isLimit ? editor.getPolicyLimitBytes(template) in setupPicker()
288 : editor.getPolicyWarningBytes(template); in setupPicker()
319 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
334 editor.setPolicyLimitBytes(template, correctedBytes); in onClick()
336 editor.setPolicyWarningBytes(template, correctedBytes); in onClick()
384 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onCreateDialog() local
385 final int cycleDay = editor.getPolicyCycleDay(template); in onCreateDialog()
400 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
409 editor.setPolicyCycleDay(template, cycleDay, cycleTimezone); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DBillingCycleSettings.java285 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in setupPicker() local
287 final long bytes = isLimit ? editor.getPolicyLimitBytes(template) in setupPicker()
288 : editor.getPolicyWarningBytes(template); in setupPicker()
319 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
334 editor.setPolicyLimitBytes(template, correctedBytes); in onClick()
336 editor.setPolicyWarningBytes(template, correctedBytes); in onClick()
384 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onCreateDialog() local
385 final int cycleDay = editor.getPolicyCycleDay(template); in onCreateDialog()
400 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
409 editor.setPolicyCycleDay(template, cycleDay, cycleTimezone); in onClick()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java249 final Sizes template = new Sizes(targetWidthPx, targetHeightPx, largestClockFontSizePx); in relayoutWidget() local
252 final Sizes sizes = optimizeSizes(context, template, nextAlarmTime); in relayoutWidget()
291 private static Sizes optimizeSizes(Context context, Sizes template, String nextAlarmTime) { in optimizeSizes() argument
317 Sizes high = measure(template, template.getLargestClockFontSizePx(), sizer); in optimizeSizes()
323 Sizes low = measure(template, template.getSmallestClockFontSizePx(), sizer); in optimizeSizes()
335 final Sizes midSize = measure(template, midFontSize, sizer); in optimizeSizes()
398 private static Sizes measure(Sizes template, int clockFontSize, View sizer) { in measure() argument
400 final Sizes measuredSizes = template.newSize(); in measure()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsCategory.java58 public AppOpsCategory(AppOpsState.OpsTemplate template) { in AppOpsCategory() argument
60 args.putParcelable("template", template); in AppOpsCategory()
122 public AppListLoader(Context context, AppOpsState state, AppOpsState.OpsTemplate template) { in AppListLoader() argument
125 mTemplate = template; in AppListLoader()
350 AppOpsState.OpsTemplate template = null; in onCreateLoader() local
352 template = fargs.getParcelable("template"); in onCreateLoader()
354 return new AppListLoader(getActivity(), mState, template); in onCreateLoader()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appops/
DAppOpsCategory.java58 public AppOpsCategory(AppOpsState.OpsTemplate template) { in AppOpsCategory() argument
60 args.putParcelable("template", template); in AppOpsCategory()
122 public AppListLoader(Context context, AppOpsState state, AppOpsState.OpsTemplate template) { in AppListLoader() argument
125 mTemplate = template; in AppListLoader()
350 AppOpsState.OpsTemplate template = null; in onCreateLoader() local
352 template = fargs.getParcelable("template"); in onCreateLoader()
354 return new AppListLoader(getActivity(), mState, template); in onCreateLoader()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DPreconditions.java399 static String format(String template, Object... args) { in format() argument
402 template.length() + 16 * args.length); in format()
406 int placeholderStart = template.indexOf("%s", templateStart); in format()
410 builder.append(template.substring(templateStart, placeholderStart)); in format()
414 builder.append(template.substring(templateStart)); in format()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DSummaryForAllUidLoader.java46 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { in buildArgs() argument
48 args.putParcelable(KEY_TEMPLATE, template); in buildArgs()
68 NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE); in loadInBackground() local
73 return mSession.getSummaryForAllUid(template, start, end, /* includeTags= */ false); in loadInBackground()

1234567