Home
last modified time | relevance | path

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

1234567

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyGeneratorSpi.java33 import java.security.spec.AlgorithmParameterSpec;
161 KeyGenParameterSpec spec = (KeyGenParameterSpec) params; in engineInit() local
162 if (spec.getKeystoreAlias() == null) { in engineInit()
167 mSpec = spec; in engineInit()
169 mKeySizeBits = (spec.getKeySize() != -1) ? spec.getKeySize() : mDefaultKeySizeBits; in engineInit()
179 mKeymasterPurposes = KeyProperties.Purpose.allToKeymaster(spec.getPurposes()); in engineInit()
181 spec.getEncryptionPaddings()); in engineInit()
182 if (spec.getSignaturePaddings().length > 0) { in engineInit()
186 mKeymasterBlockModes = KeyProperties.BlockMode.allToKeymaster(spec.getBlockModes()); in engineInit()
187 if (((spec.getPurposes() & KeyProperties.PURPOSE_ENCRYPT) != 0) in engineInit()
[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.java66 import java.security.spec.AlgorithmParameterSpec;
67 import java.security.spec.ECGenParameterSpec;
68 import java.security.spec.RSAKeyGenParameterSpec;
198 KeyGenParameterSpec spec; in initialize() local
202 spec = (KeyGenParameterSpec) params; in initialize()
284 spec = specBuilder.build(); in initialize()
295 mEntryAlias = spec.getKeystoreAlias(); in initialize()
296 mEntryUid = spec.getUid(); in initialize()
297 mSpec = spec; in initialize()
300 mKeySizeBits = spec.getKeySize(); in initialize()
[all …]
/frameworks/rs/script_api/
Dgenerate.sh36spec 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.cpp376 ConstantSpecification* spec = new ConstantSpecification(constant); in scanConstantSpecification() local
377 constant->addSpecification(spec); in scanConstantSpecification()
379 specFile->addConstantSpecification(spec, created); in scanConstantSpecification()
380 spec->mVersionInfo = info; in scanConstantSpecification()
383 spec->mValue = scanner->getValue(); in scanConstantSpecification()
386 spec->mType = scanner->getValue(); in scanConstantSpecification()
405 TypeSpecification* spec = new TypeSpecification(type); in scanTypeSpecification() local
406 type->addSpecification(spec); in scanTypeSpecification()
408 specFile->addTypeSpecification(spec, created); in scanTypeSpecification()
409 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 … const FunctionSpecification& spec, unsigned int lastApiLevel, in addManglingsForSpecification() argument
354 if (spec.hasInline()) { in addManglingsForSpecification()
357 const VersionInfo info = spec.getVersionInfo(); in addManglingsForSpecification()
361 const bool overloadable = spec.isOverloadable(); in addManglingsForSpecification()
370 for (auto permutation : spec.getPermutations()) { in addManglingsForSpecification()
[all …]
DGenerateDocumentation.cpp348 static void writeDetailedTypeSpecification(GeneratedFile* file, const TypeSpecification* spec) { in writeDetailedTypeSpecification() argument
349 switch (spec->getKind()) { in writeDetailedTypeSpecification()
351 Type* type = spec->getType(); in writeDetailedTypeSpecification()
352 *file << "<p>A typedef of: " << spec->getSimpleType() in writeDetailedTypeSpecification()
353 << makeAttributeTag(spec->getAttribute(), "", type->getDeprecatedApiLevel(), in writeDetailedTypeSpecification()
356 writeHtmlVersionTag(file, spec->getVersionInfo(), false); in writeDetailedTypeSpecification()
362 writeHtmlVersionTag(file, spec->getVersionInfo(), false); in writeDetailedTypeSpecification()
368 writeHtmlVersionTag(file, spec->getVersionInfo(), false); in writeDetailedTypeSpecification()
372 const vector<string>& values = spec->getValues(); in writeDetailedTypeSpecification()
373 const vector<string>& valueComments = spec->getValueComments(); in writeDetailedTypeSpecification()
[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/support/samples/Support7Demos/src/com/example/android/supportv7/view/
DGridLayout3.java25 import static android.support.v7.widget.GridLayout.spec;
61 Spec titleRow = spec(0); in create()
62 Spec introRow = spec(1); in create()
63 Spec emailRow = spec(2, BASELINE); in create()
64 Spec passwordRow = spec(3, BASELINE); in create()
65 Spec button1Row = spec(5); in create()
66 Spec button2Row = spec(6); in create()
68 Spec centerInAllColumns = spec(0, 4, CENTER); in create()
69 Spec leftAlignInAllColumns = spec(0, 4, LEFT); in create()
70 Spec labelColumn = spec(0, RIGHT); in create()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java79 final String spec = possibleTiles[i]; in addStockTiles() local
80 final QSTile tile = mHost.createTile(spec); in addStockTiles()
101 addTile(spec, null, state, true); in addStockTiles()
128 String spec = CustomTile.toSpec(componentName); in addPackageTiles() local
129 State state = getState(params, spec); in addPackageTiles()
131 addTile(spec, appLabel, state, false); in addPackageTiles()
147 addTile(spec, icon, label != null ? label.toString() : "null", appLabel, mContext); in addPackageTiles()
153 private State getState(Collection<QSTile> tiles, String spec) { in getState() argument
155 if (spec.equals(tile.getTileSpec())) { in getState()
162 private void addTile(String spec, CharSequence appLabel, State state, boolean isSystem) { in addTile() argument
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java140 String spec = getString("doze.pickup.proxcheck", in getPickupSubtypePerformsProxCheck() local
143 if (TextUtils.isEmpty(spec)) { in getPickupSubtypePerformsProxCheck()
149 || !TextUtils.equals(spec, sPickupSubtypePerformsProxMatcher.mSpec)) { in getPickupSubtypePerformsProxCheck()
150 sPickupSubtypePerformsProxMatcher = new IntInOutMatcher(spec); in getPickupSubtypePerformsProxCheck()
189 public IntInOutMatcher(String spec) { in IntInOutMatcher() argument
190 if (TextUtils.isEmpty(spec)) { in IntInOutMatcher()
197 mSpec = spec; in IntInOutMatcher()
200 for (String itemPrefixed : spec.split(",", -1)) { in IntInOutMatcher()
203 "Illegal spec, must not have zero-length items: `" + spec + "`"); in IntInOutMatcher()
210 "Illegal spec, must not have zero-length items: `" + spec + "`"); in IntInOutMatcher()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java405 final MagnificationSpec spec = mCurrentMagnificationSpec; in resetLocked() local
406 final boolean changed = !spec.isNop(); in resetLocked()
408 spec.clear(); in resetLocked()
412 sendSpecToAnimation(spec, animate); in resetLocked()
440 final MagnificationSpec spec = mCurrentMagnificationSpec; in setScale() local
441 final float oldScale = spec.scale; in setScale()
442 final float oldCenterX = (viewport.width() / 2.0f - spec.offsetX) / oldScale; in setScale()
443 final float oldCenterY = (viewport.height() / 2.0f - spec.offsetY) / oldScale; in setScale()
444 final float normPivotX = (pivotX - spec.offsetX) / oldScale; in setScale()
445 final float normPivotY = (pivotY - spec.offsetY) / oldScale; in setScale()
[all …]
/frameworks/base/core/java/android/view/
DAccessibilityInteractionController.java155 long interrogatingTid, MagnificationSpec spec, Bundle arguments) { in findAccessibilityNodeInfoByAccessibilityIdClientThread() argument
165 args.arg2 = spec; in findAccessibilityNodeInfoByAccessibilityIdClientThread()
316 final MagnificationSpec spec = (MagnificationSpec) args.arg2; in findAccessibilityNodeInfoByAccessibilityIdUiThread() local
341 infos, callback, interactionId, spec, interactiveRegion); in findAccessibilityNodeInfoByAccessibilityIdUiThread()
348 long interrogatingTid, MagnificationSpec spec) { in findAccessibilityNodeInfosByViewIdClientThread() argument
357 args.arg2 = spec; in findAccessibilityNodeInfosByViewIdClientThread()
373 final MagnificationSpec spec = (MagnificationSpec) args.arg2; in findAccessibilityNodeInfosByViewIdUiThread() local
406 infos, callback, interactionId, spec, interactiveRegion); in findAccessibilityNodeInfosByViewIdUiThread()
413 long interrogatingTid, MagnificationSpec spec) { in findAccessibilityNodeInfosByTextClientThread() argument
421 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/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/
DAndroid.bp84 "spec.l",
99 "rs.spec",
100 "rsg.spec",
102 cmd: "cat $(location rs.spec) $(location rsg.spec) | $(location rsg-generator) $(in) $(out)",
115 "rs.spec",
116 "rsg.spec",
118 cmd: "cat $(location rs.spec) $(location rsg.spec) | $(location rsg-generator) $(in) $(out)",
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/support/compat/java/android/support/v4/text/util/
DLinkifyCompat.java421 LinkSpec spec = new LinkSpec(); in gatherLinks() local
424 spec.url = url; in gatherLinks()
425 spec.start = start; in gatherLinks()
426 spec.end = end; in gatherLinks()
428 links.add(spec); in gatherLinks()
452 LinkSpec spec = new LinkSpec(); in gatherMapLinks() local
456 spec.start = base + start; in gatherMapLinks()
457 spec.end = base + end; in gatherMapLinks()
469 spec.url = "geo:0,0?q=" + encodedAddress; in gatherMapLinks()
470 links.add(spec); in gatherMapLinks()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp114 struct itimerspec spec; in set() local
115 memset(&spec, 0, sizeof(spec)); in set()
116 memcpy(&spec.it_value, ts, sizeof(spec.it_value)); in set()
118 return timerfd_settime(fds[type], TFD_TIMER_ABSTIME, &spec, NULL); in set()
366 struct itimerspec spec; in android_server_AlarmManagerService_init() local
367 memset(&spec, 0, sizeof(spec)); in android_server_AlarmManagerService_init()
372 TFD_TIMER_ABSTIME | TFD_TIMER_CANCEL_ON_SET, &spec, NULL); in android_server_AlarmManagerService_init()
/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/core/java/android/text/util/
DLinkify.java562 LinkSpec spec = new LinkSpec(); in gatherLinks() local
565 spec.url = url; in gatherLinks()
566 spec.start = start; in gatherLinks()
567 spec.end = end; in gatherLinks()
569 links.add(spec); in gatherLinks()
584 LinkSpec spec = new LinkSpec(); in gatherTelLinks() local
585 spec.url = "tel:" + PhoneNumberUtils.normalizeNumber(match.rawString()); in gatherTelLinks()
586 spec.start = match.start(); in gatherTelLinks()
587 spec.end = match.end(); in gatherTelLinks()
588 links.add(spec); in gatherTelLinks()
[all …]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
DGridLayout.java658 Spec spec = horizontal ? p.columnSpec : p.rowSpec; in getDefaultMargin() local
660 Interval span = spec.span; in getDefaultMargin()
686 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec; in getMargin() local
687 int index = leading ? spec.span.min : spec.span.max; in getMargin()
813 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec; in checkLayoutParams() local
814 Interval span = spec.span; in checkLayoutParams()
921 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec; in measureChildrenWithMargins() local
922 if (spec.getAbsoluteAlignment(horizontal) == FILL) { in measureChildrenWithMargins()
923 Interval span = spec.span; in measureChildrenWithMargins()
1148 Spec spec = horizontal ? params.columnSpec : params.rowSpec; in calculateMaxIndex() local
[all …]

1234567