/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 | 75 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local 76 if (instance == null) { in obtain() 77 instance = new PauseActivityItem(); in obtain() 79 instance.mFinished = finished; in obtain() 80 instance.mUserLeaving = userLeaving; in obtain() 81 instance.mConfigChanges = configChanges; in obtain() 82 instance.mDontReport = dontReport; in obtain() 84 return instance; in obtain() 89 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local 90 if (instance == null) { in obtain() [all …]
|
D | ResumeActivityItem.java | 78 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local 79 if (instance == null) { in obtain() 80 instance = new ResumeActivityItem(); in obtain() 82 instance.mProcState = procState; in obtain() 83 instance.mUpdateProcState = true; in obtain() 84 instance.mIsForward = isForward; in obtain() 86 return instance; in obtain() 91 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local 92 if (instance == null) { in obtain() 93 instance = new ResumeActivityItem(); in obtain() [all …]
|
D | LaunchActivityItem.java | 128 LaunchActivityItem instance = ObjectPool.obtain(LaunchActivityItem.class); in obtain() local 129 if (instance == null) { in obtain() 130 instance = new LaunchActivityItem(); in obtain() 132 setValues(instance, intent, ident, info, curConfig, overrideConfig, compatInfo, referrer, in obtain() 138 return instance; in obtain() 296 private static void setValues(LaunchActivityItem instance, Intent intent, int ident, in setValues() argument 305 instance.mIntent = intent; in setValues() 306 instance.mIdent = ident; in setValues() 307 instance.mInfo = info; in setValues() 308 instance.mCurConfig = curConfig; in setValues() [all …]
|
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()
|
D | TransferSplashScreenViewStateItem.java | 84 TransferSplashScreenViewStateItem instance = in obtain() local 86 if (instance == null) { in obtain() 87 instance = new TransferSplashScreenViewStateItem(); in obtain() 89 instance.mRequest = state; in obtain() 90 instance.mSplashScreenViewParcelable = parcelable; in obtain() 92 return instance; in obtain()
|
/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/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() 185 mFunctionCalls.push([&resultPromise, count, names](renderengine::RenderEngine& instance) { in genTextures() argument 187 instance.genTextures(count, names); in genTextures() 201 mFunctionCalls.push([&resultPromise, count, &names](renderengine::RenderEngine& instance) { in deleteTextures() argument 203 instance.deleteTextures(count, names); in deleteTextures() 218 mFunctionCalls.push([=](renderengine::RenderEngine& instance) { in mapExternalTextureBuffer() argument 220 instance.mapExternalTextureBuffer(buffer, isRenderable); in mapExternalTextureBuffer() [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/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 | 603 bool InitDriverTable(VkInstance instance, in InitDriverTable() argument 606 auto& data = GetData(instance); in InitDriverTable() 610 INIT_PROC(true, instance, DestroyInstance); in InitDriverTable() 611 INIT_PROC(true, instance, EnumeratePhysicalDevices); in InitDriverTable() 612 INIT_PROC(true, instance, GetInstanceProcAddr); in InitDriverTable() 613 INIT_PROC(true, instance, GetPhysicalDeviceProperties); in InitDriverTable() 614 INIT_PROC(true, instance, CreateDevice); in InitDriverTable() 615 INIT_PROC(true, instance, EnumerateDeviceExtensionProperties); in InitDriverTable() 616 INIT_PROC_EXT(EXT_debug_report, true, instance, CreateDebugReportCallbackEXT); in InitDriverTable() 617 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) 63 __attribute__((warn_unused_result)) AIBinder* AServiceManager_getService(const char* instance) 82 binder_status_t AServiceManager_registerLazyService(AIBinder* binder, const char* instance) 99 __attribute__((warn_unused_result)) AIBinder* AServiceManager_waitForService(const char* instance) 110 bool AServiceManager_isDeclared(const char* instance) __INTRODUCED_IN(31); 135 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/apex/appsearch/service/java/com/android/server/appsearch/ |
D | AppSearchManagerService.java | 235 AppSearchUserInstance instance = in handlePackageRemoved() local 239 instance.getAppSearchImpl().clearPackageData(packageName); in handlePackageRemoved() 240 instance.getLogger().removeCachedUidForPackage(packageName); in handlePackageRemoved() 259 AppSearchUserInstance instance = in onUserUnlocking() local 271 instance.getAppSearchImpl().prunePackageData(packagesToKeep); in onUserUnlocking() 338 AppSearchUserInstance instance = null; in setSchema() local 362 instance = mAppSearchUserInstanceManager.getUserInstance(callingUser); in setSchema() 363 SetSchemaResponse setSchemaResponse = instance.getAppSearchImpl().setSchema( in setSchema() 367 instance.getVisibilityStore(), in setSchema() 380 checkForOptimize(instance); in setSchema() [all …]
|
D | AppSearchUserInstanceManager.java | 109 AppSearchUserInstance instance = mInstancesLocked.get(userHandle); in getOrCreateUserInstance() local 110 if (instance == null) { in getOrCreateUserInstance() 111 instance = createUserInstance(userContext, userHandle, config); in getOrCreateUserInstance() 112 mInstancesLocked.put(userHandle, instance); in getOrCreateUserInstance() 114 return instance; in getOrCreateUserInstance() 128 AppSearchUserInstance instance = mInstancesLocked.remove(userHandle); in closeAndRemoveUserInstance() local 129 if (instance != null) { in closeAndRemoveUserInstance() 130 instance.getAppSearchImpl().close(); in closeAndRemoveUserInstance() 150 AppSearchUserInstance instance = mInstancesLocked.get(userHandle); in getUserInstance() local 151 if (instance == null) { in getUserInstance() [all …]
|
/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 | 46 InstanceId instance) { in logWithInstanceId() argument 48 if ((eventID > 0) && (instance != null)) { in logWithInstanceId() 53 /* instance_id = 4 */ instance.getId()); in logWithInstanceId() 73 InstanceId instance, int position) { in logWithInstanceIdAndPosition() argument 75 if ((eventID > 0) && (instance != null)) { in logWithInstanceIdAndPosition() 79 /* 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/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()
|