/packages/modules/NeuralNetworks/tools/systrace_parser/parser/test/ |
D | test_stats.py | 55 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/ |
D | CaptivePortalProbeSpecTest.java | 117 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/adb/ |
D | socket_spec.cpp | 78 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 …]
|
D | socket_spec.h | 25 bool is_socket_spec(std::string_view spec); 26 bool is_local_socket_spec(std::string_view spec); 30 int socket_spec_listen(std::string_view spec, std::string* error, int* resolved_tcp_port = nullptr); 32 bool parse_tcp_socket_spec(std::string_view spec, std::string* hostname, int* port, 35 int get_host_socket_spec_port(std::string_view spec, std::string* error);
|
D | services.cpp | 156 std::string spec) { in wait_service() argument 157 std::vector<std::string> components = android::base::Split(spec, "-"); in wait_service() 159 SendFail(fd, "short wait-for-: " + spec); in wait_service() 171 SendFail(fd, "bad wait-for- transport: " + spec); in wait_service() 192 SendFail(fd, "bad wait-for- state: " + spec); in wait_service() 249 std::string spec(name); in host_service_to_socket() local 252 std::string(serial), transport_id, spec)); in host_service_to_socket()
|
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/ |
D | CaptivePortalProbeSpec.java | 65 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/ |
D | arguments_parser.cpp | 54 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/ |
D | ActualKeyboardBuilder.java | 103 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/ |
D | BinaryDictOffdeviceUtils.java | 226 @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()
|
D | Header.java | 51 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/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/ |
D | TemplateBuilderImpl.java | 33 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/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | AlbumLabelMaker.java | 51 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()
|
D | SlotView.java | 91 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCombinedModeCipher.java | 25 import java.security.spec.AlgorithmParameterSpec; 33 import javax.crypto.spec.GCMParameterSpec; 34 import javax.crypto.spec.IvParameterSpec; 35 import javax.crypto.spec.SecretKeySpec;
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSquareFrameLayout.java | 56 int spec = MeasureSpec.makeMeasureSpec(size, MeasureSpec.EXACTLY); in onMeasure() local 57 this.getChildAt(i).measure(spec, spec); in onMeasure()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | MoreKeySpecTests.java | 36 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/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | Utils.java | 39 import java.security.spec.ECGenParameterSpec; 40 import java.security.spec.ECParameterSpec; 41 import java.security.spec.ECPoint; 42 import java.security.spec.ECPublicKeySpec;
|
D | SystemInterfaceTest.java | 77 import javax.crypto.spec.GCMParameterSpec; 78 import javax.crypto.spec.SecretKeySpec; 141 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(alias, PURPOSE_SIGN) in generateKeyStoreKey() local 144 keyPairGenerator.initialize(spec); in generateKeyStoreKey() 146 Certificate[] certs = keyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyStoreKey()
|
D | ServerToSystemTest.java | 82 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(alias, PURPOSE_SIGN) in generateKeyStoreKey() local 85 keyPairGenerator.initialize(spec); in generateKeyStoreKey() 87 Certificate[] certs = keyStore.getCertificateChain(spec.getKeystoreAlias()); in generateKeyStoreKey()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/ |
D | BinaryDictOffdeviceUtilsTests.java | 197 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/ |
D | StateTransitionAnimation.java | 107 public StateTransitionAnimation(Spec spec, RawTexture oldScreen) { in StateTransitionAnimation() argument 108 mTransitionSpec = spec != null ? spec : Spec.OUTGOING; in StateTransitionAnimation()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiConfigStoreEncryptionUtil.java | 43 import javax.crypto.spec.GCMParameterSpec; 122 GCMParameterSpec spec = new GCMParameterSpec(GCM_TAG_LENGTH, encryptedData.getIv()); in decrypt() local 125 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | KnownBandsChannelHelper.java | 149 .map(spec -> spec.frequency) in satisfies() 153 .map(spec -> spec.frequency) in satisfies()
|
/packages/services/Car/service/src/com/android/car/ |
D | FastPairGattServer.java | 50 import java.security.spec.ECParameterSpec; 51 import java.security.spec.ECPoint; 52 import java.security.spec.ECPrivateKeySpec; 53 import java.security.spec.ECPublicKeySpec; 61 import javax.crypto.spec.SecretKeySpec;
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | IkeCertUtils.java | 27 import java.security.spec.InvalidKeySpecException; 28 import java.security.spec.PKCS8EncodedKeySpec;
|