/frameworks/av/services/camera/libcameraservice/tests/ |
D | DistortionMapperComp.py | 5 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/ |
D | bidirectional_sequence_rnn_1_3.mod.py | 16 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)
|
D | pad_quant8_signed.mod.py | 17 import numpy as np namespace 36 output0: np.pad([[[[1.0, 2.0, 3.0], 138 output0: np.pad([[[[-127, -126, -125],
|
D | bidirectional_sequence_rnn_state_output.mod.py | 16 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)
|
D | quantize_quant8_signed.mod.py | 17 import numpy as np namespace 20 values = list(np.linspace(-10, 10, num_values))
|
D | unidirectional_sequence_rnn.mod.py | 16 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/ |
D | pad_v2_all_dims_quant8.mod.py | 17 import numpy as np namespace 32 output0: np.pad([[[[1, 2, 3],
|
D | pad_v2_all_dims.mod.py | 17 import numpy as np namespace 32 output0: np.pad([[[[1.0, 2.0, 3.0],
|
D | pad_all_dims.mod.py | 17 import numpy as np namespace 36 output0: np.pad([[[[1.0, 2.0, 3.0],
|
D | bidirectional_sequence_rnn.mod.py | 16 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)
|
D | quantize.mod.py | 17 import numpy as np namespace 20 values = list(np.linspace(-10, 10, num_values))
|
D | unidirectional_sequence_rnn.mod.py | 16 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/ |
D | Quad.java | 97 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/ |
D | Drawable.java | 1274 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/ |
D | analyze_metrics.py | 38 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/ |
D | test_generator.py | 37 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) 250 return np.array(self.scales).reshape(bshape) 281 return np.array(self.value).reshape(self.type.dimensions) 793 v = Dequantize(op.GetValueAsNumpy().astype(np.float32), op.type) [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 707 byte[] np = outputBitmap.getNinePatchChunk(); in setDensityFromOptions() 708 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
|
D | ImageDecoder.java | 1784 byte[] np = bm.getNinePatchChunk(); in decodeDrawableImpl() 1785 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl() 1793 return new NinePatchDrawable(res, bm, np, padding, in decodeDrawableImpl() 1859 byte[] np = bm.getNinePatchChunk(); in decodeBitmapImpl() 1860 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeBitmapImpl()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberUtils.java | 783 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/ |
D | MemoryDealer.cpp | 461 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/ |
D | velocityplot.py | 27 import numpy as np namespace
|
/frameworks/base/tools/orientationplot/ |
D | orientationplot.py | 23 import numpy as np namespace
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | Camera3Device.cpp | 6757 double np[] = {npEntry.data.d[0], npEntry.data.d[1]}; in fixupMonochromeTags() local 6758 res = resultMetadata.update(ANDROID_SENSOR_NOISE_PROFILE, np, 2); in fixupMonochromeTags()
|