Home
last modified time | relevance | path

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

12345678

/frameworks/ml/nn/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 …]
/frameworks/base/keystore/tests/src/android/security/
DParcelableKeyGenParameterSpecTest.java34 import java.security.spec.ECGenParameterSpec;
35 import java.security.spec.RSAKeyGenParameterSpec;
91 public static void validateSpecValues(KeyGenParameterSpec spec, int uid, String alias) { in validateSpecValues() argument
92 assertThat(spec.getKeystoreAlias(), is(alias)); in validateSpecValues()
93 assertThat(spec.getPurposes(), is(KEY_PURPOSES)); in validateSpecValues()
94 assertThat(spec.getUid(), is(uid)); in validateSpecValues()
95 assertThat(spec.getKeySize(), is(KEYSIZE)); in validateSpecValues()
96 assertThat(spec.getCertificateSubject(), is(SUBJECT)); in validateSpecValues()
97 assertThat(spec.getCertificateSerialNumber(), is(SERIAL)); in validateSpecValues()
98 assertThat(spec.getCertificateNotBefore(), is(NOT_BEFORE)); in validateSpecValues()
[all …]
/frameworks/rs/script_api/
Dgenerate.sh48spec rs_value_types.spec rs_object_types.spec rs_convert.spec rs_math.spec rs_vector_math.spec rs_…
DGenerateHeaderFiles.cpp119 static void writeConstantSpecification(GeneratedFile* file, const ConstantSpecification& spec) { in writeConstantSpecification() argument
120 const Constant* constant = spec.getConstant(); in writeConstantSpecification()
121 VersionInfo info = spec.getVersionInfo(); in writeConstantSpecification()
123 *file << "static const " << spec.getType() << " " << constant->getName() in writeConstantSpecification()
124 << " = " << spec.getValue() << ";\n\n"; in writeConstantSpecification()
128 static void writeTypeSpecification(GeneratedFile* file, const TypeSpecification& spec) { in writeTypeSpecification() argument
129 const Type* type = spec.getType(); in writeTypeSpecification()
131 const VersionInfo info = spec.getVersionInfo(); in writeTypeSpecification()
135 makeAttributeTag(spec.getAttribute(), "", type->getDeprecatedApiLevel(), in writeTypeSpecification()
138 switch (spec.getKind()) { in writeTypeSpecification()
[all …]
DSpecification.cpp377 ConstantSpecification* spec = new ConstantSpecification(constant); in scanConstantSpecification() local
378 constant->addSpecification(spec); in scanConstantSpecification()
380 specFile->addConstantSpecification(spec, created); in scanConstantSpecification()
381 spec->mVersionInfo = info; in scanConstantSpecification()
384 spec->mValue = scanner->getValue(); in scanConstantSpecification()
387 spec->mType = scanner->getValue(); in scanConstantSpecification()
406 TypeSpecification* spec = new TypeSpecification(type); in scanTypeSpecification() local
407 type->addSpecification(spec); in scanTypeSpecification()
409 specFile->addTypeSpecification(spec, created); in scanTypeSpecification()
410 spec->mVersionInfo = info; in scanTypeSpecification()
[all …]
DGenerateStubsWhiteList.cpp66 for (TypeSpecification* spec : type->second->getSpecifications()) { in findSubstitute()
68 const VersionInfo info = spec->getVersionInfo(); in findSubstitute()
72 switch (spec->getKind()) { in findSubstitute()
74 return spec->getSimpleType(); in findSubstitute()
81 return spec->getStructName(); in findSubstitute()
351 static bool addManglingsForSpecification(const FunctionSpecification& spec, in addManglingsForSpecification() argument
355 if (spec.hasInline()) { in addManglingsForSpecification()
358 const VersionInfo info = spec.getVersionInfo(); in addManglingsForSpecification()
362 const bool overloadable = spec.isOverloadable(); in addManglingsForSpecification()
371 for (auto permutation : spec.getPermutations()) { in addManglingsForSpecification()
[all …]
DGenerateDocumentation.cpp351 static void writeDetailedTypeSpecification(GeneratedFile* file, const TypeSpecification* spec) { in writeDetailedTypeSpecification() argument
352 switch (spec->getKind()) { in writeDetailedTypeSpecification()
354 Type* type = spec->getType(); in writeDetailedTypeSpecification()
355 *file << "<p>A typedef of: " << spec->getSimpleType() in writeDetailedTypeSpecification()
356 << makeAttributeTag(spec->getAttribute(), "", type->getDeprecatedApiLevel(), in writeDetailedTypeSpecification()
359 writeHtmlVersionTag(file, spec->getVersionInfo(), false); in writeDetailedTypeSpecification()
365 writeHtmlVersionTag(file, spec->getVersionInfo(), false); in writeDetailedTypeSpecification()
371 writeHtmlVersionTag(file, spec->getVersionInfo(), false); in writeDetailedTypeSpecification()
375 const vector<string>& values = spec->getValues(); in writeDetailedTypeSpecification()
376 const vector<string>& valueComments = spec->getValueComments(); in writeDetailedTypeSpecification()
[all …]
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyGeneratorSpi.java32 import java.security.spec.AlgorithmParameterSpec;
166 KeyGenParameterSpec spec = (KeyGenParameterSpec) params; in engineInit() local
167 if (spec.getKeystoreAlias() == null) { in engineInit()
172 mSpec = spec; in engineInit()
174 mKeySizeBits = (spec.getKeySize() != -1) ? spec.getKeySize() : mDefaultKeySizeBits; in engineInit()
184 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in engineInit()
186 spec.getEncryptionPaddings()); in engineInit()
187 if (spec.getSignaturePaddings().length > 0) { in engineInit()
191 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes()); in engineInit()
192 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineInit()
[all …]
DKeymasterUtils.java85 private static void addSids(KeymasterArguments args, UserAuthArgs spec) { in addSids() argument
87 if (spec.getUserAuthenticationType() == (KeyProperties.AUTH_BIOMETRIC_STRONG in addSids()
89 if (spec.getBoundToSpecificSecureUserId() != GateKeeper.INVALID_SECURE_USER_ID) { in addSids()
91 KeymasterArguments.toUint64(spec.getBoundToSpecificSecureUserId())); in addSids()
100 if ((spec.getUserAuthenticationType() & KeyProperties.AUTH_BIOMETRIC_STRONG) != 0) { in addSids()
115 if (spec.getBoundToSpecificSecureUserId() != GateKeeper.INVALID_SECURE_USER_ID) { in addSids()
116 sids.add(spec.getBoundToSpecificSecureUserId()); in addSids()
117 } else if (spec.isInvalidatedByBiometricEnrollment()) { in addSids()
128 } else if ((spec.getUserAuthenticationType() & KeyProperties.AUTH_DEVICE_CREDENTIAL) in addSids()
153 public static void addUserAuthArgs(KeymasterArguments args, UserAuthArgs spec) { in addUserAuthArgs() argument
[all …]
DAndroidKeyStoreRSACipherSpi.java33 import java.security.spec.AlgorithmParameterSpec;
34 import java.security.spec.InvalidParameterSpecException;
35 import java.security.spec.MGF1ParameterSpec;
39 import javax.crypto.spec.OAEPParameterSpec;
40 import javax.crypto.spec.PSource;
190 OAEPParameterSpec spec = (OAEPParameterSpec) params; in initAlgorithmSpecificParameters() local
191 if (!MGF_ALGORITGM_MGF1.equalsIgnoreCase(spec.getMGFAlgorithm())) { in initAlgorithmSpecificParameters()
193 "Unsupported MGF: " + spec.getMGFAlgorithm() in initAlgorithmSpecificParameters()
196 String jcaDigest = spec.getDigestAlgorithm(); in initAlgorithmSpecificParameters()
216 AlgorithmParameterSpec mgfParams = spec.getMGFParameters(); in initAlgorithmSpecificParameters()
[all …]
DAndroidKeyStoreKeyFactorySpi.java27 import java.security.spec.ECPublicKeySpec;
28 import java.security.spec.InvalidKeySpecException;
29 import java.security.spec.KeySpec;
30 import java.security.spec.PKCS8EncodedKeySpec;
31 import java.security.spec.RSAPublicKeySpec;
32 import java.security.spec.X509EncodedKeySpec;
127 protected PrivateKey engineGeneratePrivate(KeySpec spec) throws InvalidKeySpecException { in engineGeneratePrivate() argument
134 protected PublicKey engineGeneratePublic(KeySpec spec) throws InvalidKeySpecException { in engineGeneratePublic() argument
DAndroidKeyStoreKeyPairGeneratorSpi.java65 import java.security.spec.AlgorithmParameterSpec;
66 import java.security.spec.ECGenParameterSpec;
67 import java.security.spec.RSAKeyGenParameterSpec;
197 KeyGenParameterSpec spec; in initialize() local
201 spec = (KeyGenParameterSpec) params; in initialize()
283 spec = specBuilder.build(); in initialize()
294 mEntryAlias = spec.getKeystoreAlias(); in initialize()
295 mEntryUid = spec.getUid(); in initialize()
296 mSpec = spec; in initialize()
299 mKeySizeBits = spec.getKeySize(); in initialize()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/view/
DCutoutSpecificationBenchmark.java94 private static void oldMethodParsingSpec(String spec, int displayWidth, int displayHeight, in oldMethodParsingSpec() argument
101 if (!TextUtils.isEmpty(spec)) { in oldMethodParsingSpec()
102 spec = spec.trim(); in oldMethodParsingSpec()
104 if (spec.endsWith(RIGHT_MARKER)) { in oldMethodParsingSpec()
106 spec = spec.substring(0, spec.length() - RIGHT_MARKER.length()).trim(); in oldMethodParsingSpec()
107 } else if (spec.endsWith(LEFT_MARKER)) { in oldMethodParsingSpec()
109 spec = spec.substring(0, spec.length() - LEFT_MARKER.length()).trim(); in oldMethodParsingSpec()
113 final boolean inDp = spec.endsWith(DP_MARKER); in oldMethodParsingSpec()
115 spec = spec.substring(0, spec.length() - DP_MARKER.length()); in oldMethodParsingSpec()
118 if (spec.contains(BOTTOM_MARKER)) { in oldMethodParsingSpec()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java103 for (String spec : stockSplit) { in addCurrentAndStockTiles()
104 if (!current.contains(spec)) { in addCurrentAndStockTiles()
105 possibleTiles.add(spec); in addCurrentAndStockTiles()
113 for (String spec : possibleTiles) { in addCurrentAndStockTiles()
116 if (spec.startsWith(CustomTile.PREFIX)) continue; in addCurrentAndStockTiles()
117 final QSTile tile = host.createTile(spec); in addCurrentAndStockTiles()
121 tile.setTileSpec(spec); in addCurrentAndStockTiles()
128 tile.setTileSpec(spec); in addCurrentAndStockTiles()
162 String spec = CustomTile.toSpec(componentName); in addPackageTiles() local
163 State state = getState(params, spec); in addPackageTiles()
[all …]
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
DBiDiTestGridLayoutCodeLtr.java43 import static android.widget.GridLayout.spec;
69 Spec row1 = spec(0); in create()
70 Spec row2 = spec(1); in create()
71 Spec row3 = spec(2, BASELINE); in create()
72 Spec row4 = spec(3, BASELINE); in create()
73 Spec row5 = spec(2, 3, FILL); // allow the last two rows to overlap the middle two in create()
74 Spec row6 = spec(5); in create()
75 Spec row7 = spec(6); in create()
77 Spec col1a = spec(0, 4, CENTER); in create()
78 Spec col1b = spec(0, 4, LEFT); in create()
[all …]
DBiDiTestGridLayoutCodeRtl.java43 import static android.widget.GridLayout.spec;
69 Spec row1 = spec(0); in create()
70 Spec row2 = spec(1); in create()
71 Spec row3 = spec(2, BASELINE); in create()
72 Spec row4 = spec(3, BASELINE); in create()
73 Spec row5 = spec(2, 3, FILL); // allow the last two rows to overlap the middle two in create()
74 Spec row6 = spec(5); in create()
75 Spec row7 = spec(6); in create()
77 Spec col1a = spec(0, 4, CENTER); in create()
78 Spec col1b = spec(0, 4, LEFT); in create()
[all …]
/frameworks/base/keystore/tests/src/android/security/keystore/
DKeyGenParameterSpecTest.java40 KeyGenParameterSpec spec = ParcelableKeyGenParameterSpecTest.configureDefaultSpec(); in testBuilderCopyingValues() local
42 new KeyGenParameterSpec.Builder(spec).build(); in testBuilderCopyingValues()
44 copiedSpec, spec.getUid(), spec.getKeystoreAlias()); in testBuilderCopyingValues()
49 KeyGenParameterSpec spec = new KeyGenParameterSpec.Builder(ALIAS, KEY_PURPOSES).build(); in testBuilderCopyingEmptyValues() local
50 KeyGenParameterSpec copiedSpec = new KeyGenParameterSpec.Builder(spec).build(); in testBuilderCopyingEmptyValues()
58 KeyGenParameterSpec spec = ParcelableKeyGenParameterSpecTest.configureDefaultSpec(); in testCanModifyValuesInCopiedBuilder() local
60 new KeyGenParameterSpec.Builder(spec) in testCanModifyValuesInCopiedBuilder()
/frameworks/av/media/libwatchdog/
DWatchdog.cpp43 struct itimerspec spec; in Watchdog() local
44 memset(&spec, 0, sizeof(spec)); in Watchdog()
47 spec.it_value.tv_sec = ns.count() / 1000000000; in Watchdog()
48 spec.it_value.tv_nsec = ns.count() % 1000000000; in Watchdog()
49 err = timer_settime(mTimerId, 0, &spec, nullptr); in Watchdog()
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp84 int getTime(int type, struct itimerspec *spec);
115 struct itimerspec spec; in set() local
116 memset(&spec, 0, sizeof(spec)); in set()
117 memcpy(&spec.it_value, ts, sizeof(spec.it_value)); in set()
119 return timerfd_settime(fds[type], TFD_TIMER_ABSTIME, &spec, NULL); in set()
122 int AlarmImpl::getTime(int type, struct itimerspec *spec) in getTime() argument
129 return timerfd_gettime(fds[type], spec); in getTime()
379 struct itimerspec spec; in android_server_AlarmManagerService_init() local
380 memset(&spec, 0, sizeof(spec)); in android_server_AlarmManagerService_init()
385 TFD_TIMER_ABSTIME | TFD_TIMER_CANCEL_ON_SET, &spec, NULL); in android_server_AlarmManagerService_init()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DIAccessibilityInteractionConnection.aidl36 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec, in findAccessibilityNodeInfoByAccessibilityId() argument
41 int flags, int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); in findAccessibilityNodeInfosByViewId() argument
45 int interrogatingPid, long interrogatingTid, in MagnificationSpec spec); in findAccessibilityNodeInfosByText() argument
49 long interrogatingTid, in MagnificationSpec spec); in findFocus() argument
53 long interrogatingTid, in MagnificationSpec spec); in focusSearch() argument
/frameworks/rs/
Dsupport.bp16 "rs.spec",
17 "rs_compat.spec",
19 …cmd: "cat $(location rs.spec) $(location rs_compat.spec) | $(location rsg-generator) $(in) $(out)",
32 "rs.spec",
33 "rs_compat.spec",
35 …cmd: "cat $(location rs.spec) $(location rs_compat.spec) | $(location rsg-generator) $(in) $(out)",
/frameworks/base/core/java/android/view/
DAccessibilityInteractionController.java166 long interrogatingTid, MagnificationSpec spec, Bundle arguments) { in findAccessibilityNodeInfoByAccessibilityIdClientThread() argument
176 args.arg2 = spec; in findAccessibilityNodeInfoByAccessibilityIdClientThread()
327 final MagnificationSpec spec = (MagnificationSpec) args.arg2; in findAccessibilityNodeInfoByAccessibilityIdUiThread() local
347 infos, callback, interactionId, spec, interactiveRegion); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
354 long interrogatingTid, MagnificationSpec spec) { in findAccessibilityNodeInfosByViewIdClientThread() argument
363 args.arg2 = spec; in findAccessibilityNodeInfosByViewIdClientThread()
379 final MagnificationSpec spec = (MagnificationSpec) args.arg2; in findAccessibilityNodeInfosByViewIdUiThread() local
407 infos, callback, interactionId, spec, interactiveRegion); in findAccessibilityNodeInfosByViewIdUiThread()
414 long interrogatingTid, MagnificationSpec spec) { in findAccessibilityNodeInfosByTextClientThread() argument
422 args.arg3 = spec; in findAccessibilityNodeInfosByTextClientThread()
[all …]
DMagnificationSpec.java74 MagnificationSpec spec = sPool.acquire(); in obtain() local
75 return (spec != null) ? spec : new MagnificationSpec(); in obtain()
157 MagnificationSpec spec = MagnificationSpec.obtain();
158 spec.initFromParcel(parcel);
159 return spec;
/frameworks/base/core/java/android/security/net/config/
DRootTrustManagerFactorySpi.java41 public void engineInit(ManagerFactoryParameters spec) in engineInit() argument
43 if (!(spec instanceof ApplicationConfigParameters)) { in engineInit()
44 throw new InvalidAlgorithmParameterException("Unsupported spec: " + spec + ". Only " in engineInit()
48 mApplicationConfig = ((ApplicationConfigParameters) spec).config; in engineInit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java241 public int indexOf(String spec) { in indexOf() argument
242 return mTileSpecs.indexOf(spec); in indexOf()
332 public void removeTile(String spec) { in removeTile() argument
333 changeTileSpecs(tileSpecs-> tileSpecs.remove(spec)); in removeTile()
337 public void unmarkTileAsAutoAdded(String spec) { in unmarkTileAsAutoAdded() argument
338 if (mAutoTiles != null) mAutoTiles.unmarkTileAsAutoAdded(spec); in unmarkTileAsAutoAdded()
341 public void addTile(String spec) { in addTile() argument
342 changeTileSpecs(tileSpecs-> !tileSpecs.contains(spec) && tileSpecs.add(spec)); in addTile()
370 String spec = CustomTile.toSpec(tile); in addTile() local
371 if (!mTileSpecs.contains(spec)) { in addTile()
[all …]

12345678