Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/av/media/codec2/core/include/
D_C2MacroUtils.h80 #define _C2_MAP_64(fn, arg, head, ...) fn(head, arg), _C2_MAP_63(fn, arg, ##__VA_ARGS__) argument
81 #define _C2_MAP_63(fn, arg, head, ...) fn(head, arg), _C2_MAP_62(fn, arg, ##__VA_ARGS__) argument
82 #define _C2_MAP_62(fn, arg, head, ...) fn(head, arg), _C2_MAP_61(fn, arg, ##__VA_ARGS__) argument
83 #define _C2_MAP_61(fn, arg, head, ...) fn(head, arg), _C2_MAP_60(fn, arg, ##__VA_ARGS__) argument
84 #define _C2_MAP_60(fn, arg, head, ...) fn(head, arg), _C2_MAP_59(fn, arg, ##__VA_ARGS__) argument
85 #define _C2_MAP_59(fn, arg, head, ...) fn(head, arg), _C2_MAP_58(fn, arg, ##__VA_ARGS__) argument
86 #define _C2_MAP_58(fn, arg, head, ...) fn(head, arg), _C2_MAP_57(fn, arg, ##__VA_ARGS__) argument
87 #define _C2_MAP_57(fn, arg, head, ...) fn(head, arg), _C2_MAP_56(fn, arg, ##__VA_ARGS__) argument
88 #define _C2_MAP_56(fn, arg, head, ...) fn(head, arg), _C2_MAP_55(fn, arg, ##__VA_ARGS__) argument
89 #define _C2_MAP_55(fn, arg, head, ...) fn(head, arg), _C2_MAP_54(fn, arg, ##__VA_ARGS__) argument
[all …]
/frameworks/rs/
DrsDriverLoader.cpp51 static bool LoadHalTable(Context *rsc, HalQueryHal fn, bool loadGraphics) { in LoadHalTable() argument
54 ret &= fn(RS_HAL_CORE_SHUTDOWN, (void **)&rsc->mHal.funcs.shutdownDriver); in LoadHalTable()
55 ret &= fn(RS_HAL_CORE_SET_PRIORITY, (void **)&rsc->mHal.funcs.setPriority); in LoadHalTable()
56 ret &= fn(RS_HAL_CORE_ALLOC_RUNTIME_MEM, (void **)&rsc->mHal.funcs.allocRuntimeMem); in LoadHalTable()
57 ret &= fn(RS_HAL_CORE_FREE_RUNTIME_MEM, (void **)&rsc->mHal.funcs.freeRuntimeMem); in LoadHalTable()
58 ret &= fn(RS_HAL_CORE_FINISH, (void **)&rsc->mHal.funcs.finish); in LoadHalTable()
60 ret &= fn(RS_HAL_SCRIPT_INIT, (void **)&rsc->mHal.funcs.script.init); in LoadHalTable()
61 ret &= fn(RS_HAL_SCRIPT_INIT_INTRINSIC, (void **)&rsc->mHal.funcs.script.initIntrinsic); in LoadHalTable()
62 ret &= fn(RS_HAL_SCRIPT_INVOKE_FUNCTION, (void **)&rsc->mHal.funcs.script.invokeFunction); in LoadHalTable()
63 ret &= fn(RS_HAL_SCRIPT_INVOKE_ROOT, (void **)&rsc->mHal.funcs.script.invokeRoot); in LoadHalTable()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript29 #define TEST_HN_FUNC_HN(fn) \
30 h1 = fn(h1); \
31 h2 = fn(h2); \
32 h3 = fn(h3); \
33 h4 = fn(h4);
35 #define TEST_IN_FUNC_HN(fn) \
36 i1 = fn(h1); \
37 i2 = fn(h2); \
38 i3 = fn(h3); \
39 i4 = fn(h4);
[all …]
/frameworks/base/data/sounds/
DAudioPackage12.mk18 PRODUCT_COPY_FILES += $(foreach fn,$(ALARM_FILES),\
19 $(LOCAL_PATH)/alarms/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/alarms/$(fn).ogg)
21 PRODUCT_COPY_FILES += $(foreach fn,$(NOTIFICATION_FILES),\
22 …$(LOCAL_PATH)/notifications/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/notifications/$(f…
24 PRODUCT_COPY_FILES += $(foreach fn,$(RINGTONE_FILES),\
25 $(LOCAL_PATH)/ringtones/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ringtones/$(fn).ogg)
27 PRODUCT_COPY_FILES += $(foreach fn,$(EFFECT_FILES),\
28 $(LOCAL_PATH)/effects/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
29 PRODUCT_COPY_FILES += $(foreach fn,$(MATERIAL_EFFECT_FILES),\
30 $(LOCAL_PATH)/effects/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
DAudioPackage13.mk19 PRODUCT_COPY_FILES += $(foreach fn,$(ALARM_FILES),\
20 …$(LOCAL_PATH)/alarms/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/alarms/$(fn).og…
22 PRODUCT_COPY_FILES += $(foreach fn,$(NOTIFICATION_FILES),\
23 …$(LOCAL_PATH)/notifications/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/notifica…
25 PRODUCT_COPY_FILES += $(foreach fn,$(RINGTONE_FILES),\
26 …$(LOCAL_PATH)/ringtones/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ringtones/$(
28 PRODUCT_COPY_FILES += $(foreach fn,$(EFFECT_FILES),\
29 $(LOCAL_PATH)/effects/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
30 PRODUCT_COPY_FILES += $(foreach fn,$(MATERIAL_EFFECT_FILES),\
31 $(LOCAL_PATH)/effects/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
DAudioPackage14.mk20 PRODUCT_COPY_FILES += $(foreach fn,$(ALARM_FILES),\
21 …$(LOCAL_PATH)/alarms/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/alarms/$(fn).og…
23 PRODUCT_COPY_FILES += $(foreach fn,$(NOTIFICATION_FILES),\
24 …$(LOCAL_PATH)/notifications/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/notifica…
26 PRODUCT_COPY_FILES += $(foreach fn,$(RINGTONE_FILES),\
27 …$(LOCAL_PATH)/ringtones/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ringtones/$(
29 PRODUCT_COPY_FILES += $(foreach fn,$(EFFECT_FILES),\
30 $(LOCAL_PATH)/effects/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
31 PRODUCT_COPY_FILES += $(foreach fn,$(MATERIAL_EFFECT_FILES),\
32 $(LOCAL_PATH)/effects/material/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
DAudioPackage12_48.mk19 PRODUCT_COPY_FILES += $(foreach fn,$(ALARM_FILES),\
20 $(LOCAL_PATH)/alarms/ogg/$(fn).ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/alarms/$(fn).ogg)
22 PRODUCT_COPY_FILES += $(foreach fn,$(NOTIFICATION_FILES),\
23 …$(LOCAL_PATH)/notifications/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/notifications…
25 PRODUCT_COPY_FILES += $(foreach fn,$(RINGTONE_FILES),\
26 …$(LOCAL_PATH)/ringtones/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ringtones/$(fn).o…
28 PRODUCT_COPY_FILES += $(foreach fn,$(EFFECT_FILES),\
29 $(LOCAL_PATH)/effects/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
30 PRODUCT_COPY_FILES += $(foreach fn,$(MATERIAL_EFFECT_FILES),\
31 …$(LOCAL_PATH)/effects/material/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).o…
DAudioPackage13_48.mk19 PRODUCT_COPY_FILES += $(foreach fn,$(ALARM_FILES),\
20 …$(LOCAL_PATH)/alarms/material/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/alarms/$(fn
22 PRODUCT_COPY_FILES += $(foreach fn,$(NOTIFICATION_FILES),\
23 …(LOCAL_PATH)/notifications/material/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/notif…
25 PRODUCT_COPY_FILES += $(foreach fn,$(RINGTONE_FILES),\
26 …$(LOCAL_PATH)/ringtones/material/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ringtone…
28 PRODUCT_COPY_FILES += $(foreach fn,$(EFFECT_FILES),\
29 $(LOCAL_PATH)/effects/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).ogg)
30 PRODUCT_COPY_FILES += $(foreach fn,$(MATERIAL_EFFECT_FILES),\
31 …$(LOCAL_PATH)/effects/material/ogg/$(fn)_48k.ogg:$(TARGET_COPY_OUT_PRODUCT)/media/audio/ui/$(fn).o…
/frameworks/minikin/app/
DHyphTool.cpp13 Hyphenator* loadHybFile(const char* fn, int minPrefix, int minSuffix, const char* language) { in loadHybFile() argument
15 int status = stat(fn, &statbuf); in loadHybFile()
17 fprintf(stderr, "error opening %s\n", fn); in loadHybFile()
21 FILE* f = fopen(fn, "rb"); in loadHybFile()
23 fprintf(stderr, "error opening %s\n", fn); in loadHybFile()
30 fprintf(stderr, "error reading %s\n", fn); in loadHybFile()
/frameworks/base/libs/hwui/utils/
DColor.cpp150 skcms_TransferFunction fn; in ColorSpaceToADataSpace() local
151 if (!colorSpace->isNumericalTransferFn(&fn)) { in ColorSpaceToADataSpace()
169 if (nearlyEqual(fn, SkNamedTransferFn::kLinear)) { in ColorSpaceToADataSpace()
179 if (nearlyEqual(fn, SkNamedTransferFn::kRec2020)) { in ColorSpaceToADataSpace()
184 if (nearlyEqual(fn, SkNamedTransferFn::kSRGB) && nearlyEqual(gamut, SkNamedGamut::kDisplayP3)) { in ColorSpaceToADataSpace()
188 if (nearlyEqual(fn, SkNamedTransferFn::k2Dot2) && nearlyEqual(gamut, SkNamedGamut::kAdobeRGB)) { in ColorSpaceToADataSpace()
192 if (nearlyEqual(fn, SkNamedTransferFn::kRec2020) && in ColorSpaceToADataSpace()
197 if (nearlyEqual(fn, k2Dot6) && nearlyEqual(gamut, kDCIP3)) { in ColorSpaceToADataSpace()
371 skcms_TransferFunction fn = SkNamedTransferFn::kPQ; in GetPQSkTransferFunction() local
372 const double ws = pow(w, 1. / fn.f); in GetPQSkTransferFunction()
[all …]
/frameworks/base/cmds/screencap/
Dscreencap.cpp151 const char* fn = NULL; in main() local
155 fn = argv[0]; in main()
156 fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664); in main()
158 fprintf(stderr, "Error opening file: %s (%s)\n", fn, strerror(errno)); in main()
161 const int len = strlen(fn); in main()
162 if (len >= 4 && 0 == strcmp(fn+len-4, ".png")) { in main()
233 if (fn != NULL) { in main()
234 notifyMediaScanner(fn); in main()
/frameworks/rs/driver/runtime/
Drs_cl.c1580 #define THUNK_NATIVE_F(fn) \ argument
1581 float __attribute__((overloadable)) native_##fn(float v) { return fn(v);} \
1582 float2 __attribute__((overloadable)) native_##fn(float2 v) { return fn(v);} \
1583 float3 __attribute__((overloadable)) native_##fn(float3 v) { return fn(v);} \
1584 float4 __attribute__((overloadable)) native_##fn(float4 v) { return fn(v);}
1586 #define THUNK_NATIVE_F_F(fn) \ argument
1587 float __attribute__((overloadable)) native_##fn(float v1, float v2) { return fn(v1, v2);} \
1588 float2 __attribute__((overloadable)) native_##fn(float2 v1, float2 v2) { return fn(v1, v2);} \
1589 float3 __attribute__((overloadable)) native_##fn(float3 v1, float3 v2) { return fn(v1, v2);} \
1590 float4 __attribute__((overloadable)) native_##fn(float4 v1, float4 v2) { return fn(v1, v2);}
[all …]
/frameworks/base/services/core/java/com/android/server/utils/
DWatchable.java78 final String fn = base.getClass().getName() + "." + f.getName(); in verifyWatchedAttributes() local
85 handleVerifyError("Watchable " + fn + " missing an observer", logOnly); in verifyWatchedAttributes()
88 handleVerifyError("@Watched annotated field " + fn + " is not a watchable" in verifyWatchedAttributes()
94 handleVerifyError("Watchable " + fn + " not visible", logOnly); in verifyWatchedAttributes()
/frameworks/libs/native_bridge_support/libc/
D__cxa_thread_atexit_impl.cpp28 thread_atexit_fn_t fn; member
35 WrappedArg::thread_atexit_fn_t origin_fn = wrapped_arg->fn; in WrappedFn()
50 wrapped_arg->fn = func; in __cxa_thread_atexit_impl()
/frameworks/native/services/powermanager/benchmarks/
DPowerHalControllerBenchmarks.cpp44 static void runBenchmark(benchmark::State& state, HalResult<T> (PowerHalController::*fn)(Args0...), in runBenchmark()
48 HalResult<T> ret = (controller.*fn)(std::forward<Args1>(args1)...); in runBenchmark()
57 HalResult<T> (PowerHalController::*fn)(Args0...), Args1&&... args1) { in runCachedBenchmark()
60 (controller.*fn)(std::forward<Args1>(args1)...); in runCachedBenchmark()
63 HalResult<T> ret = (controller.*fn)(std::forward<Args1>(args1)...); in runCachedBenchmark()
DPowerHalAidlBenchmarks.cpp64 static void runBenchmark(benchmark::State& state, microseconds delay, R (IPower::*fn)(Args0...), in runBenchmark()
73 binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...); in runBenchmark()
80 ret = (*hal.*fn)(std::forward<Args1>(args1)...); in runBenchmark()
91 static void runSessionBenchmark(benchmark::State& state, R (IPowerHintSession::*fn)(Args0...), in runSessionBenchmark()
112 binder::Status ret = (*hal.*fn)(std::forward<Args1>(args1)...); in runSessionBenchmark()
119 ret = (*hal.*fn)(std::forward<Args1>(args1)...); in runSessionBenchmark()
/frameworks/base/core/java/com/android/internal/infra/
DAndroidFuture.java315 @NonNull Function<? super T, ? extends CompletionStage<U>> fn) { in thenCompose() argument
316 return thenComposeAsync(fn, DIRECT_EXECUTOR); in thenCompose()
321 @NonNull Function<? super T, ? extends CompletionStage<U>> fn, in thenComposeAsync() argument
323 return new ThenComposeAsync<>(this, fn, executor); in thenComposeAsync()
333 @NonNull Function<? super T, ? extends CompletionStage<U>> fn, in ThenComposeAsync() argument
335 mFn = Preconditions.checkNotNull(fn); in ThenComposeAsync()
376 public <U> AndroidFuture<U> thenApply(@NonNull Function<? super T, ? extends U> fn) { in thenApply() argument
377 return thenApplyAsync(fn, DIRECT_EXECUTOR); in thenApply()
381 public <U> AndroidFuture<U> thenApplyAsync(@NonNull Function<? super T, ? extends U> fn, in thenApplyAsync() argument
383 return new ThenApplyAsync<>(this, fn, executor); in thenApplyAsync()
[all …]
/frameworks/libs/net/common/testutils/hostdevice/com/android/testutils/
DConcurrentUtils.kt26 fun durationOf(fn: Runnable) = measureTimeMillis { fn.run() } in <lambda>()
DMiscAsserts.kt90 fun assertRunsInAtMost(descr: String, timeLimit: Long, fn: Runnable) { in assertRunsInAtMost()
91 assertRunsInAtMost(descr, timeLimit) { fn.run() } in assertRunsInAtMost()
94 fun assertRunsInAtMost(descr: String, timeLimit: Long, fn: () -> Unit) { in assertRunsInAtMost()
95 val timeTaken = measureTimeMillis(fn) in assertRunsInAtMost()
/frameworks/base/native/graphics/jni/
Dbitmap.cpp103 AndroidBitmap_CompressWriteFunc fn) { in AndroidBitmap_compress() argument
104 if (NULL == info || NULL == pixels || NULL == fn) { in AndroidBitmap_compress()
112 (AndroidBitmapCompressFormat) format, quality, userContext, fn); in AndroidBitmap_compress()
/frameworks/native/cmds/idlcli/
Dvibrator.h91 R call(R (I::*fn)(Args0...), Args1&&... args1) { in call()
92 return (*mHal.*fn)(std::forward<Args1>(args1)...); in call()
109 R halCall(R (I::*fn)(Args0...), Args1&&... args1) { in halCall()
111 return hal ? hal->call(fn, std::forward<Args1>(args1)...) : NullptrStatus<R>(); in halCall()
/frameworks/base/data/keyboards/
DVendor_046d_Product_c532.kl22 # - FORWARD_DEL is produced by fn + BACKSPACE
23 # - PAGE_UP / PAGE_DOWN is produced by fn + CHANNEL_UP / CHANNEL_DOWN
25 # as well as several of the other fn buttons and the PIP button?
125 # key 289 right mouse button (fn + button)
/frameworks/compile/libbcc/include/bcc/
DScript.h82 void setLinkRuntimeCallback(RSLinkRuntimeCallback fn) { in setLinkRuntimeCallback() argument
83 mLinkRuntimeCallback = fn; in setLinkRuntimeCallback()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderThreadPriorityTest.java97 String fn = "/proc/" + Process.myPid() + "/task/" + Process.myTid() + "/cgroup"; in getSchedulerGroup() local
99 String cgroup = FileUtils.readTextFile(new File(fn), 1024, null); in getSchedulerGroup()
105 Log.e(TAG, "Can't read: " + fn, e); in getSchedulerGroup()
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp395 ForEachFunc_t fn = mtls->kernel; in walk_general_foreach() local
413 fn(&fep, mtls->start.x, mtls->end.x, mtls->fep.outStride[0]); in walk_general_foreach()
422 ForEachFunc_t fn = mtls->kernel; in walk_2d_foreach() local
438 fn(&fep, mtls->start.x, mtls->end.x, fep.outStride[0]); in walk_2d_foreach()
447 ForEachFunc_t fn = mtls->kernel; in walk_1d_foreach() local
462 fn(&fep, xStart, xEnd, fep.outStride[0]); in walk_1d_foreach()
544 const ReduceAccumulatorFunc_t fn = mtls->accumFunc; in walk_1d_reduce() local
557 fn(&redp, xStart, xEnd, accumPtr); in walk_1d_reduce()
583 const ReduceAccumulatorFunc_t fn = mtls->accumFunc; in walk_2d_reduce() local
597 fn(&redp, mtls->start.x, mtls->end.x, accumPtr); in walk_2d_reduce()
[all …]

123