Home
last modified time | relevance | path

Searched refs:np (Results 1 – 24 of 24) sorted by relevance

/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperComp.py5 import numpy as np namespace
14 K = np.array([[Fx, 0, Cx],[0, Fy, Cy],[0, 0, 1]])
17 dist = np.array([0.1, -0.003, 0.02, 0.01, 0.004])
19 np.random.seed(1234)
21 activeArray = np.array([[1000, 750]])
23 rawCoords = np.floor(np.random.rand(1000,2) * activeArray)
/frameworks/ml/nn/runtime/test/specs/V1_3/
Dbidirectional_sequence_rnn_1_3.mod.py16 import numpy as np namespace
21 return np.array(tensor).reshape(tensor_shape).transpose(
26 a = np.array(a).reshape(a_shape)
27 b = np.array(b).reshape(b_shape)
28 return np.concatenate((a, b), axis=2).flatten().tolist()
31 return np.array(tensor).reshape(tensor_shape)[:, ::-1, :].flatten().tolist()
34 tensor = np.array(tensor).reshape(tensor_shape)
35 left, right = np.split(tensor, 2, axis=len(tensor_shape) - 1)
Dpad_quant8_signed.mod.py17 import numpy as np namespace
36 output0: np.pad([[[[1.0, 2.0, 3.0],
138 output0: np.pad([[[[-127, -126, -125],
Dquantize_quant8_signed.mod.py17 import numpy as np namespace
20 values = list(np.linspace(-10, 10, num_values))
Dbidirectional_sequence_rnn_state_output.mod.py16 import numpy as np namespace
21 return np.array(tensor).reshape(tensor_shape).transpose([1, 0, 2
26 a = np.array(a).reshape(a_shape)
27 b = np.array(b).reshape(b_shape)
28 return np.concatenate((a, b), axis=2).flatten().tolist()
32 return np.array(tensor).reshape(tensor_shape)[:, ::-1, :].flatten().tolist()
36 tensor = np.array(tensor).reshape(tensor_shape)
37 left, right = np.split(tensor, 2, axis=len(tensor_shape) - 1)
Dunidirectional_sequence_rnn.mod.py16 import numpy as np namespace
43 return np.array(tensor).reshape([num_batches, max_time, input_size
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dpad_v2_all_dims_quant8.mod.py17 import numpy as np namespace
32 output0: np.pad([[[[1, 2, 3],
Dpad_v2_all_dims.mod.py17 import numpy as np namespace
32 output0: np.pad([[[[1.0, 2.0, 3.0],
Dpad_all_dims.mod.py17 import numpy as np namespace
36 output0: np.pad([[[[1.0, 2.0, 3.0],
Dbidirectional_sequence_rnn.mod.py16 import numpy as np namespace
21 return np.array(tensor).reshape(tensor_shape).transpose(
26 a = np.array(a).reshape(a_shape)
27 b = np.array(b).reshape(b_shape)
28 return np.concatenate((a, b), axis=2).flatten().tolist()
31 return np.array(tensor).reshape(tensor_shape)[:, ::-1, :].flatten().tolist()
34 tensor = np.array(tensor).reshape(tensor_shape)
35 left, right = np.split(tensor, 2, axis=len(tensor_shape) - 1)
Dquantize.mod.py17 import numpy as np namespace
20 values = list(np.linspace(-10, 10, num_values))
Dunidirectional_sequence_rnn.mod.py16 import numpy as np namespace
40 return np.array(tensor).reshape([num_batches, max_time,
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java97 PointF np = new PointF(height * (dp.y / len), height * (dp.x / len)); in fromLineAndHeight() local
98 PointF p2 = new PointF(topLeft.x - np.x, topLeft.y + np.y); in fromLineAndHeight()
99 PointF p3 = new PointF(topRight.x - np.x, topRight.y + np.y); in fromLineAndHeight()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java1274 byte[] np = bm.getNinePatchChunk(); in createFromResourceStream()
1275 if (np == null || !NinePatch.isNinePatchChunk(np)) { in createFromResourceStream()
1276 np = null; in createFromResourceStream()
1282 return drawableFromBitmap(res, bm, np, pad, opticalInsets, srcName); in createFromResourceStream()
1569 private static Drawable drawableFromBitmap(Resources res, Bitmap bm, byte[] np, in drawableFromBitmap() argument
1572 if (np != null) { in drawableFromBitmap()
1573 return new NinePatchDrawable(res, bm, np, pad, layoutBounds, srcName); in drawableFromBitmap()
/frameworks/base/startop/scripts/app_startup/
Danalyze_metrics.py38 import numpy as np namespace
166 yield (label_list, np.asarray(data_2d, dtype=int))
187 ci = sc.norm.interval(percent, loc=mean, scale=sigma / np.sqrt(len(col_2d)))
285 return a_std / np.sqrt(a_len)
297 return np.sqrt(temp1 + temp2)
/frameworks/ml/nn/tools/test_generator/
Dtest_generator.py37 import numpy as np namespace
67 v = np.round(v)
71 v = np.minimum(np.maximum(v, 0), 255)
73 v = np.minimum(np.maximum(v, 0), 65535)
75 v = np.minimum(np.maximum(v, -127), 127)
77 v = np.maximum(v, 0)
79 v = np.minimum(np.maximum(v, -128), 127)
268 return np.array(self.scales).reshape(bshape)
310 return np.array(self.value).reshape(self.type.dimensions)
832 v = Dequantize(op.GetValueAsNumpy().astype(np.float32), op.type)
[all …]
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java707 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions()
708 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
DImageDecoder.java1799 byte[] np = bm.getNinePatchChunk(); in decodeDrawableImpl()
1800 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl()
1808 return new NinePatchDrawable(res, bm, np, padding, in decodeDrawableImpl()
1874 byte[] np = bm.getNinePatchChunk(); in decodeBitmapImpl()
1875 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeBitmapImpl()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java783 String np = extractNetworkPortionAlt(phoneNumber); in toCallerIDMinMatch() local
784 return internalGetStrippedReversed(np, getMinMatch()); in toCallerIDMinMatch()
796 String np = extractNetworkPortionAlt(phoneNumber); in getStrippedReversed() local
798 if (np == null) return null; in getStrippedReversed()
800 return internalGetStrippedReversed(np, np.length()); in getStrippedReversed()
808 internalGetStrippedReversed(String np, int numDigits) { in internalGetStrippedReversed() argument
809 if (np == null) return null; in internalGetStrippedReversed()
812 int length = np.length(); in internalGetStrippedReversed()
817 char c = np.charAt(i); in internalGetStrippedReversed()
/frameworks/native/libs/binder/
DMemoryDealer.cpp461 int np = ((cur->next) && cur->next->prev != cur) ? 1 : 0; in dump_l() local
468 errs[np|pn]); in dump_l()
/frameworks/base/tools/velocityplot/
Dvelocityplot.py27 import numpy as np namespace
/frameworks/base/tools/orientationplot/
Dorientationplot.py23 import numpy as np namespace
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputUtils.cpp89 double np[] = {npEntry.data.d[0], npEntry.data.d[1]}; in fixupMonochromeTags() local
90 res = resultMetadata.update(ANDROID_SENSOR_NOISE_PROFILE, np, 2); in fixupMonochromeTags()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java6089 Notification np = new Notification.Builder(mContext, "test") in testRemoveLargeRemoteViews() local
6102 .setPublicVersion(np) in testRemoveLargeRemoteViews()
6105 assertNotNull(np.contentView); in testRemoveLargeRemoteViews()
6106 assertNotNull(np.bigContentView); in testRemoveLargeRemoteViews()
6107 assertNotNull(np.headsUpContentView); in testRemoveLargeRemoteViews()