Home
last modified time | relevance | path

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

12345678

/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<>
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()
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>
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationTypeItem.java21 import com.android.car.notification.template.BasicNotificationViewHolder;
22 import com.android.car.notification.template.CallNotificationViewHolder;
23 import com.android.car.notification.template.CarNotificationBaseViewHolder;
24 import com.android.car.notification.template.EmergencyNotificationViewHolder;
25 import com.android.car.notification.template.GroupNotificationViewHolder;
26 import com.android.car.notification.template.GroupSummaryNotificationViewHolder;
27 import com.android.car.notification.template.InboxNotificationViewHolder;
28 import com.android.car.notification.template.MessageNotificationViewHolder;
29 import com.android.car.notification.template.NavigationNotificationViewHolder;
30 import com.android.car.notification.template.ProgressNotificationViewHolder;
DCarNotificationViewAdapter.java33 import com.android.car.notification.template.CarNotificationBaseViewHolder;
34 import com.android.car.notification.template.CarNotificationFooterViewHolder;
35 import com.android.car.notification.template.CarNotificationHeaderViewHolder;
36 import com.android.car.notification.template.GroupNotificationViewHolder;
37 import com.android.car.notification.template.GroupSummaryNotificationViewHolder;
38 import com.android.car.notification.template.MessageNotificationViewHolder;
/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/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationTypeItemTest.java30 import com.android.car.notification.template.BasicNotificationViewHolder;
31 import com.android.car.notification.template.CallNotificationViewHolder;
32 import com.android.car.notification.template.CarNotificationBaseViewHolder;
33 import com.android.car.notification.template.GroupNotificationViewHolder;
34 import com.android.car.notification.template.GroupSummaryNotificationViewHolder;
35 import com.android.car.notification.template.InboxNotificationViewHolder;
36 import com.android.car.notification.template.MessageNotificationViewHolder;
37 import com.android.car.notification.template.NavigationNotificationViewHolder;
38 import com.android.car.notification.template.ProgressNotificationViewHolder;
/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 …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataUsagePreferenceController.java110 NetworkTemplate template = mTemplate.get(); in getNetworkTemplate() local
111 if (template != null) { in getNetworkTemplate()
112 return template; in getNetworkTemplate()
115 template = mTemplateFuture.get(); in getNetworkTemplate()
116 mTemplate.set(template); in getNetworkTemplate()
120 return template; in getNetworkTemplate()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java296 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in setupPicker() local
298 final long bytes = isLimit ? editor.getPolicyLimitBytes(template) in setupPicker()
299 : editor.getPolicyWarningBytes(template); in setupPicker()
325 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
347 editor.setPolicyLimitBytes(template, correctedBytes); in onClick()
349 editor.setPolicyWarningBytes(template, correctedBytes); in onClick()
397 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onCreateDialog() local
398 final int cycleDay = editor.getPolicyCycleDay(template); in onCreateDialog()
413 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
422 editor.setPolicyCycleDay(template, cycleDay, cycleTimezone); in onClick()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DBillingCycleSettings.java283 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in setupPicker() local
285 final long bytes = isLimit ? editor.getPolicyLimitBytes(template) in setupPicker()
286 : editor.getPolicyWarningBytes(template); in setupPicker()
317 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
332 editor.setPolicyLimitBytes(template, correctedBytes); in onClick()
334 editor.setPolicyWarningBytes(template, correctedBytes); in onClick()
382 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onCreateDialog() local
383 final int cycleDay = editor.getPolicyCycleDay(template); in onCreateDialog()
398 final NetworkTemplate template = getArguments().getParcelable(EXTRA_TEMPLATE); in onClick() local
407 editor.setPolicyCycleDay(template, cycleDay, cycleTimezone); in onClick()
/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/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/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()

12345678