Home
last modified time | relevance | path

Searched refs:util (Results 1 – 25 of 4377) sorted by relevance

12345678910>>...176

/frameworks/base/tools/aapt2/util/
DUtil_test.cpp42 const StringPiece trimmed = util::TrimWhitespace("\n "); in TEST()
48 EXPECT_TRUE(util::EndsWith("hello.xml", ".xml")); in TEST()
52 EXPECT_TRUE(util::StartsWith("hello.xml", "he")); in TEST()
56 auto tokenizer = util::Tokenize(StringPiece("this| is|the|end"), '|'); in TEST()
70 auto tokenizer = util::Tokenize(StringPiece(""), '|'); in TEST()
79 auto tokenizer = util::Tokenize(StringPiece("one."), '.'); in TEST()
88 EXPECT_TRUE(util::IsJavaClassName("android.test.Class")); in TEST()
89 EXPECT_TRUE(util::IsJavaClassName("android.test.Class$Inner")); in TEST()
90 EXPECT_TRUE(util::IsJavaClassName("android_test.test.Class")); in TEST()
91 EXPECT_TRUE(util::IsJavaClassName("_android_.test._Class_")); in TEST()
[all …]
/frameworks/base/apex/jobscheduler/service/
Djarjar-rules.txt1 # Rename all com.android.internal.util classes to prevent class name collisions
6 rule com.android.internal.util.ArrayUtils* com.android.internal.util.jobs.ArrayUtils@1
7 rule com.android.internal.util.BitUtils* com.android.internal.util.jobs.BitUtils@1
8 rule com.android.internal.util.CollectionUtils* com.android.internal.util.jobs.CollectionUtils@1
9 rule com.android.internal.util.ConcurrentUtils* com.android.internal.util.jobs.ConcurrentUtils@1
10 rule com.android.internal.util.DumpUtils* com.android.internal.util.jobs.DumpUtils@1
11 rule com.android.internal.util.FastPrintWriter* com.android.internal.util.jobs.FastPrintWriter@1
12 rule com.android.internal.util.FastXmlSerializer* com.android.internal.util.jobs.FastXmlSerializer@1
13 rule com.android.internal.util.FunctionalUtils* com.android.internal.util.jobs.FunctionalUtils@1
14 rule com.android.internal.util.ParseUtils* com.android.internal.util.jobs.ParseUtils@1
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/debug/
DLog.java59 if (isLoggable(tag, android.util.Log.DEBUG)) { in d()
60 android.util.Log.d(tag.toString(), msg); in d()
65 if (isLoggable(tag, android.util.Log.DEBUG)) { in d()
66 android.util.Log.d(tag.toString(), msg, tr); in d()
71 if (isLoggable(tag, android.util.Log.ERROR)) { in e()
72 android.util.Log.e(tag.toString(), msg); in e()
77 if (isLoggable(tag, android.util.Log.ERROR)) { in e()
78 android.util.Log.e(tag.toString(), msg, tr); in e()
83 if (isLoggable(tag, android.util.Log.INFO)) { in i()
84 android.util.Log.i(tag.toString(), msg); in i()
[all …]
/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp77 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
78 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
79 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
97 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
99 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
100 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "phablet")); in TEST()
126 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
127 configs.push_back(util::make_unique<ResourceConfigValue>(en_config, "")); in TEST()
128 configs.push_back(util::make_unique<ResourceConfigValue>(en_v21_config, "")); in TEST()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/content/res/
DBridgeTypedArrayTest.java21 import static android.util.TypedValue.TYPE_ATTRIBUTE;
22 import static android.util.TypedValue.TYPE_DIMENSION;
23 import static android.util.TypedValue.TYPE_FLOAT;
24 import static android.util.TypedValue.TYPE_INT_BOOLEAN;
25 import static android.util.TypedValue.TYPE_INT_COLOR_ARGB4;
26 import static android.util.TypedValue.TYPE_INT_COLOR_ARGB8;
27 import static android.util.TypedValue.TYPE_INT_COLOR_RGB4;
28 import static android.util.TypedValue.TYPE_INT_COLOR_RGB8;
29 import static android.util.TypedValue.TYPE_INT_DEC;
30 import static android.util.TypedValue.TYPE_INT_HEX;
[all …]
/frameworks/opt/telephony/
Djarjar-rules-shared.txt7 rule android.util.IndentingPrintWriter* com.android.internal.telephony.AndroidUtilIndentingPrintWri…
8 rule android.util.LocalLog* com.android.internal.telephony.LocalLog@1
9 rule android.util.TimeUtils* com.android.internal.telephony.TimeUtils@1
11 rule com.android.internal.util.AsyncChannel* com.android.internal.telephony.AsyncChannel@1
12 rule com.android.internal.util.AsyncService* com.android.internal.telephony.AsyncService@1
13 rule com.android.internal.util.BitwiseInputStream* com.android.internal.telephony.BitwiseInputStrea…
14 rule com.android.internal.util.FastXmlSerializer* com.android.internal.telephony.FastXmlSerializer@1
15 rule com.android.internal.util.HexDump* com.android.internal.telephony.HexDump@1
16 rule com.android.internal.util.IState* com.android.internal.telephony.IState@1
17 rule com.android.internal.util.IndentingPrintWriter* com.android.internal.telephony.IndentingPrintW…
[all …]
/frameworks/base/core/java/
DAndroid.bp86 "android/util/AndroidException.java",
128 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
129 out: ["com/android/internal/util/FrameworkStatsLog.java"],
148 "android/util/LocalLog.java",
157 "android/util/IndentingPrintWriter.java",
158 "android/util/LocalLog.java",
159 // This should be android.util.IndentingPrintWriter, but it's not available in all branches.
160 "com/android/internal/util/IndentingPrintWriter.java",
161 "com/android/internal/util/IState.java",
162 "com/android/internal/util/MessageUtils.java",
[all …]
/frameworks/base/config/
Dboot-image-profile.txt24 …droid/os/Parcel;)V+]Landroid/os/Parcel;Landroid/os/Parcel;]Ljava/util/Set;Landroid/util/ArraySet;]…
60 HSPLandroid/accounts/AccountManager$AmsTask;->getResult(JLjava/util/concurrent/TimeUnit;)Landroid/o…
61 HSPLandroid/accounts/AccountManager$AmsTask;->getResult(JLjava/util/concurrent/TimeUnit;)Ljava/lang…
62 HSPLandroid/accounts/AccountManager$AmsTask;->internalGetResult(Ljava/lang/Long;Ljava/util/concurre…
73 HSPLandroid/accounts/AccountManager$Future2Task;->internalGetResult(Ljava/lang/Long;Ljava/util/conc…
81 HSPLandroid/accounts/AccountManager;->access$200(Landroid/accounts/AccountManager;)Ljava/util/HashM…
82 HSPLandroid/accounts/AccountManager;->access$300(Landroid/accounts/AccountManager;)Ljava/util/HashM…
128 …m/android/internal/graphics/SfVsyncFrameCallbackProvider;]Ljava/util/ArrayList;Ljava/util/ArrayLis…
136 HSPLandroid/animation/AnimationHandler;->access$200(Landroid/animation/AnimationHandler;)Ljava/util
137 …droid/animation/AnimationHandler$MyFrameCallbackProvider;]Ljava/util/ArrayList;Ljava/util/ArrayLis…
[all …]
Dboot-profile.txt9 Landroid/util/ContainerHelpers;->binarySearch([III)I
10 …amilyToFallback(Landroid/text/FontConfig$Family;Landroid/util/ArrayMap;Ljava/util/Map;Ljava/util/A…
11 Landroid/util/ArrayMap;->indexOf(Ljava/lang/Object;I)I
12 Lcom/android/internal/util/Preconditions;->checkArgument(ZLjava/lang/Object;)V
13 Lcom/android/internal/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/…
15 Landroid/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
16 Landroid/util/ArrayMap;->indexOfKey(Ljava/lang/Object;)I
17 Landroid/util/ArrayMap;->size()I
18 Landroid/util/ArrayMap;->keyAt(I)Ljava/lang/Object;
19 Landroid/util/ArrayMap;->valueAt(I)Ljava/lang/Object;
[all …]
/frameworks/native/services/stats/
DStatsHal.cpp35 android::util::stats_write(android::util::SPEAKER_IMPEDANCE_REPORTED, in reportSpeakerImpedance()
42 android::util::stats_write(android::util::HARDWARE_FAILED, int32_t(hardwareFailed.hardwareType), in reportHardwareFailed()
50 android::util::stats_write(android::util::PHYSICAL_DROP_DETECTED, in reportPhysicalDropDetected()
63 android::util::stats_write(android::util::CHARGE_CYCLES_REPORTED, buckets[0], buckets[1], in reportChargeCycles()
72 android::util::stats_write(android::util::BATTERY_HEALTH_SNAPSHOT, in reportBatteryHealthSnapshot()
82 android::util::stats_write(android::util::SLOW_IO, int32_t(slowIo.operation), slowIo.count); in reportSlowIo()
89 android::util::stats_write(android::util::BATTERY_CAUSED_SHUTDOWN, in reportBatteryCausedShutdown()
97 android::util::stats_write(android::util::USB_PORT_OVERHEAT_EVENT_REPORTED, in reportUsbPortOverheatEvent()
107 android::util::stats_write(android::util::SPEECH_DSP_STAT_REPORTED, in reportSpeechDspStat()
/frameworks/base/core/java/com/android/internal/accessibility/util/
DAccessibilityStatsLogUtils.java17 package com.android.internal.accessibility.util;
27 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SERVICE_…
28 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SERVICE_…
29 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SERVICE_…
30 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
31 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
32 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
33 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
34 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
35 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
[all …]
/frameworks/base/core/java/android/content/pm/verify/domain/
DDomainVerificationUserState.java27 import android.util.ArrayMap;
29 import com.android.internal.util.DataClass;
30 import com.android.internal.util.Parcelling;
32 import java.util.Map;
33 import java.util.UUID;
191 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
194 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
197 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
200 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
203 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
[all …]
DDomainVerificationInfo.java24 import android.util.ArrayMap;
26 import com.android.internal.util.DataClass;
27 import com.android.internal.util.Parcelling;
29 import java.util.Map;
30 import java.util.Set;
31 import java.util.UUID;
221 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationInfo()
224 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationInfo()
227 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationInfo()
302 && java.util.Objects.equals(mIdentifier, that.mIdentifier) in equals()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DConcurrentUtils.java17 package com.android.internal.util;
20 import android.util.Slog;
22 import java.util.concurrent.CountDownLatch;
23 import java.util.concurrent.ExecutionException;
24 import java.util.concurrent.Executor;
25 import java.util.concurrent.ExecutorService;
26 import java.util.concurrent.Executors;
27 import java.util.concurrent.Future;
28 import java.util.concurrent.ThreadFactory;
29 import java.util.concurrent.TimeUnit;
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInlineSuggestionInfo.java26 import com.android.internal.util.DataClass;
170 com.android.internal.util.AnnotationValidations.validate( in InlineSuggestionInfo()
174 if (!(java.util.Objects.equals(mSource, SOURCE_AUTOFILL)) in InlineSuggestionInfo()
175 && !(java.util.Objects.equals(mSource, SOURCE_PLATFORM))) { in InlineSuggestionInfo()
182 com.android.internal.util.AnnotationValidations.validate( in InlineSuggestionInfo()
187 if (!(java.util.Objects.equals(mType, TYPE_SUGGESTION)) in InlineSuggestionInfo()
188 && !(java.util.Objects.equals(mType, TYPE_ACTION))) { in InlineSuggestionInfo()
195 com.android.internal.util.AnnotationValidations.validate( in InlineSuggestionInfo()
260 "autofillHints = " + java.util.Arrays.toString(mAutofillHints) + ", " + in toString()
280 && java.util.Objects.equals(mInlinePresentationSpec, that.mInlinePresentationSpec) in equals()
[all …]
/frameworks/base/core/java/com/android/internal/jank/
DInteractionJankMonitor.java26 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
27 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
28 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
29 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
30 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
31 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
32 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
33 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
34 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
35 import static com.android.internal.util.FrameworkStatsLog.UIINTERACTION_FRAME_INFO_REPORTED__INTERA…
[all …]
/frameworks/av/media/libstagefright/xmlparser/api/
Dcurrent.txt12 method public java.util.List<media.codecs.MediaCodec> getMediaCodec();
17 method public java.util.List<media.codecs.MediaCodec> getMediaCodec();
40 method public java.util.List<media.codecs.Decoders> getDecoders_optional();
41 method public java.util.List<media.codecs.Encoders> getEncoders_optional();
42 method public java.util.List<media.codecs.Include> getInclude_optional();
43 method public java.util.List<media.codecs.Settings> getSettings_optional();
80 method public java.util.List<media.codecs.Alias> getAlias_optional();
81 method public java.util.List<media.codecs.Quirk> getAttribute_optional();
84 method public java.util.List<media.codecs.Feature> getFeature_optional();
85 method public java.util.List<media.codecs.Limit> getLimit_optional();
[all …]
/frameworks/base/telecomm/java/android/telecom/
DLog.java32 import com.android.internal.util.IndentingPrintWriter;
34 import java.util.Arrays;
35 import java.util.IllegalFormatException;
36 import java.util.Locale;
37 import java.util.stream.Collectors;
59 public static boolean DEBUG = isLoggable(android.util.Log.DEBUG);
60 public static boolean INFO = isLoggable(android.util.Log.INFO);
61 public static boolean VERBOSE = isLoggable(android.util.Log.VERBOSE);
62 public static boolean WARN = isLoggable(android.util.Log.WARN);
63 public static boolean ERROR = isLoggable(android.util.Log.ERROR);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistantInvocationEvent.kt21 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__AOD1
22 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__AOD2
23 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__APP…
24 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__APP…
25 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__APP…
26 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__BOU…
27 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__LAU…
28 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__LAU…
29 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__LAU…
30 import com.android.internal.util.FrameworkStatsLog.ASSISTANT_INVOCATION_REPORTED__DEVICE_STATE__UNK…
[all …]
/frameworks/av/media/libaudiohal/impl/
DAndroid.bp35 "android.hardware.audio.common-util",
55 "android.hardware.audio.common.util@all-versions",
70 "android.hardware.audio.common@4.0-util",
72 "android.hardware.audio.effect@4.0-util",
74 "android.hardware.audio@4.0-util",
88 "android.hardware.audio.common@5.0-util",
90 "android.hardware.audio.effect@5.0-util",
92 "android.hardware.audio@5.0-util",
106 "android.hardware.audio.common@6.0-util",
108 "android.hardware.audio.effect@6.0-util",
[all …]
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp53 dst[i] = util::DeviceToHost16(src[i]); in strcpy16_dtoh()
137 switch (util::DeviceToHost16(parser.chunk()->type)) { in ParseTable()
141 value_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParseTable()
164 << static_cast<int>(util::DeviceToHost16(parser.chunk()->type))); in ParseTable()
185 uint32_t package_id = util::DeviceToHost32(package_header->id); in ParsePackage()
195 ResourceTablePackage* package = table_->FindOrCreatePackage(util::Utf16ToUtf8(package_name)); in ParsePackage()
210 switch (util::DeviceToHost16(parser.chunk()->type)) { in ParsePackage()
214 type_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParsePackage()
222 key_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParsePackage()
266 << static_cast<int>(util::DeviceToHost16(parser.chunk()->type))); in ParsePackage()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DDisplayRotationUtilTest.java102 DisplayRotationUtil util = new DisplayRotationUtil(); in testGetRotatedBounds_top_rot0() local
104 assertThat(util.getRotatedBounds(bounds, ROTATION_0, 200, 300), in testGetRotatedBounds_top_rot0()
110 DisplayRotationUtil util = new DisplayRotationUtil(); in testGetRotatedBounds_top_rot90() local
112 assertThat(util.getRotatedBounds(bounds, ROTATION_90, 200, 300), in testGetRotatedBounds_top_rot90()
118 DisplayRotationUtil util = new DisplayRotationUtil(); in testGetRotatedBounds_top_rot180() local
120 assertThat(util.getRotatedBounds(bounds, ROTATION_180, 200, 300), in testGetRotatedBounds_top_rot180()
126 DisplayRotationUtil util = new DisplayRotationUtil(); in testGetRotatedBounds_top_rot270() local
128 assertThat(util.getRotatedBounds(bounds, ROTATION_270, 200, 300), in testGetRotatedBounds_top_rot270()
134 DisplayRotationUtil util = new DisplayRotationUtil(); in testGetRotatedBounds_left_rot0() local
136 assertThat(util.getRotatedBounds(bounds, ROTATION_0, 300, 200), in testGetRotatedBounds_left_rot0()
[all …]
/frameworks/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java62 java.util.TimeZone timeZone = java.util.TimeZone.getTimeZone(timezoneId); in toMillis_javaUtil()
63 java.util.Calendar calendar = new java.util.GregorianCalendar(timeZone); in toMillis_javaUtil()
65 calendar.set(java.util.Calendar.MILLISECOND, 0); in toMillis_javaUtil()
76 android.icu.util.TimeZone timeZone = in toMillis_androidIucUtil()
77 android.icu.util.TimeZone.getTimeZone(timezoneId); in toMillis_androidIucUtil()
78 android.icu.util.Calendar calendar = new android.icu.util.GregorianCalendar(timeZone); in toMillis_androidIucUtil()
80 calendar.set(android.icu.util.Calendar.MILLISECOND, 0); in toMillis_androidIucUtil()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedProcess.java19 import static java.util.Collections.emptySet;
26 import android.util.ArraySet;
28 import com.android.internal.util.CollectionUtils;
29 import com.android.internal.util.DataClass;
30 import com.android.internal.util.Parcelling;
32 import java.util.Set;
87 com.android.internal.util.AnnotationValidations.validate( in ParsedProcess()
90 com.android.internal.util.AnnotationValidations.validate( in ParsedProcess()
93 com.android.internal.util.AnnotationValidations.validate( in ParsedProcess()
96 com.android.internal.util.AnnotationValidations.validate( in ParsedProcess()
[all …]
/frameworks/base/telephony/java/android/telephony/mbms/
DServiceInfo.java25 import java.util.ArrayList;
26 import java.util.Collections;
27 import java.util.Date;
28 import java.util.HashMap;
29 import java.util.List;
30 import java.util.Locale;
31 import java.util.Map;
32 import java.util.NoSuchElementException;
33 import java.util.Objects;
34 import java.util.Set;
[all …]

12345678910>>...176