Home
last modified time | relevance | path

Searched refs:Transform (Results 1 – 8 of 8) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayloadTest.java60 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.Transform;
154 private Transform[] mValidNegotiatedTransformSet;
178 Transform.setAttributeDecoder(mMockedAttributeDecoder); in setUp()
196 new Transform[] { in setUp()
261 Transform.resetAttributeDecoder(); in tearDown()
296 Transform transform = Transform.readFrom(inputBuffer); in testDecodeEncryptionTransform()
298 assertEquals(Transform.TRANSFORM_TYPE_ENCR, transform.type); in testDecodeEncryptionTransform()
315 Transform.readFrom(inputBuffer); in testDecodeEncryptionTransformWithInvalidKeyLength()
358 Transform transform = Transform.readFrom(inputBuffer); in testDecodePrfTransform()
360 assertEquals(Transform.TRANSFORM_TYPE_PRF, transform.type); in testDecodePrfTransform()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeSaPayload.java514 Transform[] decodeTransforms(int count, ByteBuffer inputBuffer) throws IkeProtocolException; in decodeTransforms()
611 Transform[] transformArray = in readFrom()
624 for (Transform transform : transformArray) { in readFrom()
626 case Transform.TRANSFORM_TYPE_ENCR: in readFrom()
629 case Transform.TRANSFORM_TYPE_PRF: in readFrom()
632 case Transform.TRANSFORM_TYPE_INTEG: in readFrom()
635 case Transform.TRANSFORM_TYPE_DH: in readFrom()
638 case Transform.TRANSFORM_TYPE_ESN: in readFrom()
669 public Transform[] decodeTransforms(int count, ByteBuffer inputBuffer) in decodeTransforms()
671 Transform[] transformArray = new Transform[count]; in decodeTransforms()
[all …]
/packages/apps/Camera2/jni/
Djpegutil.cpp48 jpegutil::Transform::Transform(int orig_x, int orig_y, int one_x, int one_y) in Transform() function in jpegutil::Transform
94 jpegutil::Transform jpegutil::Transform::ForCropFollowedByRotation( in ForCropFollowedByRotation()
108 return Transform(cropXLow, cropYLow, cropXHigh + 1, cropYHigh + 1); in ForCropFollowedByRotation()
110 return Transform(cropXHigh, cropYLow, cropXLow - 1, cropYHigh + 1); in ForCropFollowedByRotation()
112 return Transform(cropXHigh, cropYHigh, cropXLow - 1, cropYLow - 1); in ForCropFollowedByRotation()
114 return Transform(cropXLow, cropYHigh, cropXHigh + 1, cropYLow - 1); in ForCropFollowedByRotation()
117 return Transform(cropXLow, cropYLow, cropXHigh + 1, cropYHigh + 1); in ForCropFollowedByRotation()
120 bool jpegutil::Transform::operator==(const Transform& other) const { in operator ==()
131 void jpegutil::Transform::Map(int x, int y, int* x_out, int* y_out) const { in Map()
351 Transform yTrans = Transform::ForCropFollowedByRotation( in Compress()
[all …]
Djpegutil.h31 class Transform; variable
47 class Transform {
49 Transform(int orig_x, int orig_y, int one_x, int one_y);
51 static Transform ForCropFollowedByRotation(int cropLeft, int cropTop,
59 bool operator==(const Transform& other) const;
118 inline RowIterator(Plane plane, Transform transform, int row_length);
132 Transform transform_;
173 jpegutil::RowIterator<ROWS>::RowIterator(Plane plane, Transform transform, in RowIterator()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DSaProposalTest.java40 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.Transform;
292 assertTrue(SaProposal.isTransformSelectedFrom(new Transform[0], new Transform[0])); in testIsTransformSelectedFrom()
295 new Transform[] {mEncryptionAesGcm8Transform}, in testIsTransformSelectedFrom()
296 new Transform[] { in testIsTransformSelectedFrom()
301 new Transform[] {mIntegrityNoneTransform}, in testIsTransformSelectedFrom()
302 new Transform[] {mIntegrityNoneTransform})); in testIsTransformSelectedFrom()
307 new Transform[0], new Transform[] {mEncryptionAesGcm8Transform})); in testIsTransformSelectedFrom()
312 new Transform[] {mPrfAes128XCbcTransform}, new Transform[0])); in testIsTransformSelectedFrom()
317 new Transform[] {mEncryptionAesGcm8Transform, mEncryptionAesGcm12Transform}, in testIsTransformSelectedFrom()
318 new Transform[] { in testIsTransformSelectedFrom()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java30 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.Transform;
254 static boolean isTransformSelectedFrom(Transform[] selected, Transform[] selectFrom) { in isTransformSelectedFrom()
334 for (Transform transform : mIntegrityAlgorithms) { in getIntegrityAlgorithms()
348 for (Transform transform : mDhGroups) { in getDhGroups()
370 protected List<Transform> getAllTransformsAsList() { in getAllTransformsAsList()
371 List<Transform> transformList = new LinkedList<>(); in getAllTransformsAsList()
389 public abstract Transform[] getAllTransforms(); in getAllTransforms()
DIkeSaProposal.java28 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.Transform;
81 for (Transform transform : mPseudorandomFunctions) { in getPseudorandomFunctions()
98 public Transform[] getAllTransforms() { in getAllTransforms()
99 List<Transform> transformList = getAllTransformsAsList(); in getAllTransforms()
102 return transformList.toArray(new Transform[transformList.size()]); in getAllTransforms()
DChildSaProposal.java27 import com.android.internal.net.ipsec.ike.message.IkeSaPayload.Transform;
96 public Transform[] getAllTransforms() { in getAllTransforms()
97 List<Transform> transformList = getAllTransformsAsList(); in getAllTransforms()
100 return transformList.toArray(new Transform[transformList.size()]); in getAllTransforms()