Home
last modified time | relevance | path

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

12345678910>>...312

/frameworks/base/tools/aapt2/util/
DUtil_test.cpp31 const StringPiece trimmed = util::TrimWhitespace("\n "); in TEST()
37 EXPECT_TRUE(util::EndsWith("hello.xml", ".xml")); in TEST()
41 EXPECT_TRUE(util::StartsWith("hello.xml", "he")); in TEST()
45 auto tokenizer = util::Tokenize(StringPiece("this| is|the|end"), '|'); in TEST()
59 auto tokenizer = util::Tokenize(StringPiece(""), '|'); in TEST()
68 auto tokenizer = util::Tokenize(StringPiece("one."), '.'); in TEST()
77 EXPECT_TRUE(util::IsJavaClassName("android.test.Class")); in TEST()
78 EXPECT_TRUE(util::IsJavaClassName("android.test.Class$Inner")); in TEST()
79 EXPECT_TRUE(util::IsJavaClassName("android_test.test.Class")); in TEST()
80 EXPECT_TRUE(util::IsJavaClassName("_android_.test._Class_")); in TEST()
[all …]
/frameworks/base/packages/Tethering/tests/unit/
Djarjar-rules.txt2 # internal classes (like ArrayUtils in com.android.internal.util)
3 rule com.android.internal.util.BitUtils* com.android.networkstack.tethering.util.BitUtils@1
4 rule com.android.internal.util.IndentingPrintWriter.java* com.android.networkstack.tethering.util.I…
5 rule com.android.internal.util.IState.java* com.android.networkstack.tethering.util.IState.java@1
6 rule com.android.internal.util.MessageUtils* com.android.networkstack.tethering.util.MessageUtils@1
7 rule com.android.internal.util.State* com.android.networkstack.tethering.util.State@1
8 rule com.android.internal.util.StateMachine* com.android.networkstack.tethering.util.StateMachine@1
9 rule com.android.internal.util.TrafficStatsConstants* com.android.networkstack.tethering.util.Traff…
11 rule android.util.LocalLog* com.android.networkstack.tethering.util.LocalLog@1
/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 …]
DStringPool_test.cpp209 std::unique_ptr<uint8_t[]> data = util::Copy(buffer); in TEST()
223 std::unique_ptr<uint8_t[]> data = util::Copy(buffer); in TEST()
267 std::unique_ptr<uint8_t[]> data = util::Copy(buffer); in TEST()
272 EXPECT_THAT(util::GetString(test, 1), Eq("hello")); in TEST()
273 EXPECT_THAT(util::GetString16(test, 1), Eq(u"hello")); in TEST()
275 EXPECT_THAT(util::GetString(test, 2), Eq("goodbye")); in TEST()
276 EXPECT_THAT(util::GetString16(test, 2), Eq(u"goodbye")); in TEST()
278 EXPECT_THAT(util::GetString(test, 3), Eq(sLongString)); in TEST()
279 EXPECT_THAT(util::GetString16(test, 3), Eq(util::Utf8ToUtf16(sLongString))); in TEST()
284 EXPECT_THAT(util::GetString(test, 0), Eq("style")); in TEST()
[all …]
/frameworks/base/cmds/statsd/tests/state/
DStateTracker_test.cpp71 AStatsEvent_setAtomId(statsEvent, util::OVERLAY_STATE_CHANGED); in buildIncorrectOverlayEvent()
87 AStatsEvent_setAtomId(statsEvent, util::OVERLAY_STATE_CHANGED); in buildOverlayEventBadStateType()
113 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
124 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
134 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
144 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
154 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
164 getStateInt(mgr, util::SCREEN_STATE_CHANGED, queryKey)); in TEST()
182 mgr.registerListener(util::SCREEN_STATE_CHANGED, listener1); in TEST()
184 EXPECT_EQ(1, mgr.getListenersCount(util::SCREEN_STATE_CHANGED)); in TEST()
[all …]
/frameworks/base/config/
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/opt/telephony/
Djarjar-rules-shared.txt7 rule android.util.LocalLog* com.android.internal.telephony.LocalLog@1
8 rule android.util.TimeUtils* com.android.internal.telephony.TimeUtils@1
10 rule com.android.internal.util.AsyncChannel* com.android.internal.telephony.AsyncChannel@1
11 rule com.android.internal.util.AsyncService* com.android.internal.telephony.AsyncService@1
12 rule com.android.internal.util.BitwiseInputStream* com.android.internal.telephony.BitwiseInputStrea…
13 rule com.android.internal.util.FastXmlSerializer* com.android.internal.telephony.FastXmlSerializer@1
14 rule com.android.internal.util.HexDump* com.android.internal.telephony.HexDump@1
15 rule com.android.internal.util.IState* com.android.internal.telephony.IState@1
16 rule com.android.internal.util.IndentingPrintWriter* com.android.internal.telephony.IndentingPrintW…
17 rule com.android.internal.util.Preconditions* com.android.internal.telephony.Preconditions@1
[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/android/view/inputmethod/
DInlineSuggestionInfo.java26 import com.android.internal.util.DataClass;
145 com.android.internal.util.AnnotationValidations.validate( in InlineSuggestionInfo()
149 if (!(java.util.Objects.equals(mSource, SOURCE_AUTOFILL)) in InlineSuggestionInfo()
150 && !(java.util.Objects.equals(mSource, SOURCE_PLATFORM))) { in InlineSuggestionInfo()
157 com.android.internal.util.AnnotationValidations.validate( in InlineSuggestionInfo()
162 if (!(java.util.Objects.equals(mType, TYPE_SUGGESTION)) in InlineSuggestionInfo()
163 && !(java.util.Objects.equals(mType, TYPE_ACTION))) { in InlineSuggestionInfo()
170 com.android.internal.util.AnnotationValidations.validate( in InlineSuggestionInfo()
226 "autofillHints = " + java.util.Arrays.toString(mAutofillHints) + ", " + in toString()
245 && java.util.Objects.equals(mInlinePresentationSpec, that.mInlinePresentationSpec) in equals()
[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();
70 method public java.util.List<media.codecs.Alias> getAlias_optional();
71 method public java.util.List<media.codecs.Quirk> getAttribute_optional();
74 method public java.util.List<media.codecs.Feature> getFeature_optional();
75 method public java.util.List<media.codecs.Limit> getLimit_optional();
[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/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/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()
196 table_->CreatePackage(util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage()
211 switch (util::DeviceToHost16(parser.chunk()->type)) { in ParsePackage()
215 type_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParsePackage()
223 key_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParsePackage()
261 << static_cast<int>(util::DeviceToHost16(parser.chunk()->type))); in ParsePackage()
[all …]
DResChunkPullParser.cpp35 util::DeviceToHost16(header->type), util::DeviceToHost16(header->headerSize), in ChunkHeaderDump()
36 util::DeviceToHost32(header->size)); in ChunkHeaderDump()
48 util::DeviceToHost32(current_chunk_->size)); in Next()
64 if (util::DeviceToHost16(current_chunk_->headerSize) < sizeof(ResChunk_header)) { in Next()
68 } else if (util::DeviceToHost32(current_chunk_->size) < in Next()
69 util::DeviceToHost16(current_chunk_->headerSize)) { in Next()
73 } else if (offset + util::DeviceToHost32(current_chunk_->size) > len_) { in Next()
/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/com/android/internal/accessibility/util/
DAccessibilityStatsLogUtils.java17 package com.android.internal.accessibility.util;
23 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SERVICE_…
24 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SERVICE_…
25 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SERVICE_…
26 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
27 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
28 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
29 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
30 import static com.android.internal.util.FrameworkStatsLog.ACCESSIBILITY_SHORTCUT_REPORTED__SHORTCUT…
36 import com.android.internal.util.FrameworkStatsLog;
/frameworks/base/cmds/statsd/tests/e2e/
DAttribution_e2e_test.cpp51 util::WAKELOCK_STATE_CHANGED, {position}); in CreateStatsdConfig()
167 util::WAKELOCK_STATE_CHANGED, 111, "App1"); in TEST()
179 util::WAKELOCK_STATE_CHANGED, 222, in TEST()
191 util::WAKELOCK_STATE_CHANGED, 222, in TEST()
201 util::WAKELOCK_STATE_CHANGED, 444, in TEST()
280 util::WAKELOCK_STATE_CHANGED, 222, in TEST()
292 ValidateUidDimension(data.dimensions_in_what(), 0, util::WAKELOCK_STATE_CHANGED, 222); in TEST()
294 util::WAKELOCK_STATE_CHANGED, 222, in TEST()
296 ValidateUidDimension(data.dimensions_in_what(), 1, util::WAKELOCK_STATE_CHANGED, 333); in TEST()
298 util::WAKELOCK_STATE_CHANGED, 333, "App3"); in TEST()
[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 …]
/frameworks/base/apex/permission/service/api/
Dsystem-server-current.txt12util.Map<java.lang.String,java.util.List<com.android.permission.persistence.RuntimePermissionsStat…
14 …method @NonNull public java.util.Map<java.lang.String,java.util.List<com.android.permission.persis…
15 …method @NonNull public java.util.Map<java.lang.String,java.util.List<com.android.permission.persis…
39 …ctor public RolesState(int, @Nullable String, @NonNull java.util.Map<java.lang.String,java.util.Se…
41 … method @NonNull public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> getRoles();
/frameworks/base/core/java/android/widget/inline/
DInlinePresentationSpec.java23 import android.util.Size;
25 import com.android.internal.util.DataClass;
97 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
100 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
103 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
163 && java.util.Objects.equals(mMinSize, that.mMinSize) in equals()
164 && java.util.Objects.equals(mMaxSize, that.mMaxSize) in equals()
175 _hash = 31 * _hash + java.util.Objects.hashCode(mMinSize); in hashCode()
176 _hash = 31 * _hash + java.util.Objects.hashCode(mMaxSize); in hashCode()
177 _hash = 31 * _hash + java.util.Objects.hashCode(mStyle); in hashCode()
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DWatchdogRollbackLogger.java19 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_REAS…
20 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_REAS…
21 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_REAS…
22 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_REAS…
23 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_REAS…
24 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_REAS…
25 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE…
26 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE…
27 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE…
28 import static com.android.internal.util.FrameworkStatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE…
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DLog.java35 android.util.Log.isLoggable(TextClassifier.LOG_TAG, android.util.Log.VERBOSE);
42 android.util.Log.v(tag, msg); in v()
47 android.util.Log.d(tag, msg); in d()
51 android.util.Log.w(tag, msg); in w()
56 android.util.Log.e(tag, msg, tr); in e()
59 android.util.Log.d(tag, String.format("%s (%s)", msg, trString)); in e()

12345678910>>...312