Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 58) sorted by relevance

123

/packages/modules/Nfc/libnfc-nci/src/adaptation/
DNfcAdaptation.cc573 const char* func = "NfcAdaptation::Initialize"; in Initialize() local
585 LOG(VERBOSE) << StringPrintf("%s: enter", func); in Initialize()
604 "%s: Overriding NFA_EE_MAX_EE_SUPPORTED to use %d", func, in Initialize()
612 "%s: Overriding NFA_POLL_BAIL_OUT_MODE to use %d", func, in Initialize()
687 LOG(VERBOSE) << StringPrintf("%s: exit", func); in Initialize()
700 const char* func = "NfcAdaptation::Finalize"; in Finalize() local
703 LOG(VERBOSE) << StringPrintf("%s: enter", func); in Finalize()
721 LOG(VERBOSE) << StringPrintf("%s: exit", func); in Finalize()
794 const char* func = "NfcAdaptation::NFCA_TASK"; in NFCA_TASK() local
795 LOG(VERBOSE) << StringPrintf("%s: enter", func); in NFCA_TASK()
[all …]
/packages/modules/NeuralNetworks/common/cpu_operations/
DElementwise.cpp36 inline bool compute(const std::function<IntermediateType(IntermediateType)>& func, const T* input, in compute() argument
40 output[i] = static_cast<T>(func(static_cast<IntermediateType>(input[i]))); in compute()
46 inline bool compute(IntermediateType func(IntermediateType), const T* input, const Shape& shape, in compute()
48 return compute(std::function<IntermediateType(IntermediateType)>(func), input, shape, output); in compute()
52 auto makeQuantized(const std::function<IntermediateType(IntermediateType)>& func, float inScale, in makeQuantized() argument
54 return [func, inScale, inZeroPoint, outScale, outZeroPoint](T val) -> T { in makeQuantized()
61 IntermediateType res = func(dequantizedVal); in makeQuantized()
73 bool execute(IOperationExecutionContext* context, float func(float)) { in execute()
76 return compute<float, _Float16>(func, context->getInputBuffer<_Float16>(kInputTensor), in execute()
80 return compute<float, float>(func, context->getInputBuffer<float>(kInputTensor), in execute()
DLogicalAndOr.cpp33 bool compute(const std::function<bool(bool, bool)>& func, const bool8* aData, const Shape& aShape, in compute() argument
48 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DComparisons.cpp34 bool compute(const std::function<bool(ComparisonType, ComparisonType)>& func, const DataType* aData, in compute() argument
54 outputData[outputFlatIndex] = func(realA, realB); in compute()
56 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in compute()
DPRelu.cpp45 inline bool eval(const std::function<T(const T&, const T&)>& func, const T* aData, in eval() argument
61 outputData[outputFlatIndex] = func(aData[aFlatIndex], bData[bFlatIndex]); in eval()
/packages/modules/adb/fdevent/
Dfdevent.cpp39 if (auto f = std::get_if<fd_func>(&fde->func)) { in invoke_fde()
41 } else if (auto f = std::get_if<fd_func2>(&fde->func)) { in invoke_fde()
63 fdevent* fdevent_context::Create(unique_fd fd, std::variant<fd_func, fd_func2> func, void* arg) { in Create() argument
77 fde->func = func; in Create()
220 fdevent* fdevent_create(int fd, fd_func func, void* arg) { in fdevent_create() argument
222 return fdevent_get_ambient()->Create(std::move(ufd), func, arg); in fdevent_create()
225 fdevent* fdevent_create(int fd, fd_func2 func, void* arg) { in fdevent_create() argument
227 return fdevent_get_ambient()->Create(std::move(ufd), func, arg); in fdevent_create()
Dfdevent.h66 std::variant<fd_func, fd_func2> func; member
75 fdevent* Create(unique_fd fd, std::variant<fd_func, fd_func2> func, void* arg);
141 fdevent* fdevent_create(int fd, fd_func func, void* arg);
142 fdevent* fdevent_create(int fd, fd_func2 func, void* arg);
/packages/modules/Bluetooth/system/osi/src/
Dthread.cc59 thread_fn func; member
138 bool thread_post(thread_t* thread, thread_fn func, void* context) { in thread_post() argument
140 log::assert_that(func != NULL, "assert failed: func != NULL"); in thread_post()
149 item->func = func; in thread_post()
243 item->func(item->context); in run_thread()
262 item->func(item->context); in work_queue_read_cb()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DExifUtilsTest.java72 private void assertParseDateTime(ExifInterface exif, ToLongFunction<ExifInterface> func) { in assertParseDateTime() argument
79 if (parseDateTime(exif, func)) count.decrementAndGet(); in assertParseDateTime()
92 private boolean parseDateTime(ExifInterface exif, ToLongFunction<ExifInterface> func) { in parseDateTime() argument
93 final long expected = func.applyAsLong(exif); in parseDateTime()
96 final long actual = func.applyAsLong(exif); in parseDateTime()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DFakeOsAccess.java109 private File getFile(String func, FileDescriptor fd) throws IOException { in getFile() argument
112 throw newIOException(func, "Unknown file descriptor: " + getFileDebugName(fd)); in getFile()
454 private int getNextFd(String func) throws IOException { in getNextFd() argument
456 throw newIOException(func, "Too many files open"); in getNextFd()
462 private static IOException newIOException(String func, String message) { in newIOException() argument
463 return new IOException(message + ", func=" + func); in newIOException()
466 public static void checkBoundaries(String func, byte[] buffer, int pos, int len) in checkBoundaries() argument
469 throw newIOException(func, "Invalid array bounds"); in checkBoundaries()
535 void checkNonBlocking(String func) throws IOException { in checkNonBlocking() argument
537 throw newIOException(func, "File in blocking mode"); in checkNonBlocking()
/packages/modules/common/tools/
Dconv_classpaths_proto.py65 parser_encode.set_defaults(func=encode)
70 parser_decode.set_defaults(func=decode)
73 args.func(args)
/packages/modules/Bluetooth/system/common/
Dbase_bind_unittest.cc41 void func() {} in func() function
56 base::Callback<void()> cb0 = base::Bind(&func); in TEST_F()
88 base::Callback<void()> cb0 = base::Bind(&func); in TEST_F()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DMathEval.java163 String func = translationString.substring(startPos, this.mPos); in eval() local
165 switch (func) { in eval()
179 throw new RuntimeException("Unknown function: " + func); in eval()
/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_thread.h120 std::function<bool(thread_t* thread, thread_fn func, void* context)> body{
124 bool operator()(thread_t* thread, thread_fn func, void* context) { in operator()
125 return body(thread, func, context); in operator()
Dmock_osi_thread.cc80 bool thread_post(thread_t* thread, thread_fn func, void* context) { in thread_post() argument
82 return test::mock::osi_thread::thread_post(thread, func, context); in thread_post()
/packages/modules/adb/
Dservices.cpp46 void service_bootstrap_func(std::string service_name, std::function<void(unique_fd)> func, in service_bootstrap_func() argument
49 func(std::move(fd)); in service_bootstrap_func()
54 unique_fd create_service_thread(const char* service_name, std::function<void(unique_fd)> func) { in create_service_thread() argument
71 std::thread(service_bootstrap_func, service_name, func, unique_fd(s[1])).detach(); in create_service_thread()
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DFunctionalUtils.java59 public static <T> Supplier<T> ignoreExceptions(ThrowingSupplier<T> func) { in ignoreExceptions() argument
62 return func.get(); in ignoreExceptions()
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/aware/integration/
Dwifi_rtt_disable_test.py78 def decorator(func): argument
80 @functools.wraps(func)
86 return func(*args, **kwargs)
90 func.__name__, sec
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/audio/
DAudioStreamGraph.h54 static T1* findGraph(std::list<T1*> list, T2 func) in findGraph() argument
56 typename std::list<T1*>::iterator iter = std::find_if(list.begin(), list.end(), func); in findGraph()
/packages/modules/Bluetooth/system/main/shim/
Ddumpsys.cc36 void bluetooth::shim::RegisterDumpsysFunction(const void* token, DumpsysFunction func) { in RegisterDumpsysFunction() argument
39 dumpsys_functions_.insert({token, func}); in RegisterDumpsysFunction()
/packages/modules/Bluetooth/system/test/headless/
Dheadless.h67 T RunOnHeadlessStack(ExecutionUnit<T> func) { in RunOnHeadlessStack() argument
75 rc = func(); in RunOnHeadlessStack()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DNetlinkUtils.java341 Consumer<T> func) in getAndProcessNetlinkDumpMessagesWithFd() argument
376 func.accept(msg); in getAndProcessNetlinkDumpMessagesWithFd()
395 Consumer<T> func) in getAndProcessNetlinkDumpMessages() argument
401 msgClass, func); in getAndProcessNetlinkDumpMessages()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/activity/blurredbackground/
DGLHelper.java171 public static boolean checkGlErrors(String func) { in checkGlErrors() argument
177 Slog.e(TAG, func + " failed: error " + error, new Throwable()); in checkGlErrors()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertReminderTest.java64 PhoneStateListenerHandler(String name, Runnable func) { in PhoneStateListenerHandler() argument
66 mFunction = func; in PhoneStateListenerHandler()
/packages/modules/AdServices/shared/testing-libraries/device-side/java/com/android/adservices/shared/testing/
DAbstractLogVerifier.java175 BiFunction<MutableLogCall, MutableLogCall, Boolean> func) { in removeAll() argument
185 if (func.apply(c1, c2)) { in removeAll()

123