Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/build/soong/android/
Ddepset_generic.go60 type DepSet[T depSettableType] struct {
64 direct []T
65 transitive []*DepSet[T]
69 func NewDepSet[T depSettableType](order DepSetOrder, direct []T, transitive []*DepSet[T]) *DepSet[T
70 var directCopy []T
71 var transitiveCopy []*DepSet[T]
85 directCopy = append([]T(nil), direct...)
86 transitiveCopy = append([]*DepSet[T](nil), transitive...)
89 return &DepSet[T]{
99 type DepSetBuilder[T depSettableType] struct {
[all …]
Dutil.go32 func CopyOf[T any](s []T) []T {
37 return append([]T{}, s...)
42 func Concat[T any](s1, s2 []T) []T {
43 res := make([]T, 0, len(s1)+len(s2))
113 func SortedKeys[T cmp.Ordered, V any](m map[T]V) []T {
117 ret := make([]T, 0, len(m))
159 func IndexList[T comparable](t T, list []T) int {
168 func InList[T comparable](t T, list []T) bool {
172 func setFromList[T comparable](l []T) map[T]bool {
173 m := make(map[T]bool, len(l))
[all …]
Dconfig_test.go61 func TestValidateConfigAnnotations(t *testing.T) { argument
77 func TestProductConfigAnnotations(t *testing.T) { argument
84 func TestMissingVendorConfig(t *testing.T) { argument
91 func verifyProductVariableMarshaling(t *testing.T, v ProductVariables) { argument
105 func TestDefaultProductVariableMarshaling(t *testing.T) { argument
111 func TestBootJarsMarshaling(t *testing.T) { argument
122 func assertStringEquals(t *testing.T, expected, actual string) { argument
128 func TestConfiguredJarList(t *testing.T) { argument
131 t.Run("create", func(t *testing.T) {
135 t.Run("create invalid - missing apex", func(t *testing.T) {
[all …]
Dtest_asserts.go29 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) { argument
38 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) { argument
47 func AssertIntEquals(t *testing.T, message string, expected int, actual int) { argument
56 func AssertStringEquals(t *testing.T, message string, expected string, actual string) { argument
65 func AssertPathRelativeToTopEquals(t *testing.T, message string, expected string, actual Path) { argument
72 func AssertPathsRelativeToTopEquals(t *testing.T, message string, expected []string, actual Paths) { argument
79 func AssertStringPathRelativeToTopEquals(t *testing.T, message string, config Config, expected stri… argument
86 func AssertStringPathsRelativeToTopEquals(t *testing.T, message string, config Config, expected []s… argument
94 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) { argument
106 func AssertTrimmedStringEquals(t *testing.T, message string, expected string, actual string) { argument
[all …]
Dutil_test.go65 func TestFirstUniqueStrings(t *testing.T) { argument
66 f := func(t *testing.T, imp func([]string) []string, in, want []string) {
78 t.Run("list", func(t *testing.T) {
81 t.Run("map", func(t *testing.T) {
125 func TestLastUniqueStrings(t *testing.T) { argument
137 func TestJoinWithPrefix(t *testing.T) { argument
163 t.Run(testCase.name, func(t *testing.T) {
176 func TestIndexList(t *testing.T) { argument
202 t.Run(testCase.key, func(t *testing.T) {
215 func TestInList(t *testing.T) { argument
[all …]
Dfixture_test.go23 func TestFixtureDedup(t *testing.T) { argument
52 func TestFixtureValidateMockFS(t *testing.T) { argument
53 t.Run("absolute path", func(t *testing.T) {
58 t.Run("not canonical", func(t *testing.T) {
63 t.Run("FixtureAddFile", func(t *testing.T) {
68 t.Run("FixtureMergeMockFs", func(t *testing.T) {
75 t.Run("FixtureModifyMockFS", func(t *testing.T) {
/build/blueprint/optional/
Doptional.go22 type ShallowOptional[T any] struct {
23 inner *T
29 func NewShallowOptional[T any](inner *T) ShallowOptional[T] {
30 return ShallowOptional[T]{inner: inner}
34 func (o *ShallowOptional[T]) IsPresent() bool {
39 func (o *ShallowOptional[T]) IsEmpty() bool {
44 func (o *ShallowOptional[T]) Get() T {
53 func (o *ShallowOptional[T]) GetOrDefault(other T) T { argument
/build/blueprint/proptools/
Dconfigurable.go28 type ConfigurableOptional[T any] struct {
29 shallowOptional optional.ShallowOptional[T]
33 func (o *ConfigurableOptional[T]) IsPresent() bool {
38 func (o *ConfigurableOptional[T]) IsEmpty() bool {
43 func (o *ConfigurableOptional[T]) Get() T {
49 func (o *ConfigurableOptional[T]) GetOrDefault(other T) T { argument
283 type ConfigurableCase[T ConfigurableElements] struct {
285 value *T
294 func NewConfigurableCase[T ConfigurableElements](patterns []ConfigurablePattern, value *T) Configur…
297 return ConfigurableCase[T]{
[all …]
Dutils.go9 func ShardBySize[T ~[]E, E any](toShard T, shardSize int) []T {
14 ret := make([]T, 0, (len(toShard)+shardSize-1)/shardSize)
25 func ShardByCount[T ~[]E, E any](toShard T, shardCount int) []T {
Dhash_provider_test.go8 func mustHash(t *testing.T, data interface{}) uint64 { argument
17 func TestHashingMapGetsSameResults(t *testing.T) { argument
28 func TestHashingNonSerializableTypesFails(t *testing.T) { argument
47 t.Run(testCase.name, func(t *testing.T) {
60 func TestHashSuccessful(t *testing.T) { argument
108 t.Run(testCase.name, func(t *testing.T) {
114 func TestHashingDereferencePointers(t *testing.T) { argument
/build/soong/jar/
Djar_test.go23 func TestGetJavaPackage(t *testing.T) { argument
76 t.Run(tt.name, func(t *testing.T) {
90 func Test_javaIdentRune(t *testing.T) { argument
150 check := func(t *testing.T, ch rune, i int, want bool) {
157 t.Run("first", func(t *testing.T) {
158 t.Run("valid", func(t *testing.T) {
160 t.Run(string(ch), func(t *testing.T) {
166 t.Run("invalid", func(t *testing.T) {
168 t.Run(string(ch), func(t *testing.T) {
175 t.Run("part", func(t *testing.T) {
[all …]
/build/make/
Denvsetup.sh32 local T=
35 T=`PWD= /bin/pwd -P`
38 if [ -f "$T/$TOPFILE" ]; then
39 echo "$T"
44 T=$(_gettop_once)
45 if [ ! "$T" ]; then
49 IMPORTING_ENVSETUP=true source $T/build/make/shell_utils.sh
54 local T=$(gettop)
56 …cached_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_build…
57 …cached_abs_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_a…
[all …]
/build/
Denvsetup.sh32 local T=
35 T=`PWD= /bin/pwd -P`
38 if [ -f "$T/$TOPFILE" ]; then
39 echo "$T"
44 T=$(_gettop_once)
45 if [ ! "$T" ]; then
49 IMPORTING_ENVSETUP=true source $T/build/make/shell_utils.sh
54 local T=$(gettop)
56 …cached_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_build…
57 …cached_abs_vars=(`cat $T/build/envsetup.sh | tr '()' ' ' | awk '{for(i=1;i<=NF;i++) if($i~/_get_a…
[all …]
/build/soong/aconfig/codegen/
Djava_aconfig_library_test.go29 func runJavaAndroidMkTest(t *testing.T, bp string) { argument
68 func TestAndroidMkJavaLibrary(t *testing.T) { argument
86 func TestAndroidMkAndroidApp(t *testing.T) { argument
104 func TestAndroidMkBinary(t *testing.T) { argument
123 func TestAndroidMkAndroidLibrary(t *testing.T) { argument
141 func TestAndroidMkBinaryThatLinksAgainstAar(t *testing.T) { argument
171 func testCodegenMode(t *testing.T, bpMode string, ruleMode string) { argument
197 func testCodegenModeWithError(t *testing.T, bpMode string, err string) { argument
218 func TestDefaultProdMode(t *testing.T) { argument
222 func TestProdMode(t *testing.T) { argument
[all …]
/build/soong/sdk/
Dbuild_release_test.go34 func TestNameToRelease(t *testing.T) { argument
35 t.Run("single release", func(t *testing.T) {
40 t.Run("invalid release", func(t *testing.T) {
49 func TestParseBuildReleaseSet(t *testing.T) { argument
50 t.Run("single release", func(t *testing.T) {
55 t.Run("open range", func(t *testing.T) {
60 t.Run("closed range", func(t *testing.T) {
66 t.Run("invalid release", func(t *testing.T) {
71 t.Run("invalid release in open range", func(t *testing.T) {
76 t.Run("invalid release in closed range start", func(t *testing.T) {
[all …]
Dcompat_config_sdk_test.go24 func testSnapshotWithCompatConfig(t *testing.T, sdk string) { argument
55 func(t *testing.T, result *android.TestResult) {
61 func(t *testing.T, result *android.TestResult) {
69 func(t *testing.T, result *android.TestResult) {
78 func TestSnapshotWithCompatConfig(t *testing.T) { argument
87 func TestSnapshotWithCompatConfig_Apex(t *testing.T) { argument
/build/soong/starlark_fmt/
Dformat_test.go25 func TestPrintEmptyStringList(t *testing.T) { argument
35 func TestPrintSingleElementStringList(t *testing.T) { argument
45 func TestPrintMultiElementStringList(t *testing.T) { argument
58 func TestPrintEmptyList(t *testing.T) { argument
68 func TestPrintSingleElementList(t *testing.T) { argument
78 func TestPrintMultiElementList(t *testing.T) { argument
91 func TestListWithNonZeroIndent(t *testing.T) { argument
104 func TestStringListDictEmpty(t *testing.T) { argument
114 func TestStringListDict(t *testing.T) { argument
135 func TestPrintDict(t *testing.T) { argument
[all …]
/build/blueprint/pathtools/
Dfs_test.go50 func TestMockFs_followSymlinks(t *testing.T) { argument
98 t.Run(test.from, func(t *testing.T) {
107 func runTestFs(t *testing.T, f func(t *testing.T, fs FileSystem, dir string)) { argument
112 run := func(t *testing.T, fs FileSystem) {
113 t.Run("relpath", func(t *testing.T) {
116 t.Run("abspath", func(t *testing.T) {
121 t.Run("mock", func(t *testing.T) {
125 t.Run("os", func(t *testing.T) {
131 t.Run("os relative srcDir", func(t *testing.T) {
135 t.Run("os absolute srcDir", func(t *testing.T) {
[all …]
/build/soong/finder/fs/
Dtest.go26 func Write(t *testing.T, path string, content string, filesystem *MockFs) { argument
35 func Create(t *testing.T, path string, filesystem *MockFs) { argument
39 func Delete(t *testing.T, path string, filesystem *MockFs) { argument
46 func RemoveAll(t *testing.T, path string, filesystem *MockFs) { argument
53 func Move(t *testing.T, oldPath string, newPath string, filesystem *MockFs) { argument
60 func Link(t *testing.T, newPath string, oldPath string, filesystem *MockFs) { argument
72 func Read(t *testing.T, path string, filesystem *MockFs) string { argument
85 func ModTime(t *testing.T, path string, filesystem *MockFs) time.Time { argument
93 func SetReadable(t *testing.T, path string, readable bool, filesystem *MockFs) { argument
100 func SetReadErr(t *testing.T, path string, readErr error, filesystem *MockFs) { argument
[all …]
/build/soong/ui/build/paths/
Dlogs_test.go28 func TestSendLog(t *testing.T) { argument
32 t.Run("Short name", func(t *testing.T) {
43 testLongName := func(t *testing.T, lookup socketAddrFunc) {
55 t.Run("Long name", func(t *testing.T) {
60 t.Run("Long name proc fallback", func(t *testing.T) {
65 t.Run("Long name tmp fallback", func(t *testing.T) {
70 func testSendLog(t *testing.T, socket string, lookup socketAddrFunc) { argument
110 func TestSendLogError(t *testing.T) { argument
118 t.Run("Missing file", func(t *testing.T) {
123 t.Run("Regular file", func(t *testing.T) {
[all …]
/build/blueprint/
Dlevenshtein_test.go33 func assertEqual(t *testing.T, a, b []string) { argument
43 func TestLevenshteinWontGuessUnlike(t *testing.T) { argument
46 func TestLevenshteinInsert(t *testing.T) { argument
49 func TestLevenshteinDelete(t *testing.T) { argument
52 func TestLevenshteinReplace(t *testing.T) { argument
/build/soong/ui/build/
Dstaging_snapshot_test.go24 func assertDeepEqual(t *testing.T, expected interface{}, actual interface{}) { argument
53 func TestEmptyOut(t *testing.T) { argument
67 func TestNoExtraSubdirs(t *testing.T) { argument
85 func TestDiffEmpty(t *testing.T) { argument
98 func TestDiffAdd(t *testing.T) { argument
116 func TestDiffChangeMode(t *testing.T) { argument
135 func TestDiffChangeSize(t *testing.T) { argument
154 func TestDiffChangeContents(t *testing.T) { argument
173 func TestDiffRemove(t *testing.T) { argument
Denvironment_test.go23 func TestEnvUnset(t *testing.T) { argument
32 func TestEnvUnsetMissing(t *testing.T) { argument
41 func TestEnvSet(t *testing.T) { argument
50 func TestEnvSetDup(t *testing.T) { argument
59 func TestEnvAllow(t *testing.T) { argument
75 func TestEnvAppendFromKati(t *testing.T) { argument
/build/soong/etc/
Dprebuilt_etc_test.go41 func TestPrebuiltEtcVariants(t *testing.T) { argument
75 func TestPrebuiltEtcOutputPath(t *testing.T) { argument
88 func TestPrebuiltEtcGlob(t *testing.T) { argument
108 func TestPrebuiltEtcMultipleSrcs(t *testing.T) { argument
122 func TestPrebuiltEtcAndroidMk(t *testing.T) { argument
157 func TestPrebuiltEtcRelativeInstallPathInstallDirPath(t *testing.T) { argument
171 func TestPrebuiltEtcCannotSetRelativeInstallPathAndSubDir(t *testing.T) { argument
184 func TestPrebuiltEtcHost(t *testing.T) { argument
199 func TestPrebuiltEtcAllowMissingDependencies(t *testing.T) { argument
223 func TestPrebuiltRootInstallDirPath(t *testing.T) { argument
[all …]
/build/bazel/scripts/
Dqueryview-bottom-up.sh74 T=${1:-//bionic/libc:libc--android_arm_armv7-a-neon_shared}
82 label_array=$(bazel query --config=queryview "deps($T)" --output=label $COMMON_BAZEL_OPTS 2>/dev/nu…
85 minrank_array=$(bazel query --config=queryview "deps($T)" --output=minrank $COMMON_BAZEL_OPTS 2>/de…
88 label_kind_array=$(bazel query --config=queryview "deps($T)" --output=label_kind $COMMON_BAZEL_OPTS…

12345678910>>...14