/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_getbits.cpp | 129 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getNbits() 130 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getNbits() 131 Elem2 = *(ptBitStream->pBuffer + module(offset + 2, BUFSIZE)); in getNbits() 132 Elem3 = *(ptBitStream->pBuffer + module(offset + 3, BUFSIZE)); in getNbits() 141 bitIndex = module(ptBitStream->usedBits, INBUF_BIT_WIDTH); in getNbits() 170 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getUpTo9bits() 171 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getUpTo9bits() 178 bitIndex = module(ptBitStream->usedBits, INBUF_BIT_WIDTH); in getUpTo9bits() 207 Elem = *(ptBitStream->pBuffer + module(offset , BUFSIZE)); in getUpTo17bits() 208 Elem1 = *(ptBitStream->pBuffer + module(offset + 1, BUFSIZE)); in getUpTo17bits() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_lights_LightsService.cpp | 51 static light_device_t* get_device(hw_module_t* module, char const* name) in get_device() argument 55 err = module->methods->open(module, name, &device); in get_device() 66 hw_module_t* module; in init_native() local 71 err = hw_get_module(LIGHTS_HARDWARE_MODULE_ID, (hw_module_t const**)&module); in init_native() 74 = get_device(module, LIGHT_ID_BACKLIGHT); in init_native() 76 = get_device(module, LIGHT_ID_KEYBOARD); in init_native() 78 = get_device(module, LIGHT_ID_BUTTONS); in init_native() 80 = get_device(module, LIGHT_ID_BATTERY); in init_native() 82 = get_device(module, LIGHT_ID_NOTIFICATIONS); in init_native() 84 = get_device(module, LIGHT_ID_ATTENTION); in init_native() [all …]
|
D | com_android_server_ConsumerIrService.cpp | 33 hw_module_t const* module; in halOpen() local 37 err = hw_get_module(CONSUMERIR_HARDWARE_MODULE_ID, &module); in halOpen() 43 err = module->methods->open(module, CONSUMERIR_TRANSMITTER, in halOpen()
|
/frameworks/base/core/jni/ |
D | android_hardware_Radio.cpp | 147 static sp<Radio> setRadio(JNIEnv* env, jobject thiz, const sp<Radio>& module) in setRadio() argument 151 if (module.get()) { in setRadio() 152 module->incStrong((void*)setRadio); in setRadio() 157 env->SetLongField(thiz, gModuleFields.mNativeContext, (jlong)module.get()); in setRadio() 580 sp<Radio> module = Radio::attach(handle, configPtr, (bool)withAudio, callback); in android_hardware_Radio_setup() local 581 if (module == 0) { in android_hardware_Radio_setup() 585 setRadio(env, thiz, module); in android_hardware_Radio_setup() 592 sp<Radio> module = setRadio(env, thiz, 0); in android_hardware_Radio_close() local 593 ALOGV("detach module %p", module.get()); in android_hardware_Radio_close() 594 if (module != 0) { in android_hardware_Radio_close() [all …]
|
D | android_hardware_SoundTrigger.cpp | 368 static sp<SoundTrigger> setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module) in setSoundTrigger() argument 373 if (module.get()) { in setSoundTrigger() 374 module->incStrong((void*)setSoundTrigger); in setSoundTrigger() 379 env->SetLongField(thiz, gModuleFields.mNativeContext, (jlong)module.get()); in setSoundTrigger() 470 sp<SoundTrigger> module = SoundTrigger::attach(handle, callback); in android_hardware_SoundTrigger_setup() local 471 if (module == 0) { in android_hardware_SoundTrigger_setup() 475 setSoundTrigger(env, thiz, module); in android_hardware_SoundTrigger_setup() 482 sp<SoundTrigger> module = setSoundTrigger(env, thiz, 0); in android_hardware_SoundTrigger_detach() local 483 ALOGV("detach module %p", module.get()); in android_hardware_SoundTrigger_detach() 484 if (module != 0) { in android_hardware_SoundTrigger_detach() [all …]
|
/frameworks/compile/libbcc/lib/Core/ |
D | Source.cpp | 82 llvm::Module *module = managedModule.release(); in CreateFromBuffer() local 83 if (module == nullptr) { in CreateFromBuffer() 87 Source *result = CreateFromModule(pContext, pName, *module, /* pNoDelete */false); in CreateFromBuffer() 89 delete module; in CreateFromBuffer() 112 llvm::Module *module = managedModule.release(); in CreateFromFile() local 113 if (module == nullptr) { in CreateFromFile() 117 Source *result = CreateFromModule(pContext, pPath.c_str(), *module, /* pNoDelete */false); in CreateFromFile() 119 delete module; in CreateFromFile() 173 llvm::Module *module = in CreateEmpty() local 176 if (module == nullptr) { in CreateEmpty() [all …]
|
D | Compiler.cpp | 236 llvm::Module &module = pScript.getSource().getModule(); in compile() local 243 const std::string &triple = module.getTargetTriple(); in compile() 268 module.setTargetTriple(getTargetMachine().getTargetTriple().str()); in compile() 269 module.setDataLayout(getTargetMachine().createDataLayout()); in compile() 272 if (module.getMaterializer() != nullptr) { in compile() 276 std::error_code ec = module.materializeAll(); in compile() 279 module.getModuleIdentifier().c_str(), ec.message().c_str()); in compile() 289 *IRStream << module; in compile() 322 llvm::Module &module = script.getSource().getModule(); in addInternalizeSymbolsPass() local 323 bcinfo::MetadataExtractor me(&module); in addInternalizeSymbolsPass() [all …]
|
/frameworks/av/services/soundtrigger/ |
D | SoundTriggerHwService.cpp | 91 sp<Module> module = new Module(this, dev, descriptor, client); in onFirstRef() local 92 mModules.add(descriptor.handle, module); in onFirstRef() 144 sp<Module> module = mModules.valueAt(index); in attach() local 146 module->setClient(client); in attach() 147 IInterface::asBinder(client)->linkToDeath(module); in attach() 148 moduleInterface = module; in attach() 150 module->setCaptureState_l(mCaptureState); in attach() 167 void SoundTriggerHwService::detachModule(sp<Module> module) in detachModule() argument 171 module->clearClient(); in detachModule() 219 Module *module = (Module *)cookie; in recognitionCallback() local [all …]
|
D | SoundTriggerHwService.h | 54 sp<ISoundTrigger>& module); 91 CallbackEvent(event_type type, sp<IMemory> memory, wp<Module> module); 179 void detachModule(sp<Module> module); 183 void sendRecognitionEvent(struct sound_trigger_recognition_event *event, Module *module); 187 void sendSoundModelEvent(struct sound_trigger_model_event *event, Module *module); 190 void sendServiceStateEvent_l(sound_trigger_service_state_t state, Module *module);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioPolicyConfig.h | 110 sp<HwModule> module; in setDefault() local 115 module = new HwModule("primary"); in setDefault() 119 outProfile->attach(module); in setDefault() 124 module->mOutputProfiles.add(outProfile); in setDefault() 128 inProfile->attach(module); in setDefault() 132 module->mInputProfiles.add(inProfile); in setDefault() 134 mHwModules.add(module); in setDefault()
|
D | ConfigParsingUtils.h | 47 static status_t loadHwModuleProfile(cnode *root, sp<HwModule> &module, audio_port_role_t role); 54 static void loadModuleGlobalConfig(cnode *root, const sp<HwModule> &module, 56 static status_t loadHwModule(cnode *root, sp<HwModule> &module, AudioPolicyConfig &config);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | ConfigParsingUtils.cpp | 150 status_t ConfigParsingUtils::loadHwModuleProfile(cnode *root, sp<HwModule> &module, in loadHwModuleProfile() argument 178 loadDevicesFromTag(node->value, devices, module->getDeclaredDevices()); in loadHwModuleProfile() 215 return module->addProfile(profile); in loadHwModuleProfile() 221 status_t ConfigParsingUtils::loadHwModule(cnode *root, sp<HwModule> &module, in loadHwModule() argument 237 module->setDeclaredDevices(devices); in loadHwModule() 244 status_t tmpStatus = loadHwModuleProfile(node, module, AUDIO_PORT_ROLE_SOURCE); in loadHwModule() 256 status_t tmpStatus = loadHwModuleProfile(node, module, AUDIO_PORT_ROLE_SINK); in loadHwModule() 263 loadModuleGlobalConfig(root, module, config); in loadHwModule() 279 sp<HwModule> module = new HwModule(node->name); in loadHwModules() local 280 if (loadHwModule(node, module, config) == NO_ERROR) { in loadHwModules() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LinkerTest.cpp | 50 Module module("test", script); in TEST_F() local 56 IRBuilder builder(module, config); in TEST_F() 60 if (linker.link(module, builder)) in TEST_F() 61 linker.emit(module, "./test.so"); in TEST_F() 95 Module module("libplasma.so", script); in TEST_F() local 96 IRBuilder builder(module, config); in TEST_F() 119 if (linker.link(module, builder)) { in TEST_F() 120 linker.emit(module, "libplasma.so"); ///< -o libplasma.so in TEST_F() 350 Module module(script); in TEST_F() local 351 IRBuilder builder(module, config); in TEST_F() [all …]
|
D | ELFBinaryReaderTest.cpp | 43 Module module("test", script); in TEST_F() local 45 IRBuilder builder(module, config); in TEST_F()
|
/frameworks/av/soundtrigger/ |
D | ISoundTriggerHwService.cpp | 82 sp<ISoundTrigger>& module) in attach() argument 94 module = interface_cast<ISoundTrigger>(reply.readStrongBinder()); in attach() 158 sp<ISoundTrigger> module; in onTransact() local 159 status_t status = attach(handle, client, module); in onTransact() 161 if (module != 0) { in onTransact() 163 reply->writeStrongBinder(IInterface::asBinder(module)); in onTransact()
|
D | SoundTrigger.cpp | 94 sp<SoundTrigger> SoundTrigger::attach(const sound_trigger_module_handle_t module, in attach() argument 103 soundTrigger = new SoundTrigger(module, callback); in attach() 104 status_t status = service->attach(module, soundTrigger, soundTrigger->mISoundTrigger); in attach() 127 SoundTrigger::SoundTrigger(sound_trigger_module_handle_t module, in SoundTrigger() argument 129 : mModule(module), mCallback(callback) in SoundTrigger()
|
/frameworks/support/buildSrc/ |
D | studioCompat.gradle | 83 * Adds a link to the previous ApiModule for each module. This information is later used when 98 * For each APIModule in the given projectConfig, creates a gradle module. These modules use the 103 projectConfig.apiTargets.each { ApiModule module -> 104 logger.info "creating ${module.moduleName}" 105 module.setParentModuleDependencies(projectConfig.dependencies) 106 include "${module.moduleName}" 107 def folder = new File(rootDir, "${projectConfig.folder}/${module.folderName}") 108 project("${module.moduleName}").projectDir = folder 109 … project("${module.moduleName}").buildFileName = Paths.get(folder.toURI()).relativize(buildFile) 110 gradle.ext.folderToApiModuleMapping[folder.canonicalPath] = module
|
/frameworks/av/services/radio/ |
D | RadioService.cpp | 91 sp<Module> module = new Module(dev, properties); in onFirstRef() local 92 mModules.add(properties.handle, module); in onFirstRef() 136 sp<Module> module = mModules.valueAt(index); in attach() local 139 config = module->getDefaultConfig(); in attach() 146 radio = module->addClient(client, config, withAudio); in attach() 645 RadioService::ModuleClient::ModuleClient(const sp<Module>& module, in ModuleClient() argument 649 : mModule(module), mClient(client), mConfig(*config), mAudio(audio), mTuner(NULL) in ModuleClient() 685 sp<Module> module = mModule.promote(); in detach() local 686 if (module == 0) { in detach() 689 module->removeClient(this); in detach() [all …]
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyClientImplLegacy.cpp | 65 static audio_io_handle_t open_output(audio_module_handle_t module, in open_output() argument 92 status_t status = af->openOutput(module, &output, &config, pDevices, in open_output() 119 audio_module_handle_t module, in aps_open_output_on_module() argument 128 return open_output(module, pDevices, pSamplingRate, pFormat, pChannelMask, in aps_open_output_on_module() 176 static audio_io_handle_t open_input(audio_module_handle_t module, in open_input() argument 204 status_t status = af->openInput(module, &input, &config, pDevices, in open_input() 227 audio_module_handle_t module, in aps_open_input_on_module() argument 233 return open_input(module, pDevices, pSamplingRate, pFormat, pChannelMask); in aps_open_input_on_module()
|
/frameworks/base/docs/html/ndk/guides/ |
D | prebuilts.jd | 29 <p>You must declare each prebuilt library you use as a <em>single</em> independent module. To do 33 <li>Give the module a name. This name does not need to be the same as that of the prebuilt 35 <li>In the module's <a href="{@docRoot}ndk/guides/android_mk.html">{@code Android.mk}</a> 58 <p>In this example, the name of the module is the same as that of the prebuilt library.</p> 70 <p>For example, the description of a module using {@code libfoo.so} might be as follows:</p> 80 <p>Here, {@code LOCAL_MODULE} is the name of the module referring to the prebuilt; {@code 93 build the {@code foo-user} module. A simple way to accomplish this task is to use exports in the 94 prebuilt module definition. For example, as long as header {@code foo.h} is located under the 95 {@code include} directory associated with the prebuilt module, you can declare it as follows:</p> 107 value of the {@code LOCAL_C_INCLUDES} for the module dependent on it.</p>
|
D | android_mk.jd | 31 <em>modules</em>. A module is either a static library, a shared library, or a standalone 75 module.</p> 77 <p>Next, the {@code LOCAL_MODULE} variable stores the name of the module that you wish to build. 78 Use this variable once per module in your application.</p> 84 <p>Each module name must be unique and not contain any spaces. The build system, when it 89 <p class="note"><strong>Note:</strong> If your module's name already starts with {@code lib}, the 90 build system does not prepend an additional {@code lib} prefix; it takes the module name as-is, and 103 into a module.</p> 146 this script before describing a new module. The syntax for using it is:</p> 153 <p>This variable points to a build script that collects all the information about the module [all …]
|
/frameworks/compile/libbcc/lib/Renderscript/ |
D | RSCompilerDriver.cpp | 332 llvm::Module module("Merged Script Group", context); in buildScriptGroup() local 334 llvm::Linker linker(module); in buildScriptGroup() 360 if (!fuseKernels(Context, sourcesToFuse, slots, nameOfFused, &module)) { in buildScriptGroup() 376 if (!renameInvoke(Context, source, slot, newName, &module)) { in buildScriptGroup() 386 Source::CreateFromModule(Context, pOutputFilepath, module, true)); in buildScriptGroup() 401 bcinfo::MetadataExtractor me(&module); in buildScriptGroup()
|
/frameworks/base/core/java/android/hardware/soundtrigger/ |
D | SoundTriggerModule.java | 186 SoundTriggerModule module = (SoundTriggerModule)((WeakReference)module_ref).get(); in postEventFromNative() local 187 if (module == null) { in postEventFromNative() 191 NativeEventHandlerDelegate delegate = module.mEventHandlerDelegate; in postEventFromNative()
|
/frameworks/base/docs/html/ndk/guides/graphics/ |
D | shader-compilers.jd | 20 the form of an entry point in a <a href=”https://www.khronos.org/spir”>SPIR-V</a> module. 56 The glslc tool compiles a single-source file to a SPIR-V module with a single shader 102 shaderc::SpvCompilationResult module = compiler.CompileGlslToSpv( 105 if (module.GetCompilationStatus() != 107 std::cerr << module.GetErrorMessage(); 110 std::vector<uint32_t> result(module.cbegin(), module.cend()); 141 $(call import-module, third_party/shaderc)
|
/frameworks/base/data/fonts/ |
D | Android.mk | 81 define build-one-font-module 94 $(foreach f, $(font_src_files), $(call build-one-font-module, $(f))) 96 build-one-font-module :=
|