Home
last modified time | relevance | path

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

123

/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/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/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTrackRecordTest.kt223 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
238 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
252 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
262 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
273 TRTInterpreter.interpretTestSpec(useReadHeads = false, spec = """ in <lambda>()
283 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
297 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
309 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
320 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
336 TRTInterpreter.interpretTestSpec(useReadHeads = true, spec = """ in <lambda>()
[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/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/
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()
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()
/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()
DSlotView.java91 public SlotView(AbstractGalleryActivity activity, Spec spec) { in SlotView() argument
95 setSlotSpec(spec); in SlotView()
144 public void setSlotSpec(Spec spec) { in setSlotSpec() argument
145 mLayout.setSlotSpec(spec); in setSlotSpec()
417 public void setSlotSpec(Spec spec) { in setSlotSpec() argument
418 mSpec = spec; in setSlotSpec()
/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()
DTemplateSliceBuilder.java114 static <T> Pair<SliceSpec, Class<? extends TemplateBuilderImpl>> pair(SliceSpec spec, in pair() argument
116 return new Pair(spec, cls); in pair()
DPreferenceSliceBuilderImpl.java95 public PreferenceSliceBuilderImpl(Slice.Builder b, SliceSpec spec) { in PreferenceSliceBuilderImpl() argument
96 this(b, spec, new SystemClock()); in PreferenceSliceBuilderImpl()
102 public PreferenceSliceBuilderImpl(Slice.Builder b, SliceSpec spec, Clock clock) { in PreferenceSliceBuilderImpl() argument
103 super(b, spec, clock); in PreferenceSliceBuilderImpl()
/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()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/message/
DIkeKePayload.java39 import java.security.spec.InvalidKeySpecException;
44 import javax.crypto.spec.DHParameterSpec;
45 import javax.crypto.spec.DHPrivateKeySpec;
46 import javax.crypto.spec.DHPublicKeySpec;
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java197 final DecoderChainSpec<DictionaryHeader> spec = in runTestHeaderReaderProcessorWithOneSpec() local
200 assertNotNull("Can't decode a dictionary we just wrote : " + file, spec); in runTestHeaderReaderProcessorWithOneSpec()
201 final DictionaryHeader header = spec.mResult; in runTestHeaderReaderProcessorWithOneSpec()
203 spec.describeChain()); in runTestHeaderReaderProcessorWithOneSpec()
/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.SecretKeySpec;
DIkeNormalModeCipher.java30 import javax.crypto.spec.IvParameterSpec;
31 import javax.crypto.spec.SecretKeySpec;
DAesXCbcImpl.java32 import javax.crypto.spec.IvParameterSpec;
33 import javax.crypto.spec.SecretKeySpec;
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
DStateTransitionAnimation.java107 public StateTransitionAnimation(Spec spec, RawTexture oldScreen) { in StateTransitionAnimation() argument
108 mTransitionSpec = spec != null ? spec : Spec.OUTGOING; in StateTransitionAnimation()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPunctuationSuggestions.java60 for (String spec : punctuationSpecs) { in newPunctuationSuggestions()
61 punctuationList.add(newHardCodedWordInfo(spec)); in newPunctuationSuggestions()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java179 final KeyGenParameterSpec spec = parcelableSpec.getSpec();
180 final String alias = spec.getKeystoreAlias();
191 if (TextUtils.isEmpty(alias) || spec.getUid() != KeyStore.UID_SELF) {
196 if (spec.getAttestationChallenge() != null) {
214 generator.initialize(spec);
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/shortcut/
DCreateShortcutPreferenceController.java229 final int spec = View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY); in createIcon() local
230 view.measure(spec, spec); in createIcon()
/packages/apps/Settings/src/com/android/settings/shortcut/
DCreateShortcutPreferenceController.java251 final int spec = View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY); in createIcon() local
252 view.measure(spec, spec); in createIcon()

123