/frameworks/native/libs/binder/ndk/ |
D | service_manager.cpp | 33 binder_exception_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService() argument 34 if (binder == nullptr || instance == nullptr) { in AServiceManager_addService() 39 status_t exception = sm->addService(String16(instance), binder->getBinder()); in AServiceManager_addService() 43 binder_exception_t AServiceManager_addServiceWithFlags(AIBinder* binder, const char* instance, in AServiceManager_addServiceWithFlags() argument 45 if (binder == nullptr || instance == nullptr) { in AServiceManager_addServiceWithFlags() 69 sm->addService(String16(instance), binder->getBinder(), allowIsolated, dumpFlags); in AServiceManager_addServiceWithFlags() 74 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService() argument 75 if (instance == nullptr) { in AServiceManager_checkService() 80 sp<IBinder> binder = sm->checkService(String16(instance)); in AServiceManager_checkService() 86 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService() argument [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 240 final AppStateTrackerTestable instance = new AppStateTrackerTestable(); in newInstance() local 242 return instance; in newInstance() 245 private void callStart(AppStateTrackerTestable instance) throws RemoteException { in callStart() argument 258 instance.onSystemServicesReady(); in callStart() 302 assertNotNull(instance.mFlagsObserver); in callStart() 318 private void areJobsRestricted(AppStateTrackerTestable instance, int[] uids, String[] packages, in areJobsRestricted() argument 323 instance.areJobsRestricted(uids[i], packages[i], exemption)); in areJobsRestricted() 327 private void areAlarmsRestrictedByFAS(AppStateTrackerTestable instance, int[] uids, in areAlarmsRestrictedByFAS() argument 331 assertEquals(restricted[i], instance.areAlarmsRestricted(uids[i], packages[i])); in areAlarmsRestrictedByFAS() 335 private void areAlarmsRestrictedByBatterySaver(AppStateTrackerTestable instance, int[] uids, in areAlarmsRestrictedByBatterySaver() argument [all …]
|
/frameworks/native/libs/binder/ndk/include_platform/android/ |
D | binder_manager.h | 53 AIBinder* binder, const char* instance) __INTRODUCED_IN(29); 69 AIBinder* binder, const char* instance, const AServiceManager_AddServiceFlag flags) 82 __attribute__((warn_unused_result)) AIBinder* AServiceManager_checkService(const char* instance) 104 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance) 123 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) 140 __attribute__((warn_unused_result)) AIBinder* AServiceManager_waitForService(const char* instance) 155 typedef void (*AServiceManager_onRegister)(const char* instance, AIBinder* registered, 188 AServiceManager_registerForServiceNotifications(const char* instance, 212 bool AServiceManager_isDeclared(const char* instance) __INTRODUCED_IN(31); 237 bool AServiceManager_isUpdatableViaApex(const char* instance) __INTRODUCED_IN(31); [all …]
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ResumeActivityItem.java | 83 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local 84 if (instance == null) { in obtain() 85 instance = new ResumeActivityItem(); in obtain() 87 instance.setActivityToken(activityToken); in obtain() 88 instance.mProcState = procState; in obtain() 89 instance.mUpdateProcState = true; in obtain() 90 instance.mIsForward = isForward; in obtain() 91 instance.mShouldSendCompatFakeFocus = shouldSendCompatFakeFocus; in obtain() 93 return instance; in obtain() 100 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local [all …]
|
D | WindowStateResizeItem.java | 86 WindowStateResizeItem instance = in obtain() local 88 if (instance == null) { in obtain() 89 instance = new WindowStateResizeItem(); in obtain() 91 instance.setWindow(window); in obtain() 92 instance.mFrames = new ClientWindowFrames(frames); in obtain() 93 instance.mReportDraw = reportDraw; in obtain() 94 instance.mConfiguration = new MergedConfiguration(configuration); in obtain() 95 instance.mInsetsState = new InsetsState(insetsState, true /* copySources */); in obtain() 96 instance.mForceLayout = forceLayout; in obtain() 97 instance.mAlwaysConsumeSystemBars = alwaysConsumeSystemBars; in obtain() [all …]
|
D | LaunchActivityItem.java | 140 LaunchActivityItem instance = ObjectPool.obtain(LaunchActivityItem.class); in obtain() local 141 if (instance == null) { in obtain() 142 instance = new LaunchActivityItem(); in obtain() 144 setValues(instance, activityToken, new Intent(intent), ident, new ActivityInfo(info), in obtain() 157 return instance; in obtain() 344 private static void setValues(@Nullable LaunchActivityItem instance, in setValues() argument 358 instance.mActivityToken = activityToken; in setValues() 359 instance.mIntent = intent; in setValues() 360 instance.mIdent = ident; in setValues() 361 instance.mInfo = info; in setValues() [all …]
|
D | PauseActivityItem.java | 75 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local 76 if (instance == null) { in obtain() 77 instance = new PauseActivityItem(); in obtain() 79 instance.setActivityToken(activityToken); in obtain() 80 instance.mFinished = finished; in obtain() 81 instance.mUserLeaving = userLeaving; in obtain() 82 instance.mDontReport = dontReport; in obtain() 83 instance.mAutoEnteringPip = autoEnteringPip; in obtain() 85 return instance; in obtain()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingPool.java | 46 T instance = mCurrentPool.acquire(); in acquire() local 47 if (instance.getParent() != null) { in acquire() 48 Log.wtf(TAG, "acquired " + instance + " with parent " + instance.getParent()); in acquire() 51 return instance; in acquire() 55 public boolean release(T instance) { in release() argument 56 if (instance.getParent() != null) { in release() 57 Log.wtf(TAG, "releasing " + instance + " with parent " + instance.getParent()); in release() 63 return mCurrentPool.release(instance); in release()
|
/frameworks/base/core/java/android/gesture/ |
D | Learner.java | 32 void addInstance(Instance instance) { in addInstance() argument 33 mInstances.add(instance); in addInstance() 54 Instance instance = instances.get(i); in removeInstance() local 55 if (id == instance.id) { in removeInstance() 56 instances.remove(instance); in removeInstance() 73 final Instance instance = instances.get(i); in removeInstances() local 75 if ((instance.label == null && name == null) in removeInstances() 76 || (instance.label != null && instance.label.equals(name))) { in removeInstances() 77 toDelete.add(instance); in removeInstances()
|
/frameworks/av/media/libstagefright/renderfright/threaded/ |
D | RenderEngineThreaded.cpp | 91 mFunctionCalls.push([&resultPromise](renderengine::RenderEngine& instance) { in primeCache() argument 93 instance.primeCache(); in primeCache() 106 mFunctionCalls.push([&resultPromise, &result](renderengine::RenderEngine& instance) { in dump() argument 109 instance.dump(localResult); in dump() 153 mFunctionCalls.push([&resultPromise, count, names](renderengine::RenderEngine& instance) { in genTextures() argument 155 instance.genTextures(count, names); in genTextures() 168 mFunctionCalls.push([&resultPromise, count, &names](renderengine::RenderEngine& instance) { in deleteTextures() argument 170 instance.deleteTextures(count, names); in deleteTextures() 184 [&resultPromise, texName, &image](renderengine::RenderEngine& instance) { in bindExternalTextureImage() argument 186 instance.bindExternalTextureImage(texName, image); in bindExternalTextureImage() [all …]
|
/frameworks/wilhelm/src/ |
D | sync.cpp | 64 IObject *instance = (IObject *) thiz->mEngine.mInstances[i]; in sync_start() local 66 if (NULL == instance) { in sync_start() 70 object_lock_exclusive(instance); in sync_start() 71 unsigned attributesMask = instance->mAttributesMask; in sync_start() 72 instance->mAttributesMask = 0; in sync_start() 74 switch (IObjectToObjectID(instance)) { in sync_start() 77 object_unlock_exclusive(instance); in sync_start() 80 CAudioPlayer *audioPlayer = (CAudioPlayer *) instance; in sync_start() 87 object_unlock_exclusive(instance); in sync_start()
|
/frameworks/libs/binary_translation/guest_loader/ |
D | guest_loader.cc | 277 std::unique_ptr<GuestLoader> instance(new GuestLoader()); in CreateInstance() local 283 &instance->executable_elf_file_, in CreateInstance() 291 instance->main_executable_path_ = main_executable_path; in CreateInstance() 293 instance->caller_addr_ = instance->executable_elf_file_.entry_point(); in CreateInstance() 296 bool is_static_executable = (FindPtInterp(&instance->executable_elf_file_) == nullptr); in CreateInstance() 302 &instance->vdso_elf_file_, in CreateInstance() 304 if (!InitializeVdso(instance->vdso_elf_file_, error_msg)) { in CreateInstance() 314 InitializeLinkerCallbacksToStubs(&instance->linker_callbacks_); in CreateInstance() 315 if (instance->executable_elf_file_.e_type() == ET_DYN) { in CreateInstance() 319 &instance->linker_callbacks_, instance->executable_elf_file_, error_msg)) { in CreateInstance() [all …]
|
/frameworks/native/vulkan/libvulkan/ |
D | debug_report.cpp | 118 VkInstance instance, in CreateDebugReportCallbackEXT() argument 122 const auto& driver = GetData(instance).driver; in CreateDebugReportCallbackEXT() 126 instance, create_info, allocator, &driver_handle); in CreateDebugReportCallbackEXT() 131 auto& callbacks = GetData(instance).debug_report_callbacks; in CreateDebugReportCallbackEXT() 134 (allocator) ? *allocator : GetData(instance).allocator); in CreateDebugReportCallbackEXT() 137 driver.DestroyDebugReportCallbackEXT(instance, driver_handle, in CreateDebugReportCallbackEXT() 149 void DestroyDebugReportCallbackEXT(VkInstance instance, in DestroyDebugReportCallbackEXT() argument 155 auto& callbacks = GetData(instance).debug_report_callbacks; in DestroyDebugReportCallbackEXT() 160 node, (allocator) ? *allocator : GetData(instance).allocator); in DestroyDebugReportCallbackEXT() 163 GetData(instance).driver.DestroyDebugReportCallbackEXT( in DestroyDebugReportCallbackEXT() [all …]
|
D | driver_gen.cpp | 638 bool InitDriverTable(VkInstance instance, in InitDriverTable() argument 641 auto& data = GetData(instance); in InitDriverTable() 645 INIT_PROC(true, instance, DestroyInstance); in InitDriverTable() 646 INIT_PROC(true, instance, EnumeratePhysicalDevices); in InitDriverTable() 647 INIT_PROC(true, instance, GetInstanceProcAddr); in InitDriverTable() 648 INIT_PROC(true, instance, GetPhysicalDeviceProperties); in InitDriverTable() 649 INIT_PROC(true, instance, CreateDevice); in InitDriverTable() 650 INIT_PROC(true, instance, EnumerateDeviceExtensionProperties); in InitDriverTable() 651 INIT_PROC_EXT(EXT_debug_report, true, instance, CreateDebugReportCallbackEXT); in InitDriverTable() 652 INIT_PROC_EXT(EXT_debug_report, true, instance, DestroyDebugReportCallbackEXT); in InitDriverTable() [all …]
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | Omx.cpp | 92 sp<OMXNodeInstance> instance; in allocateNode() local 100 instance = new OMXNodeInstance( in allocateNode() 106 instance.get(), &handle); in allocateNode() 116 instance->setHandle(handle); in allocateNode() 136 instance->setQuirks(quirks); in allocateNode() 139 mLiveNodes.add(observer.get(), instance); in allocateNode() 140 mNode2Observer.add(instance.get(), observer.get()); in allocateNode() 144 _hidl_cb(toStatus(OK), new TWOmxNode(instance)); in allocateNode() 166 sp<OMXNodeInstance> instance; in serviceDied() local 178 instance = mLiveNodes.editValueAt(index); in serviceDied() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
D | NotificationListener.kt | 39 instance = this in onListenerConnected() 44 instance = null in onListenerDisconnected() 57 private var instance: NotificationListener? = null variable 60 if (instance != null) { in startNotificationListener() 65 return wait { instance != null } in startNotificationListener() 69 if (instance == null) { in stopNotificationListener() 74 return wait { instance == null } in stopNotificationListener() 80 instance?.run { in findNotification() 89 instance?.let { in waitForNotificationToAppear() 97 return instance?.let { wait { it.notifications.values.none(predicate) } } in waitForNotificationToDisappear()
|
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/ |
D | CursorWindow_host.java | 45 CursorWindow_host instance = new CursorWindow_host(); in nativeCreate() local 46 instance.mName = name; in nativeCreate() 48 sInstances.put(instanceId, instance); in nativeCreate() 70 CursorWindow_host instance = sInstances.get(windowPtr); in nativeAllocRow() local 72 row.fields = new String[instance.mColumnNum]; in nativeAllocRow() 73 row.types = new int[instance.mColumnNum]; in nativeAllocRow() 75 instance.mRows.add(row); in nativeAllocRow() 80 CursorWindow_host instance = sInstances.get(windowPtr); in put() local 81 if (row >= instance.mRows.size() || column >= instance.mColumnNum) { in put() 84 Row r = instance.mRows.get(row); in put() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Pools.java | 70 public boolean release(T instance); in release() argument 109 T instance = (T) mPool[lastPooledIndex]; in acquire() local 112 return instance; in acquire() 119 public boolean release(T instance) { in release() argument 120 if (isInPool(instance)) { in release() 124 mPool[mPoolSize] = instance; in release() 131 private boolean isInPool(T instance) { in isInPool() argument 133 if (mPool[i] == instance) { in isInPool()
|
/frameworks/native/libs/renderengine/threaded/ |
D | RenderEngineThreaded.cpp | 141 mFunctionCalls.push([resultPromise, config](renderengine::RenderEngine& instance) { in primeCache() argument 147 instance.primeCache(config); in primeCache() 165 mFunctionCalls.push([&resultPromise, &result](renderengine::RenderEngine& instance) { in dump() argument 168 instance.dump(localResult); in dump() 184 mFunctionCalls.push([=](renderengine::RenderEngine& instance) { in mapExternalTextureBuffer() argument 186 instance.mapExternalTextureBuffer(buffer, isRenderable); in mapExternalTextureBuffer() 199 [=, buffer = std::move(buffer)](renderengine::RenderEngine& instance) mutable { in unmapExternalTextureBuffer() argument 201 instance.unmapExternalTextureBuffer(std::move(buffer)); in unmapExternalTextureBuffer() 231 mFunctionCalls.push([=](renderengine::RenderEngine& instance) { in cleanupPostRender() argument 233 instance.cleanupPostRender(); in cleanupPostRender() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | CallOrderStateMachineHelper.h | 102 static CurrentStateType make(InstanceType* instance) { in make() argument 104 helper.mInstance = instance; in make() 117 InstanceType* instance = nullptr; in nextState() local 118 std::swap(instance, mInstance); in nextState() 119 return NextStateType::make(instance); in nextState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | DisplayIdIndexSupplier.java | 52 T instance = mSparseArray.get(displayId); in get() local 53 if (instance != null) { in get() 54 return instance; in get() 60 instance = createInstance(display); in get() 61 mSparseArray.put(displayId, instance); in get() 62 return instance; in get()
|
/frameworks/av/services/audiopolicy/managerdefault/ |
D | EngineLibrary.cpp | 75 auto instance = createEngine(); in createEngineUsingXmlConfig() local 76 if (instance != nullptr) { in createEngineUsingXmlConfig() 77 if (status_t status = instance->loadFromXmlConfigWithFallback(xmlFilePath); in createEngineUsingXmlConfig() 79 return instance; in createEngineUsingXmlConfig() 91 auto instance = createEngine(); in createEngineUsingHalConfig() local 92 if (instance != nullptr) { in createEngineUsingHalConfig() 93 if (status_t status = instance->loadFromHalConfigWithFallback(config); status == OK) { in createEngineUsingHalConfig() 94 return instance; in createEngineUsingHalConfig()
|
/frameworks/native/libs/bufferstreams/examples/app/java/com/android/graphics/bufferstreamsdemoapp/ |
D | BufferStreamJNI.kt | 18 val instance = BufferStreamJNI() in companion_stringFromJNI() constant 19 return instance.stringFromJNI() in companion_stringFromJNI() 23 val instance = BufferStreamJNI() in companion_testBufferQueueCreation() constant 24 return instance.testBufferQueueCreation() in companion_testBufferQueueCreation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/db/ |
D | CommunalDatabase.kt | 31 private var instance: CommunalDatabase? = null in <lambda>() variable 46 if (instance == null) { in <lambda>() 47 instance = in <lambda>() 60 return instance!! in <lambda>() 65 instance = database in <lambda>()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | CanvasContextTests.cpp | 63 auto instance = VulkanManager::peekInstance(); in RENDERTHREAD_TEST() local 64 if (instance) { in RENDERTHREAD_TEST() 65 EXPECT_TRUE(instance->hasVkContext()); in RENDERTHREAD_TEST() 74 auto instance = VulkanManager::peekInstance(); in RENDERTHREAD_TEST() local 75 if (instance) { in RENDERTHREAD_TEST() 77 EXPECT_FALSE(instance->hasVkContext()); in RENDERTHREAD_TEST()
|