Home
last modified time | relevance | path

Searched refs:convert (Results 1 – 25 of 125) sorted by relevance

12345

/frameworks/ml/nn/runtime/test/android_fuzzing/
DConverter.cpp36 TestOperandType convert(OperandType type) { in convert() function
40 TestOperationType convert(OperationType type) { in convert() function
44 TestOperandLifeTime convert(OperandLifeTime lifetime) { in convert() function
48 std::vector<float> convert(const Scales& scales) { in convert() function
53 TestSymmPerChannelQuantParams convert(const SymmPerChannelQuantParams& params) { in convert() function
54 std::vector<float> scales = convert(params.scales()); in convert()
59 std::vector<uint32_t> convert(const Dimensions& dimensions) { in convert() function
64 TestBuffer convert(size_t size, const Buffer& buffer) { in convert() function
73 TestOperand convert(const Operand& operand) { in convert() function
74 const TestOperandType type = convert(operand.type()); in convert()
[all …]
DGenerateCorpus.cpp36 OperandType convert(TestOperandType type) { in convert() function
40 OperationType convert(TestOperationType type) { in convert() function
44 OperandLifeTime convert(TestOperandLifeTime lifetime) { in convert() function
48 Scales convert(const std::vector<float>& scales) { in convert() function
56 SymmPerChannelQuantParams convert(const TestSymmPerChannelQuantParams& params) { in convert() function
58 *protoParams.mutable_scales() = convert(params.scales); in convert()
79 Buffer convert(bool noValue, const TestBuffer& buffer) { in convert() function
86 Operand convert(const TestOperand& operand) { in convert() function
88 protoOperand.set_type(convert(operand.type)); in convert()
92 protoOperand.set_lifetime(convert(operand.lifetime)); in convert()
[all …]
/frameworks/base/core/java/android/app/usage/
DStorageStatsManager.java19 import static android.os.storage.StorageManager.convert;
69 return mService.isQuotaSupported(convert(storageUuid), mContext.getOpPackageName()); in isQuotaSupported()
78 return isQuotaSupported(convert(uuid)); in isQuotaSupported()
85 return mService.isReservedSupported(convert(storageUuid), mContext.getOpPackageName()); in isReservedSupported()
109 return mService.getTotalBytes(convert(storageUuid), mContext.getOpPackageName()); in getTotalBytes()
121 return getTotalBytes(convert(uuid)); in getTotalBytes()
141 return mService.getFreeBytes(convert(storageUuid), mContext.getOpPackageName()); in getFreeBytes()
153 return getFreeBytes(convert(uuid)); in getFreeBytes()
159 return mService.getCacheBytes(convert(storageUuid), mContext.getOpPackageName()); in getCacheBytes()
171 return getCacheBytes(convert(uuid)); in getCacheBytes()
[all …]
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationManagerTest.java88 String loc1 = Location.convert(-80.075, Location.FORMAT_DEGREES); in testLocationConversions()
92 String loc1b = Location.convert(-80.0, Location.FORMAT_DEGREES); in testLocationConversions()
96 String loc2 = Location.convert(-80.085, Location.FORMAT_DEGREES); in testLocationConversions()
100 String loc3 = Location.convert(-80.085, Location.FORMAT_MINUTES); in testLocationConversions()
104 String loc4 = Location.convert(-80.085, Location.FORMAT_SECONDS); in testLocationConversions()
108 String loc5 = Location.convert(5 + 0.5f / 60.0f, Location.FORMAT_MINUTES); in testLocationConversions()
120 String loc6 = Location.convert(0.1, Location.FORMAT_DEGREES); in testLocationConversions()
124 String loc7 = Location.convert(0.1, Location.FORMAT_MINUTES); in testLocationConversions()
128 String loc8 = Location.convert(0.1, Location.FORMAT_SECONDS); in testLocationConversions()
DLocationTest.java36 result = Location.convert(testDegreesCoord); in testConvert_DegreesToDouble()
47 result = Location.convert(testMinutesCoord); in testConvert_MinutesToDouble()
58 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble()
69 result = Location.convert(testSecondsCoord); in testConvert_SecondsToDouble2()
80 result = Location.convert(-80.075, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees()
88 result = Location.convert(-80.0, Location.FORMAT_DEGREES); in testConvert_CoordinateToDegrees2()
97 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes()
107 result = Location.convert(input, Location.FORMAT_MINUTES); in testConvert_CoordinateToMinutes2()
117 result = Location.convert(-80.075, Location.FORMAT_SECONDS); in testConvert_CoordinateToSeconds()
/frameworks/base/services/core/jni/BroadcastRadio/
DTuner.cpp237 BandConfig bandConfigHal = convert::BandConfigToHal(env, config, region_unused); in nativeSetConfiguration()
239 if (convert::ThrowIfFailed(env, halTuner->setConfiguration(bandConfigHal))) return; in nativeSetConfiguration()
256 if (convert::ThrowIfFailed(env, hidlResult, halResult)) { in nativeGetConfiguration()
260 return convert::BandConfigFromHal(env, halConfig, region).release(); in nativeGetConfiguration()
269 auto dir = convert::DirectionToHal(directionDown); in nativeStep()
270 convert::ThrowIfFailed(env, halTuner->step(dir, skipSubChannel)); in nativeStep()
279 auto dir = convert::DirectionToHal(directionDown); in nativeScan()
280 convert::ThrowIfFailed(env, halTuner->scan(dir, skipSubChannel)); in nativeScan()
292 auto selector = convert::ProgramSelectorToHal(env, jSelector); in nativeTune()
294 convert::ThrowIfFailed(env, halTuner11->tuneByProgramSelector(selector)); in nativeTune()
[all …]
DBroadcastRadioService.cpp184 jModule = convert::ModulePropertiesFromHal(env, properties, idx, serviceName); in nativeLoadModules()
192 jModule = convert::ModulePropertiesFromHal(env, properties, idx, serviceName); in nativeLoadModules()
195 if (convert::ThrowIfFailed(env, hidlResult, halResult)) return nullptr; in nativeLoadModules()
226 bandConfigHal = convert::BandConfigToHal(env, bandConfig, region); in nativeOpenTuner()
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareAgentNetworkSpecifier.java56 mNetworkSpecifiers.add(convert(ns)); in WifiAwareAgentNetworkSpecifier()
62 mNetworkSpecifiers.add(convert(ns)); in WifiAwareAgentNetworkSpecifier()
142 ByteArrayWrapper nsBytes = convert(ns); in satisfiesAwareNetworkSpecifier()
160 private ByteArrayWrapper convert(WifiAwareNetworkSpecifier ns) { in convert() method in WifiAwareAgentNetworkSpecifier
/frameworks/compile/slang/tests/F_vector_cast/
Dstderr.txt.expect1 vector_cast.rscript:8:11: error: cannot convert between vector values of different size ('float2' (…
2 vector_cast.rscript:15:11: error: cannot convert between vector values of different size ('int3' (v…
/frameworks/base/core/java/android/animation/
DBidirectionalTypeConverter.java65 return mConverter.convert(value); in convertBack()
69 public To convert(From value) { in convert() method in BidirectionalTypeConverter.InvertedConverter
DTypeConverter.java55 public abstract V convert(T value); in convert() method in TypeConverter
/frameworks/wilhelm/tools/mphtogen/
Dmphtogen.c25 static void convert(const signed char MPH_to[MPH_MAX], const char *filename) in convert() function
50 #define _(x) convert(MPH_to_##x, "../../src/autogen/MPH_to_" #x ".h");
/frameworks/base/graphics/java/android/graphics/
DColor.java451 public Color convert(@NonNull ColorSpace colorSpace) { in convert() method in Color
1086 public static long convert(@ColorInt int color, @NonNull ColorSpace colorSpace) { in convert() method in Color
1092 return convert(r, g, b, a, source, colorSpace); in convert()
1110 public static long convert(@ColorLong long color, @NonNull ColorSpace colorSpace) { in convert() method in Color
1116 return convert(r, g, b, a, source, colorSpace); in convert()
1143 public static long convert(float r, float g, float b, float a, in convert() method in Color
1167 public static long convert(@ColorLong long color, @NonNull ColorSpace.Connector connector) { in convert() method in Color
1172 return convert(r, g, b, a, connector); in convert()
1199 public static long convert(float r, float g, float b, float a, in convert() method in Color
DPoint.java174 public static @NonNull Point convert(@NonNull Size size) { in convert() method in Point
179 public static @NonNull Size convert(@NonNull Point point) { in convert() method in Point
/frameworks/base/services/core/java/com/android/server/location/
DContextHubServiceTransaction.java103 return unit.convert(30L, TimeUnit.SECONDS); in getTimeout()
110 return unit.convert(5L, TimeUnit.SECONDS); in getTimeout()
/frameworks/native/opengl/tools/glgen/src/
DJFunc.java121 public static JFunc convert(CFunc cfunc, boolean useArray) { in convert() method in JFunc
125 jfunc.setType(JType.convert(cfunc.getType(), false)); in convert()
140 jfunc.addArgument(cArgName, JType.convert(cArgType, useArray), i); in convert()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DObjectCounter.java104 O convert(I key, int count); in convert() method
119 output[i] = converter.convert(entry.getKey(), entry.getValue()); in toProto()
DIntCounter.java120 T convert(int key, int count); in convert() method
135 output[i] = converter.convert(kc.key, kc.count); in toProto()
DIntHistogram.java226 T convert(int start, int end, int count); in convert() method
241 output[i] = converter.convert(bucket.start, bucket.end, bucket.count); in toProto()
/frameworks/base/core/jni/android/graphics/
DShader.cpp47 #error Need to convert float array to SkScalar array before calling the following function. in Color_HSVToColor()
120 #error Need to convert float array to SkScalar array before calling the following function. in LinearGradient_create()
150 #error Need to convert float array to SkScalar array before calling the following function. in RadialGradient_create()
176 #error Need to convert float array to SkScalar array before calling the following function. in SweepGradient_create()
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dconvert_relaxed.rscript1 #include "convert.rscript"
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DMain.java83 convert(bis, zos, targets); in main()
97 private static void convert(InputStream in, OutputStream out, List<LockTarget> targets) in convert() method in Main
/frameworks/base/core/java/android/metrics/
DMetricsReader.java172 mTimeMillis = TimeUnit.MILLISECONDS.convert( in Event()
211 long horizonNs = TimeUnit.NANOSECONDS.convert(horizonMs, TimeUnit.MILLISECONDS); in readEvents()
/frameworks/native/services/sensorservice/hidl/
DAndroid.bp23 "android.hardware.sensors@1.0-convert",
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailItems.java70 public static QSDetailItems convertOrInflate(Context context, View convert, ViewGroup parent) { in convertOrInflate() argument
71 if (convert instanceof QSDetailItems) { in convertOrInflate()
72 return (QSDetailItems) convert; in convertOrInflate()

12345