Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/frameworks/native/libs/binder/ndk/
Dservice_manager.cpp34 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/
DAppStateTrackerTest.java239 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/
DPauseActivityItem.java76 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 …]
DResumeActivityItem.java82 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 …]
DLaunchActivityItem.java125 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 …]
DTransferSplashScreenViewStateItem.java64 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()
DActivityRelaunchItem.java90 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/
DMessagingPool.java46 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/
DLearner.java32 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/
DRenderEngineThreaded.cpp91 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/
Dsync.cpp64 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/
DRenderEngineThreaded.cpp143 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/
DNotificationListener.kt39 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/
Ddebug_report.cpp118 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 …]
Ddriver_gen.cpp605 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/
DOmx.cpp92 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/
Dbinder_manager.h38 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/
DPools.java69 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/
DDisplayIdIndexSupplier.java52 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/
DCallOrderStateMachineHelper.h102 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/
DUiEventLoggerImpl.java51 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/
DDateKeyListener.java95 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/
DClassWithNative_Delegate.java27 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/
DCrossWindowBlurListeners.java62 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/
DWaitCommand.cpp51 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()

12345678910>>...12