Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 160) sorted by relevance

1234567

/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/
Dtest_stats.py55 spec = """
59 self.feed_spec_text(spec)
63 spec = """
69 self.feed_spec_text(spec)
75 spec = """
82 self.feed_spec_text(spec)
85 spec = """
91 self.feed_spec_text(spec)
96 spec = """
102 self.feed_spec_text(spec)
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/captiveportal/
DCaptivePortalProbeSpecTest.java117 CaptivePortalProbeSpec spec = CaptivePortalProbeSpec.parseSpecOrNull( in testParseSpecOrNull_UsesSpec() local
119 assertEquals(specUrl, spec.getUrl().toString()); in testParseSpecOrNull_UsesSpec()
121 assertPortal(spec.getResult(302, "http://portal.example.com")); in testParseSpecOrNull_UsesSpec()
122 assertSuccess(spec.getResult(302, redirectUrl)); in testParseSpecOrNull_UsesSpec()
127 CaptivePortalProbeSpec spec = CaptivePortalProbeSpec.parseSpecOrNull(null); in testParseSpecOrNull_UsesFallback() local
128 assertNull(spec); in testParseSpecOrNull_UsesFallback()
130 spec = CaptivePortalProbeSpec.parseSpecOrNull(""); in testParseSpecOrNull_UsesFallback()
131 assertNull(spec); in testParseSpecOrNull_UsesFallback()
133 spec = CaptivePortalProbeSpec.parseSpecOrNull("@@/@@ @@/@@ @@/@@"); in testParseSpecOrNull_UsesFallback()
134 assertNull(spec); in testParseSpecOrNull_UsesFallback()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpec.kt204 var spec: ResponsiveSpec variable in com.android.launcher3.responsive.CalculatedResponsiveSpec
211 spec: ResponsiveSpec,
217 this.spec = spec
221 spec.startPadding.getCalculatedValue(
226 spec.endPadding.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.endPaddingPx)
227 gutterPx = spec.gutter.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.gutterPx)
229 spec.cellSize.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.cellSizePx)
231 updateRemainderSpaces(availableSpace, cells, spec)
234 constructor(aspectRatio: Float, availableSpace: Int, cells: Int, spec: ResponsiveSpec) {
238 this.spec = spec
[all …]
DResponsiveCellSpecsProvider.kt53 val spec = specsGroup.getSpec(DimensionType.HEIGHT, availableHeightSpace) in <lambda>() constant
54 return CalculatedCellSpec(availableHeightSpace, spec) in <lambda>()
63 val spec = specsGroup.getSpec(DimensionType.HEIGHT, availableHeightSpace) in <lambda>() constant
64 return CalculatedCellSpec(availableHeightSpace, spec, workspaceCellSpec) in <lambda>()
151 val spec: CellSpec, constant in CalculatedCellSpec
158 spec: CellSpec
161 spec = spec,
162 iconSize = spec.iconSize.getCalculatedValue(availableSpace),
163 iconTextSize = spec.iconTextSize.getCalculatedValue(availableSpace),
164 iconDrawablePadding = spec.iconDrawablePadding.getCalculatedValue(availableSpace)
[all …]
DResponsiveSpecGroup.kt52 val spec = in getSpec() constant
58 check(spec != null) { "No available $type spec found within $availableSize. $this" } in getSpec()
59 return spec in getSpec()
63 fun printSpec(spec: IResponsiveSpec) = in toString()
64 when (spec.specType) { in toString()
67 ResponsiveSpecType.Workspace -> (spec as ResponsiveSpec).toString() in toString()
68 ResponsiveSpecType.Hotseat -> (spec as HotseatSpec).toString() in toString()
69 ResponsiveSpecType.Cell -> (spec as CellSpec).toString() in toString()
DHotseatSpecsProvider.kt62 val spec = getSpecIgnoringDimensionType(availableSpace, specsGroup) in getCalculatedSpec() constant
63 check(spec != null) { "No available spec found within $availableSpace. $specsGroup" } in getCalculatedSpec()
65 return CalculatedHotseatSpec(availableSpace, spec) in getCalculatedSpec()
146 class CalculatedHotseatSpec(val availableSpace: Int, val spec: HotseatSpec) { constant in CalculatedHotseatSpec
155 hotseatQsbSpace = spec.hotseatQsbSpace.getCalculatedValue(availableSpace)
156 edgePadding = spec.edgePadding.getCalculatedValue(availableSpace)
163 result = 31 * result + spec.hashCode() in hashCode()
172 spec == other.spec in equals()
DResponsiveSpecsProvider.kt78 val spec = specsGroup.getSpec(dimensionType, availableSpace) in <lambda>() constant
79 return CalculatedResponsiveSpec(aspectRatio, availableSpace, numCells, spec) in <lambda>()
103 check(calculatedWorkspaceSpec.spec.dimensionType == dimensionType) { in <lambda>()
116 val spec = specsGroup.getSpec(dimensionType, availableSpace) in <lambda>() constant
121 spec, in <lambda>()
/packages/modules/adb/
Dsocket_spec.cpp78 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, in parse_tcp_socket_spec() argument
80 if (!spec.starts_with("tcp:")) { in parse_tcp_socket_spec()
82 *error += spec; in parse_tcp_socket_spec()
91 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec()
99 std::string addr(spec.substr(4)); in parse_tcp_socket_spec()
120 int get_host_socket_spec_port(std::string_view spec, std::string* error) { in get_host_socket_spec_port() argument
122 if (spec.starts_with("tcp:")) { in get_host_socket_spec_port()
123 if (!parse_tcp_socket_spec(spec, nullptr, &port, nullptr, error)) { in get_host_socket_spec_port()
126 } else if (spec.starts_with("vsock:")) { in get_host_socket_spec_port()
128 std::string spec_str(spec); in get_host_socket_spec_port()
[all …]
Dsocket_spec.h27 bool is_socket_spec(std::string_view spec);
28 bool is_local_socket_spec(std::string_view spec);
32 int socket_spec_listen(std::string_view spec, std::string* error, int* resolved_tcp_port = nullptr);
34 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port,
37 int get_host_socket_spec_port(std::string_view spec, std::string* error);
Dservices.cpp160 std::string spec) { in wait_service() argument
161 std::vector<std::string> components = android::base::Split(spec, "-"); in wait_service()
163 SendFail(fd, "short wait-for-: " + spec); in wait_service()
175 SendFail(fd, "bad wait-for- transport: " + spec); in wait_service()
196 SendFail(fd, "bad wait-for- state: " + spec); in wait_service()
261 std::string spec(name); in host_service_to_socket() local
264 std::string(serial), transport_id, spec)); in host_service_to_socket()
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeSpec.java65 public static CaptivePortalProbeSpec parseSpec(@NonNull String spec) throws ParseException, in parseSpec() argument
67 if (TextUtils.isEmpty(spec)) { in parseSpec()
71 String[] splits = TextUtils.split(spec, REGEX_SEPARATOR); in parseSpec()
81 return new RegexMatchProbeSpec(spec, new URL(splits[0]), statusRegex, locationRegex); in parseSpec()
104 public static CaptivePortalProbeSpec parseSpecOrNull(@Nullable String spec) { in parseSpecOrNull() argument
105 if (spec != null) { in parseSpecOrNull()
107 return parseSpec(spec); in parseSpecOrNull()
109 Log.e(TAG, "Invalid probe spec: " + spec, e); in parseSpecOrNull()
127 for (String spec : TextUtils.split(settingsVal, SPEC_SEPARATOR)) { in parseCaptivePortalProbeSpecs()
129 specs.add(parseSpec(spec)); in parseCaptivePortalProbeSpecs()
[all …]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_parser.cpp54 const OptionSpec &spec = option.second; in printUsage() local
56 if (spec.needsValue()) { in printUsage()
57 printf(" <%s>", spec.getValueName().c_str()); in printUsage()
75 const OptionSpec &spec = option.second; in printUsage() local
77 if (spec.needsValue()) { in printUsage()
78 printf(" <%s>", spec.getValueName().c_str()); in printUsage()
80 printf("\t\t\t%s", spec.getDescription().c_str()); in printUsage()
81 if (spec.needsValue() && !spec.getDefaultValue().empty()) { in printUsage()
82 printf("\tdefault: %s", spec.getDefaultValue().c_str()); in printUsage()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt250 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
265 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
279 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
289 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
300 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
310 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
324 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
336 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
347 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
363 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/grid/
DDirectShareViewHolder.java77 final int spec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); in measure() local
78 getRow(0).measure(spec, spec); in measure()
79 getRow(1).measure(spec, spec); in measure()
DItemGroupViewHolder.java56 final int spec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); in measure() local
57 getViewGroup().measure(spec, spec); in measure()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DTemplateBuilderImpl.java33 protected TemplateBuilderImpl(Slice.Builder b, SliceSpec spec) { in TemplateBuilderImpl() argument
34 this(b, spec, new SystemClock()); in TemplateBuilderImpl()
37 protected TemplateBuilderImpl(Slice.Builder b, SliceSpec spec, Clock clock) { in TemplateBuilderImpl() argument
39 mSpec = spec; in TemplateBuilderImpl()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DActualKeyboardBuilder.java103 public String stringize(final MoreKeySpec spec) { in stringize() argument
104 if (spec == null) { in stringize()
107 return toString(spec.mLabel, spec.mIconId, spec.mOutputText, spec.mCode); in stringize()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DHeader.java51 final DecoderChainSpec<DictionaryHeader> spec = in run() local
54 if (null == spec) { in run()
59 final DictionaryHeader header = spec.mResult; in run()
64 System.out.println("Packaging : " + spec.describeChain()); in run()
DBinaryDictOffdeviceUtils.java226 @Nonnull DecoderChainSpec spec = new DecoderChainSpec(); in decodeDictionaryForProcess() local
227 while (null != spec) { in decodeDictionaryForProcess()
229 final InputStream input = spec.getStream(src); in decodeDictionaryForProcess()
230 spec.mResult = processor.process(input); in decodeDictionaryForProcess()
243 return spec; in decodeDictionaryForProcess()
250 spec = spec.next(); in decodeDictionaryForProcess()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DEnterpriseContactsTest.java314 SearchSpec spec = new SearchSpec.Builder() in testSearchEnterpriseContacts() local
319 SearchResultsShim searchResults = mEnterpriseSession.search("", spec); in testSearchEnterpriseContacts()
336 searchResults = mEnterpriseSession.search("affiliation OR note OR address", spec); in testSearchEnterpriseContacts()
343 SearchSpec spec = new SearchSpec.Builder() in testSearchEnterpriseContacts_withProjection() local
354 SearchResultsShim searchResults = mEnterpriseSession.search("", spec); in testSearchEnterpriseContacts_withProjection()
369 searchResults = mEnterpriseSession.search("affiliation OR note OR address", spec); in testSearchEnterpriseContacts_withProjection()
376 SearchSpec spec = new SearchSpec.Builder() in testSearchEnterpriseContacts_withFilter() local
385 SearchResultsShim searchResults = mEnterpriseSession.search("Sam AND nickname", spec); in testSearchEnterpriseContacts_withFilter()
403 searchResults = mEnterpriseSession.search("affiliation OR note OR address", spec); in testSearchEnterpriseContacts_withFilter()
424 SearchSpec spec = new SearchSpec.Builder() in testEnterpriseContacts_canAccessWithOnlyContactsAccess() local
[all …]
DAppSearchHelperTest.java359 SearchSpec spec = new SearchSpec.Builder() in testPersonSchema_indexFirstMiddleAndLastNames() local
364 SearchResultsShim searchResults = mDb.search("新中野", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
369 searchResults = mDb.search("新", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
374 searchResults = mDb.search("中", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
379 searchResults = mDb.search("野", spec); in testPersonSchema_indexFirstMiddleAndLastNames()
418 SearchSpec spec = new SearchSpec.Builder() in testPersonSchema_indexFullNameOnly() local
423 searchResults = mDb.search("新", spec); in testPersonSchema_indexFullNameOnly()
428 searchResults = mDb.search("中", spec); in testPersonSchema_indexFullNameOnly()
433 searchResults = mDb.search("野", spec); in testPersonSchema_indexFullNameOnly()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumLabelMaker.java51 public AlbumLabelMaker(Context context, AlbumSetSlotRenderer.LabelSpec spec) { in AlbumLabelMaker() argument
53 mSpec = spec; in AlbumLabelMaker()
54 mTitlePaint = getTextPaint(spec.titleFontSize, spec.titleColor, false); in AlbumLabelMaker()
55 mCountPaint = getTextPaint(spec.countFontSize, spec.countColor, false); in AlbumLabelMaker()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSquareFrameLayout.java56 int spec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY); in onMeasure() local
57 this.getChildAt(i).measure(spec, spec); in onMeasure()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeCombinedModeCipher.java25 import java.security.spec.AlgorithmParameterSpec;
33 import javax.crypto.spec.GCMParameterSpec;
34 import javax.crypto.spec.IvParameterSpec;
35 import javax.crypto.spec.SecretKeySpec;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpecTests.java36 final MoreKeySpec spec = new MoreKeySpec( in assertParser() local
38 assertEquals(message + " [label]", expectedLabel, spec.mLabel); in assertParser()
39 assertEquals(message + " [ouptputText]", expectedOutputText, spec.mOutputText); in assertParser()
42 KeyboardIconsSet.getIconName(spec.mIconId)); in assertParser()
45 Constants.printableCode(spec.mCode)); in assertParser()

1234567