/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_2/ |
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,
|
D | pad_v2_all_dims_quant8.mod.py | 32 output0: np.pad([[[[1, 2, 3],
|
/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 | 39 import numpy as np namespace 69 v = np.round(v) 70 v = int(v) if np.isscalar(v) else v.astype(int) 72 v = np.minimum(np.maximum(v, 0), 255) 74 v = np.minimum(np.maximum(v, 0), 65535) 76 v = np.minimum(np.maximum(v, -127), 127) 78 v = np.maximum(v, 0) 280 return np.array(self.scales).reshape(bshape) 320 return np.array(self.value).reshape(self.type.dimensions) 778 v = Dequantize(op.GetValueAsNumpy().astype(np.float32), op.type) [all …]
|
D | vts_generator.py | 30 import numpy as np namespace 149 binit += [int(x) for x in np.float16(f).tostring()]
|
/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 | 749 String np = extractNetworkPortionAlt(phoneNumber); in toCallerIDMinMatch() local 750 return internalGetStrippedReversed(np, MIN_MATCH); in toCallerIDMinMatch() 762 String np = extractNetworkPortionAlt(phoneNumber); in getStrippedReversed() local 764 if (np == null) return null; in getStrippedReversed() 766 return internalGetStrippedReversed(np, np.length()); in getStrippedReversed() 774 internalGetStrippedReversed(String np, int numDigits) { in internalGetStrippedReversed() argument 775 if (np == null) return null; in internalGetStrippedReversed() 778 int length = np.length(); in internalGetStrippedReversed() 783 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 | 6745 double np[] = {npEntry.data.d[0], npEntry.data.d[1]}; in fixupMonochromeTags() local 6746 res = resultMetadata.update(ANDROID_SENSOR_NOISE_PROFILE, np, 2); in fixupMonochromeTags()
|