Home
last modified time | relevance | path

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

12

/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/
DCaptivePortalProbeSpec.java63 public static CaptivePortalProbeSpec parseSpec(@NonNull String spec) throws ParseException, in parseSpec() argument
65 if (TextUtils.isEmpty(spec)) { in parseSpec()
69 String[] splits = TextUtils.split(spec, REGEX_SEPARATOR); in parseSpec()
79 return new RegexMatchProbeSpec(spec, new URL(splits[0]), statusRegex, locationRegex); in parseSpec()
102 public static CaptivePortalProbeSpec parseSpecOrNull(@Nullable String spec) { in parseSpecOrNull() argument
103 if (spec != null) { in parseSpecOrNull()
105 return parseSpec(spec); in parseSpecOrNull()
107 Log.e(TAG, "Invalid probe spec: " + spec, e); in parseSpecOrNull()
125 for (String spec : TextUtils.split(settingsVal, SPEC_SEPARATOR)) { in parseCaptivePortalProbeSpecs()
127 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/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/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/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/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/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java169 final KeyGenParameterSpec spec = parcelableSpec.getSpec();
170 final String alias = spec.getKeystoreAlias();
173 if (TextUtils.isEmpty(alias) || spec.getUid() != KeyStore.UID_SELF) {
178 if (spec.getAttestationChallenge() != null) {
196 generator.initialize(spec);
/packages/services/Car/tests/robotests/src/com/android/car/
DCarServiceRobolectricTestRunner.java63 private static ResourcePath resourcePath(@NonNull String spec) {
65 return new ResourcePath(null, Fs.fromURL(new URL(spec)), null);
/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/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.java239 final int spec = View.MeasureSpec.makeMeasureSpec(size, View.MeasureSpec.EXACTLY); in createIcon() local
240 view.measure(spec, spec); in createIcon()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCertActivity.java44 import java.security.spec.InvalidKeySpecException;
45 import java.security.spec.X509EncodedKeySpec;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java321 for (final MoreKeySpec spec : parentKey.getMoreKeys()) { in getMaxKeyWidth()
322 final String label = spec.mLabel; in getMaxKeyWidth()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java51 import java.security.spec.InvalidKeySpecException;
52 import java.security.spec.PKCS8EncodedKeySpec;
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java131 final String spec = getIntent().getStringExtra(EXTRA_CAPTIVE_PORTAL_PROBE_SPEC); in onCreate() local
133 mProbeSpec = CaptivePortalProbeSpec.parseSpecOrNull(spec); in onCreate()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java747 GridViewSpecial.LayoutSpec spec, in ImageBlockManager() argument
754 mSpec = spec; in ImageBlockManager()
/packages/services/Car/service/src/com/android/car/trust/
DCarTrustedDeviceService.java54 import javax.crypto.spec.GCMParameterSpec;
DCarTrustAgentUnlockService.java61 import javax.crypto.spec.SecretKeySpec;

12