Home
last modified time | relevance | path

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

12345678910>>...273

/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/cmds/statsd/src/external/
DStatsPullerManagerImpl.cpp54 {android::util::WIFI_BYTES_TRANSFER,
58 new StatsCompanionServicePuller(android::util::WIFI_BYTES_TRANSFER)}},
60 {android::util::WIFI_BYTES_TRANSFER_BY_FG_BG,
64 new StatsCompanionServicePuller(android::util::WIFI_BYTES_TRANSFER_BY_FG_BG)}},
66 {android::util::MOBILE_BYTES_TRANSFER,
70 new StatsCompanionServicePuller(android::util::MOBILE_BYTES_TRANSFER)}},
72 {android::util::MOBILE_BYTES_TRANSFER_BY_FG_BG,
76 new StatsCompanionServicePuller(android::util::MOBILE_BYTES_TRANSFER_BY_FG_BG)}},
78 {android::util::BLUETOOTH_BYTES_TRANSFER,
82 new StatsCompanionServicePuller(android::util::BLUETOOTH_BYTES_TRANSFER)}},
[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.cpp75 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
76 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
77 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
95 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
96 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
97 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "phablet")); in TEST()
124 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
125 configs.push_back(util::make_unique<ResourceConfigValue>(en_config, "")); in TEST()
126 configs.push_back(util::make_unique<ResourceConfigValue>(en_v21_config, "")); in TEST()
[all …]
DResourceUtils.cpp49 util::Utf16ToUtf8(StringPiece16(name_in.package, name_in.packageLen)); in ToResourceName()
54 util::Utf16ToUtf8(StringPiece16(name_in.type, name_in.typeLen))); in ToResourceName()
69 util::Utf16ToUtf8(StringPiece16(name_in.name, name_in.nameLen)); in ToResourceName()
122 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseReference()
172 StringPiece trimmed_str(util::TrimWhitespace(str)); in ParseAttributeReference()
267 StringPiece trimmed_str = util::TrimWhitespace(str); in ParseXmlAttributeName()
299 std::unique_ptr<Reference> value = util::make_unique<Reference>(ref); in TryParseReference()
308 return util::make_unique<Reference>(ref, Reference::Type::kAttribute); in TryParseReference()
314 const StringPiece trimmed_str(util::TrimWhitespace(str)); in TryParseNullOrEmpty()
326 return util::make_unique<Reference>(); in MakeNull()
[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 …]
DResourceValues_test.cpp43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
44 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST()
48 b.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("autre")); in TEST()
51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
52 c.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
62 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
63 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
73 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
[all …]
/frameworks/base/config/
Dpreloaded-classes1839 android.icu.util.AnnualTimeZoneRule
1840 android.icu.util.BasicTimeZone
1841 android.icu.util.BytesTrie
1842 android.icu.util.BytesTrie$Result
1843 android.icu.util.Calendar
1844 android.icu.util.Calendar$1
1845 android.icu.util.Calendar$CalType
1846 android.icu.util.Calendar$FormatConfiguration
1847 android.icu.util.Calendar$PatternData
1848 android.icu.util.Calendar$WeekData
[all …]
/frameworks/base/telecomm/java/android/telecom/
DLog.java30 import com.android.internal.util.IndentingPrintWriter;
34 import java.util.IllegalFormatException;
35 import java.util.Locale;
52 public static boolean DEBUG = isLoggable(android.util.Log.DEBUG);
53 public static boolean INFO = isLoggable(android.util.Log.INFO);
54 public static boolean VERBOSE = isLoggable(android.util.Log.VERBOSE);
55 public static boolean WARN = isLoggable(android.util.Log.WARN);
56 public static boolean ERROR = isLoggable(android.util.Log.ERROR);
83 android.util.Slog.i(TAG, buildMessage(prefix, format, args)); in d()
85 android.util.Slog.d(TAG, buildMessage(prefix, format, args)); in d()
[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.ExecutorService;
25 import java.util.concurrent.Executors;
26 import java.util.concurrent.Future;
27 import java.util.concurrent.ThreadFactory;
28 import java.util.concurrent.TimeUnit;
29 import java.util.concurrent.atomic.AtomicInteger;
/frameworks/base/tools/aapt2/format/binary/
DBinaryResourceParser.cpp124 switch (util::DeviceToHost16(parser.chunk()->type)) { in ParseTable()
128 value_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParseTable()
151 << static_cast<int>(util::DeviceToHost16(parser.chunk()->type))); in ParseTable()
172 uint32_t package_id = util::DeviceToHost32(package_header->id); in ParsePackage()
183 package_name[i] = util::DeviceToHost16(package_header->name[i]); in ParsePackage()
187 table_->CreatePackage(util::Utf16ToUtf8(package_name), static_cast<uint8_t>(package_id)); in ParsePackage()
202 switch (util::DeviceToHost16(parser.chunk()->type)) { in ParsePackage()
206 type_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParsePackage()
214 key_pool_.setTo(parser.chunk(), util::DeviceToHost32(parser.chunk()->size)); in ParsePackage()
246 << 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()
DXmlFlattener.cpp82 std::string text = util::TrimWhitespace(node->text).to_string(); in Visit()
99 flat_node->lineNumber = util::HostToDevice32(node->line_number); in Visit()
100 flat_node->comment.index = util::HostToDevice32(-1); in Visit()
122 flat_node->lineNumber = util::HostToDevice32(node->line_number); in Visit()
123 flat_node->comment.index = util::HostToDevice32(-1); in Visit()
132 flat_elem->attributeStart = util::HostToDevice16(sizeof(*flat_elem)); in Visit()
133 flat_elem->attributeSize = util::HostToDevice16(sizeof(ResXMLTree_attribute)); in Visit()
146 flat_end_node->lineNumber = util::HostToDevice32(node->line_number); in Visit()
147 flat_end_node->comment.index = util::HostToDevice32(-1); in Visit()
175 dest->index = util::DeviceToHost32(-1); in AddString()
[all …]
/frameworks/base/cmds/statsd/tests/e2e/
DAttribution_e2e_test.cpp51 android::util::WAKELOCK_STATE_CHANGED, {position}); in CreateStatsdConfig()
163 data.dimensions_in_what(), android::util::WAKELOCK_STATE_CHANGED, 111, in TEST()
175 data.dimensions_in_what(), android::util::WAKELOCK_STATE_CHANGED, 222, in TEST()
187 data.dimensions_in_what(), android::util::WAKELOCK_STATE_CHANGED, 222, in TEST()
196 data.dimensions_in_what(), android::util::WAKELOCK_STATE_CHANGED, 444, in TEST()
309 data.dimensions_in_what(), android::util::WAKELOCK_STATE_CHANGED, 222, "GMSCoreModule1"); in TEST()
324 data.dimensions_in_what(), 0, android::util::WAKELOCK_STATE_CHANGED, 222); in TEST()
326 data.dimensions_in_what(), 0, android::util::WAKELOCK_STATE_CHANGED, 222, "GMSCoreModule1"); in TEST()
328 data.dimensions_in_what(), 1, android::util::WAKELOCK_STATE_CHANGED, 333); in TEST()
330 data.dimensions_in_what(), 1, android::util::WAKELOCK_STATE_CHANGED, 333, "App3"); in TEST()
[all …]
DDimensionInCondition_e2e_simple_cond_test.cpp42 dimensions->set_field(android::util::SCHEDULED_JOB_STATE_CHANGED); in CreateDurationMetricConfig_NoLink_SimpleCondition()
47 *syncDimension = CreateAttributionUidAndTagDimensions(android::util::SYNC_STATE_CHANGED, in CreateDurationMetricConfig_NoLink_SimpleCondition()
63 dimensionWhat->set_field(android::util::SCHEDULED_JOB_STATE_CHANGED); in CreateDurationMetricConfig_NoLink_SimpleCondition()
66 android::util::SYNC_STATE_CHANGED, {Position::FIRST}); in CreateDurationMetricConfig_NoLink_SimpleCondition()
162 android::util::SCHEDULED_JOB_STATE_CHANGED); in TEST()
168 … android::util::SYNC_STATE_CHANGED, 111, "App1"); in TEST()
178 android::util::SCHEDULED_JOB_STATE_CHANGED); in TEST()
184 … android::util::SYNC_STATE_CHANGED, 333, "App2"); in TEST()
194 android::util::SCHEDULED_JOB_STATE_CHANGED); in TEST()
200 … android::util::SYNC_STATE_CHANGED, 111, "App1"); 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/core/java/android/util/apk/
DApkSignatureSchemeV2Verifier.java17 package android.util.apk;
19 import static android.util.apk.ApkSigningBlockUtils.CONTENT_DIGEST_VERITY_CHUNKED_SHA256;
20 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_DSA_WITH_SHA256;
21 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_ECDSA_WITH_SHA256;
22 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_ECDSA_WITH_SHA512;
23 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_RSA_PKCS1_V1_5_WITH_SHA256;
24 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_RSA_PKCS1_V1_5_WITH_SHA512;
25 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_RSA_PSS_WITH_SHA256;
26 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_RSA_PSS_WITH_SHA512;
27 import static android.util.apk.ApkSigningBlockUtils.SIGNATURE_VERITY_DSA_WITH_SHA256;
[all …]
/frameworks/support/paging/common/api/
Dcurrent.txt7 …<ToValue> androidx.paging.DataSource<Key, ToValue> map(androidx.arch.core.util.Function<Value, ToV…
8 …ataSource<Key, ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>, java.uti…
15 …> androidx.paging.DataSource.Factory<Key, ToValue> map(androidx.arch.core.util.Function<Value, ToV…
16 …e.Factory<Key, ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>, java.uti…
29 … androidx.paging.ItemKeyedDataSource<Key, ToValue> map(androidx.arch.core.util.Function<Value, ToV…
30 …ataSource<Key, ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>, java.uti…
35 method public abstract void onResult(java.util.List<Value>);
40 method public abstract void onResult(java.util.List<Value>, int, int);
61 … androidx.paging.PageKeyedDataSource<Key, ToValue> map(androidx.arch.core.util.Function<Value, ToV…
62 …ataSource<Key, ToValue> mapByPage(androidx.arch.core.util.Function<java.util.List<Value>, java.uti…
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCameraCharacteristics.java27 import android.util.Rational;
29 import java.util.Arrays;
30 import java.util.Collections;
31 import java.util.HashSet;
32 import java.util.List;
33 import java.util.Set;
605 public static final Key<android.util.Range<Integer>[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES =
606 …new Key<android.util.Range<Integer>[]>("android.control.aeAvailableTargetFpsRanges", new TypeRefer…
625 public static final Key<android.util.Range<Integer>> CONTROL_AE_COMPENSATION_RANGE =
626 …new Key<android.util.Range<Integer>>("android.control.aeCompensationRange", new TypeReference<andr…
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_alloc_copyPadded.java27 import java.util.Random;
105 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_1D()
110 android.util.Log.v("Alloc Padding Test", "Byte1D TEST PASSED"); in testAllocation_Byte3_1D()
137 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_2D()
142 android.util.Log.v("Alloc Padding Test", "Byte2D TEST PASSED"); in testAllocation_Byte3_2D()
170 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_3D()
175 android.util.Log.v("Alloc Padding Test", "Byte3D TEST PASSED"); in testAllocation_Byte3_3D()
204 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Short3_1D()
209 android.util.Log.v("Alloc Padding Test", "Short1D TEST PASSED"); in testAllocation_Short3_1D()
239 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Short3_2D()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_alloc_copyPadded.java22 import java.util.Random;
102 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_1D()
107 android.util.Log.v("Alloc Padding Test", "Byte1D TEST PASSED"); in testAllocation_Byte3_1D()
134 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_2D()
139 android.util.Log.v("Alloc Padding Test", "Byte2D TEST PASSED"); in testAllocation_Byte3_2D()
167 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_3D()
172 android.util.Log.v("Alloc Padding Test", "Byte3D TEST PASSED"); in testAllocation_Byte3_3D()
201 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Short3_1D()
206 android.util.Log.v("Alloc Padding Test", "Short1D TEST PASSED"); in testAllocation_Short3_1D()
236 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Short3_2D()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_alloc_copyPadded.java25 import java.util.Random;
103 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_1D()
108 android.util.Log.v("Alloc Padding Test", "Byte1D TEST PASSED"); in testAllocation_Byte3_1D()
135 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_2D()
140 android.util.Log.v("Alloc Padding Test", "Byte2D TEST PASSED"); in testAllocation_Byte3_2D()
168 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Byte3_3D()
173 android.util.Log.v("Alloc Padding Test", "Byte3D TEST PASSED"); in testAllocation_Byte3_3D()
202 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Short3_1D()
207 android.util.Log.v("Alloc Padding Test", "Short1D TEST PASSED"); in testAllocation_Short3_1D()
237 … android.util.Log.v("Alloc Padding Test", "" + i + " " + inArray[i] + " " + outArray[i]); in testAllocation_Short3_2D()
[all …]
/frameworks/base/services/core/java/com/android/server/
DSystemServerInitThreadPool.java21 import android.util.Slog;
23 import com.android.internal.util.ConcurrentUtils;
24 import com.android.internal.util.Preconditions;
26 import java.util.List;
27 import java.util.concurrent.Callable;
28 import java.util.concurrent.ExecutorService;
29 import java.util.concurrent.Future;
30 import java.util.concurrent.TimeUnit;
/frameworks/base/core/java/com/android/internal/util/function/pooled/
DPooledSupplier.java17 package com.android.internal.util.function.pooled;
19 import com.android.internal.util.FunctionalUtils.ThrowingSupplier;
21 import java.util.function.DoubleSupplier;
22 import java.util.function.IntSupplier;
23 import java.util.function.LongSupplier;
24 import java.util.function.Supplier;
/frameworks/base/tools/aapt2/link/
DAutoVersioner_test.cpp31 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
32 entry.values.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
33 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
44 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
45 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dp_v13_config, "")); in TEST()
46 entry.values.push_back(util::make_unique<ResourceConfigValue>(v21_config, "")); in TEST()
61 util::make_unique<Id>()) in TEST()
63 util::make_unique<Id>()) in TEST()
65 ResourceId(0x01010364), util::make_unique<Id>()) in TEST()
67 util::make_unique<Id>()) in TEST()
[all …]

12345678910>>...273