/frameworks/native/libs/binder/ndk/ |
D | service_manager.cpp | 34 binder_exception_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService() argument 35 if (binder == nullptr || instance == nullptr) { in AServiceManager_addService() 40 status_t exception = sm->addService(String16(instance), binder->getBinder()); in AServiceManager_addService() 43 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService() argument 44 if (instance == nullptr) { in AServiceManager_checkService() 49 sp<IBinder> binder = sm->checkService(String16(instance)); in AServiceManager_checkService() 55 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService() argument 56 if (instance == nullptr) { in AServiceManager_getService() 61 sp<IBinder> binder = sm->getService(String16(instance)); in AServiceManager_getService() 67 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) { in AServiceManager_registerLazyService() argument [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 239 final AppStateTrackerTestable instance = new AppStateTrackerTestable(); in newInstance() local 241 return instance; in newInstance() 244 private void callStart(AppStateTrackerTestable instance) throws RemoteException { in callStart() argument 257 instance.onSystemServicesReady(); in callStart() 300 assertNotNull(instance.mFlagsObserver); in callStart() 315 private void areJobsRestricted(AppStateTrackerTestable instance, int[] uids, String[] packages, in areJobsRestricted() argument 320 instance.areJobsRestricted(uids[i], packages[i], exemption)); in areJobsRestricted() 324 private void areAlarmsRestrictedByFAS(AppStateTrackerTestable instance, int[] uids, in areAlarmsRestrictedByFAS() argument 328 assertEquals(restricted[i], instance.areAlarmsRestricted(uids[i], packages[i])); in areAlarmsRestrictedByFAS() 332 private void areAlarmsRestrictedByBatterySaver(AppStateTrackerTestable instance, int[] uids, in areAlarmsRestrictedByBatterySaver() argument [all …]
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | PauseActivityItem.java | 76 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local 77 if (instance == null) { in obtain() 78 instance = new PauseActivityItem(); in obtain() 80 instance.mFinished = finished; in obtain() 81 instance.mUserLeaving = userLeaving; in obtain() 82 instance.mConfigChanges = configChanges; in obtain() 83 instance.mDontReport = dontReport; in obtain() 84 instance.mAutoEnteringPip = autoEnteringPip; in obtain() 86 return instance; in obtain() 91 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local [all …]
|
D | ResumeActivityItem.java | 82 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local 83 if (instance == null) { in obtain() 84 instance = new ResumeActivityItem(); in obtain() 86 instance.mProcState = procState; in obtain() 87 instance.mUpdateProcState = true; in obtain() 88 instance.mIsForward = isForward; in obtain() 89 instance.mShouldSendCompatFakeFocus = shouldSendCompatFakeFocus; in obtain() 91 return instance; in obtain() 96 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local 97 if (instance == null) { in obtain() [all …]
|
D | LaunchActivityItem.java | 125 LaunchActivityItem instance = ObjectPool.obtain(LaunchActivityItem.class); in obtain() local 126 if (instance == null) { in obtain() 127 instance = new LaunchActivityItem(); in obtain() 129 setValues(instance, intent, ident, info, curConfig, overrideConfig, compatInfo, referrer, in obtain() 135 return instance; in obtain() 293 private static void setValues(LaunchActivityItem instance, Intent intent, int ident, in setValues() argument 301 instance.mIntent = intent; in setValues() 302 instance.mIdent = ident; in setValues() 303 instance.mInfo = info; in setValues() 304 instance.mCurConfig = curConfig; in setValues() [all …]
|
D | TransferSplashScreenViewStateItem.java | 64 TransferSplashScreenViewStateItem instance = in obtain() local 66 if (instance == null) { in obtain() 67 instance = new TransferSplashScreenViewStateItem(); in obtain() 69 instance.mSplashScreenViewParcelable = parcelable; in obtain() 70 instance.mStartingWindowLeash = startingWindowLeash; in obtain() 72 return instance; in obtain()
|
D | ActivityRelaunchItem.java | 90 ActivityRelaunchItem instance = ObjectPool.obtain(ActivityRelaunchItem.class); in obtain() local 91 if (instance == null) { in obtain() 92 instance = new ActivityRelaunchItem(); in obtain() 94 instance.mPendingResults = pendingResults; in obtain() 95 instance.mPendingNewIntents = pendingNewIntents; in obtain() 96 instance.mConfigChanges = configChanges; in obtain() 97 instance.mConfig = config; in obtain() 98 instance.mPreserveWindow = preserveWindow; in obtain() 100 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/native/libs/renderengine/threaded/ |
D | RenderEngineThreaded.cpp | 143 mFunctionCalls.push([resultPromise](renderengine::RenderEngine& instance) { in primeCache() argument 149 instance.primeCache(); in primeCache() 167 mFunctionCalls.push([&resultPromise, &result](renderengine::RenderEngine& instance) { in dump() argument 170 instance.dump(localResult); in dump() 189 mFunctionCalls.push([&resultPromise, count, names](renderengine::RenderEngine& instance) { in genTextures() argument 191 instance.genTextures(count, names); in genTextures() 209 mFunctionCalls.push([&resultPromise, count, &names](renderengine::RenderEngine& instance) { in deleteTextures() argument 211 instance.deleteTextures(count, names); in deleteTextures() 226 mFunctionCalls.push([=](renderengine::RenderEngine& instance) { in mapExternalTextureBuffer() argument 228 instance.mapExternalTextureBuffer(buffer, isRenderable); in mapExternalTextureBuffer() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/ |
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() 88 instance?.let { in waitForNotificationToAppear() 98 return instance?.let { in waitForNotificationToDisappear()
|
/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 | 605 bool InitDriverTable(VkInstance instance, in InitDriverTable() argument 608 auto& data = GetData(instance); in InitDriverTable() 612 INIT_PROC(true, instance, DestroyInstance); in InitDriverTable() 613 INIT_PROC(true, instance, EnumeratePhysicalDevices); in InitDriverTable() 614 INIT_PROC(true, instance, GetInstanceProcAddr); in InitDriverTable() 615 INIT_PROC(true, instance, GetPhysicalDeviceProperties); in InitDriverTable() 616 INIT_PROC(true, instance, CreateDevice); in InitDriverTable() 617 INIT_PROC(true, instance, EnumerateDeviceExtensionProperties); in InitDriverTable() 618 INIT_PROC_EXT(EXT_debug_report, true, instance, CreateDebugReportCallbackEXT); in InitDriverTable() 619 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/native/libs/binder/ndk/include_platform/android/ |
D | binder_manager.h | 38 AIBinder* binder, const char* instance) __INTRODUCED_IN(29); 50 __attribute__((warn_unused_result)) AIBinder* AServiceManager_checkService(const char* instance) 71 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance) 90 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) 107 __attribute__((warn_unused_result)) AIBinder* AServiceManager_waitForService(const char* instance) 118 bool AServiceManager_isDeclared(const char* instance) __INTRODUCED_IN(31); 143 bool AServiceManager_isUpdatableViaApex(const char* instance) __INTRODUCED_IN(31);
|
/frameworks/base/core/java/android/util/ |
D | Pools.java | 69 public boolean release(T instance); in release() argument 108 T instance = (T) mPool[lastPooledIndex]; in acquire() local 111 return instance; in acquire() 118 public boolean release(T instance) { in release() argument 119 if (isInPool(instance)) { in release() 123 mPool[mPoolSize] = instance; in release() 130 private boolean isInPool(T instance) { in isInPool() argument 132 if (mPool[i] == instance) { in isInPool()
|
/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/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/core/java/com/android/internal/logging/ |
D | UiEventLoggerImpl.java | 51 InstanceId instance) { in logWithInstanceId() argument 53 if ((eventID > 0) && (instance != null)) { in logWithInstanceId() 58 /* instance_id = 4 */ instance.getId()); in logWithInstanceId() 79 InstanceId instance, int position) { in logWithInstanceIdAndPosition() argument 81 if ((eventID > 0) && (instance != null)) { in logWithInstanceIdAndPosition() 85 /* instance_id = 3 */ instance.getId(), in logWithInstanceIdAndPosition()
|
/frameworks/base/core/java/android/text/method/ |
D | DateKeyListener.java | 95 DateKeyListener instance; in getInstance() local 97 instance = sInstanceCache.get(locale); in getInstance() 98 if (instance == null) { in getInstance() 99 instance = new DateKeyListener(locale); in getInstance() 100 sInstanceCache.put(locale, instance); in getInstance() 103 return instance; in getInstance()
|
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/dataclass/ |
D | ClassWithNative_Delegate.java | 27 public static int native_instance(ClassWithNative instance, int a, double d, Object[] o) { in native_instance() argument 29 o[0] = instance; in native_instance() 34 public static void constructor_after(ClassWithNative instance) { in constructor_after() argument 35 instance.mId = 123; in constructor_after()
|
/frameworks/base/core/java/android/view/ |
D | CrossWindowBlurListeners.java | 62 CrossWindowBlurListeners instance = sInstance; in getInstance() local 63 if (instance == null) { in getInstance() 66 instance = sInstance; in getInstance() 67 if (instance == null) { in getInstance() 68 instance = new CrossWindowBlurListeners(); in getInstance() 69 sInstance = instance; in getInstance() 73 return instance; in getInstance()
|
/frameworks/native/cmds/lshal/ |
D | WaitCommand.cpp | 51 auto [interface, instance] = splitFirst(mInterfaceName, '/'); in main() 52 instance = instance.empty() ? "default" : instance; in main() 63 auto service = getRawServiceInternal(interface, instance, true /*retry*/, false /*getStub*/); in main()
|