Home
last modified time | relevance | path

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

123456789

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java226 final AppStateTrackerTestable instance = new AppStateTrackerTestable(); in newInstance() local
228 return instance; in newInstance()
231 private void callStart(AppStateTrackerTestable instance) throws RemoteException { in callStart() argument
244 instance.onSystemServicesReady(); in callStart()
288 assertNotNull(instance.mFlagsObserver); in callStart()
308 private void areRestricted(AppStateTrackerTestable instance, int uid, String packageName, in areRestricted() argument
311 instance.areJobsRestricted(uid, packageName, exemptFromBatterySaver)); in areRestricted()
313 instance.areAlarmsRestricted(uid, packageName, exemptFromBatterySaver)); in areRestricted()
316 private void areRestricted(AppStateTrackerTestable instance, int uid, String packageName, in areRestricted() argument
318 areRestricted(instance, uid, packageName, restrictionTypes, in areRestricted()
[all …]
/frameworks/base/core/java/android/app/servertransaction/
DPauseActivityItem.java78 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local
79 if (instance == null) { in obtain()
80 instance = new PauseActivityItem(); in obtain()
82 instance.mFinished = finished; in obtain()
83 instance.mUserLeaving = userLeaving; in obtain()
84 instance.mConfigChanges = configChanges; in obtain()
85 instance.mDontReport = dontReport; in obtain()
87 return instance; in obtain()
92 PauseActivityItem instance = ObjectPool.obtain(PauseActivityItem.class); in obtain() local
93 if (instance == null) { in obtain()
[all …]
DResumeActivityItem.java80 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local
81 if (instance == null) { in obtain()
82 instance = new ResumeActivityItem(); in obtain()
84 instance.mProcState = procState; in obtain()
85 instance.mUpdateProcState = true; in obtain()
86 instance.mIsForward = isForward; in obtain()
88 return instance; in obtain()
93 ResumeActivityItem instance = ObjectPool.obtain(ResumeActivityItem.class); in obtain() local
94 if (instance == null) { in obtain()
95 instance = new ResumeActivityItem(); in obtain()
[all …]
DLaunchActivityItem.java105 LaunchActivityItem instance = ObjectPool.obtain(LaunchActivityItem.class); in obtain() local
106 if (instance == null) { in obtain()
107 instance = new LaunchActivityItem(); in obtain()
109 setValues(instance, intent, ident, info, curConfig, overrideConfig, compatInfo, referrer, in obtain()
113 return instance; in obtain()
261 private static void setValues(LaunchActivityItem instance, Intent intent, int ident, in setValues() argument
267 instance.mIntent = intent; in setValues()
268 instance.mIdent = ident; in setValues()
269 instance.mInfo = info; in setValues()
270 instance.mCurConfig = curConfig; in setValues()
[all …]
DActivityRelaunchItem.java87 ActivityRelaunchItem instance = ObjectPool.obtain(ActivityRelaunchItem.class); in obtain() local
88 if (instance == null) { in obtain()
89 instance = new ActivityRelaunchItem(); in obtain()
91 instance.mPendingResults = pendingResults; in obtain()
92 instance.mPendingNewIntents = pendingNewIntents; in obtain()
93 instance.mConfigChanges = configChanges; in obtain()
94 instance.mConfig = config; in obtain()
95 instance.mPreserveWindow = preserveWindow; in obtain()
97 return instance; in obtain()
DMultiWindowModeChangeItem.java51 MultiWindowModeChangeItem instance = ObjectPool.obtain(MultiWindowModeChangeItem.class); in obtain() local
52 if (instance == null) { in obtain()
53 instance = new MultiWindowModeChangeItem(); in obtain()
55 instance.mIsInMultiWindowMode = isInMultiWindowMode; in obtain()
56 instance.mOverrideConfig = overrideConfig; in obtain()
58 return instance; in obtain()
DPipModeChangeItem.java50 PipModeChangeItem instance = ObjectPool.obtain(PipModeChangeItem.class); in obtain() local
51 if (instance == null) { in obtain()
52 instance = new PipModeChangeItem(); in obtain()
54 instance.mIsInPipMode = isInPipMode; in obtain()
55 instance.mOverrideConfig = overrideConfig; in obtain()
57 return instance; in obtain()
DDestroyActivityItem.java61 DestroyActivityItem instance = ObjectPool.obtain(DestroyActivityItem.class); in obtain() local
62 if (instance == null) { in obtain()
63 instance = new DestroyActivityItem(); in obtain()
65 instance.mFinished = finished; in obtain()
66 instance.mConfigChanges = configChanges; in obtain()
68 return instance; in obtain()
DMoveToDisplayItem.java53 MoveToDisplayItem instance = ObjectPool.obtain(MoveToDisplayItem.class); in obtain() local
54 if (instance == null) { in obtain()
55 instance = new MoveToDisplayItem(); in obtain()
57 instance.mTargetDisplayId = targetDisplayId; in obtain()
58 instance.mConfiguration = configuration; in obtain()
60 return instance; in obtain()
DStopActivityItem.java64 StopActivityItem instance = ObjectPool.obtain(StopActivityItem.class); in obtain() local
65 if (instance == null) { in obtain()
66 instance = new StopActivityItem(); in obtain()
68 instance.mShowWindow = showWindow; in obtain()
69 instance.mConfigChanges = configChanges; in obtain()
71 return instance; in obtain()
/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/native/vulkan/vkjson/
Dvkjson_info.cc37 bool instance = false; member
47 options->instance = true; in ParseOptions()
74 if (options->instance && (options->device_index != unsignedNegOne || in ParseOptions()
85 if (options->instance && options->output_file.empty()) { in ParseOptions()
90 if (!options->output_file.empty() && !options->instance && in ParseOptions()
100 bool Dump(const VkJsonInstance& instance, const Options& options) { in Dump() argument
104 instance.devices.size()) { in Dump()
106 << " requested but only " << instance.devices.size() in Dump()
110 out_device = &instance.devices[options.device_index]; in Dump()
112 for (const auto& device : instance.devices) { in Dump()
[all …]
Dvkjson_instance.cc68 VkJsonDevice VkJsonGetDevice(VkInstance instance, in VkJsonGetDevice() argument
78 if (instance != VK_NULL_HANDLE && in VkJsonGetDevice()
83 vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceProperties2KHR")); in VkJsonGetDevice()
86 vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceFeatures2KHR")); in VkJsonGetDevice()
184 vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceProperties2")); in VkJsonGetDevice()
219 vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceFeatures2")); in VkJsonGetDevice()
261 instance, "vkGetPhysicalDeviceExternalFenceProperties")); in VkJsonGetDevice()
289 instance, "vkGetPhysicalDeviceExternalSemaphoreProperties")); in VkJsonGetDevice()
319 VkJsonInstance instance; in VkJsonGetInstance() local
332 instance.layers.reserve(count); in VkJsonGetInstance()
[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/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 …]
/frameworks/native/libs/binder/ndk/
Dservice_manager.cpp31 binder_status_t AServiceManager_addService(AIBinder* binder, const char* instance) { in AServiceManager_addService() argument
32 if (binder == nullptr || instance == nullptr) { in AServiceManager_addService()
37 status_t status = sm->addService(String16(instance), binder->getBinder()); in AServiceManager_addService()
40 AIBinder* AServiceManager_checkService(const char* instance) { in AServiceManager_checkService() argument
41 if (instance == nullptr) { in AServiceManager_checkService()
46 sp<IBinder> binder = sm->checkService(String16(instance)); in AServiceManager_checkService()
52 AIBinder* AServiceManager_getService(const char* instance) { in AServiceManager_getService() argument
53 if (instance == nullptr) { in AServiceManager_getService()
58 sp<IBinder> binder = sm->getService(String16(instance)); in AServiceManager_getService()
/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/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/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()
DTimeKeyListener.java107 TimeKeyListener instance; in getInstance() local
109 instance = sInstanceCache.get(locale); in getInstance()
110 if (instance == null) { in getInstance()
111 instance = new TimeKeyListener(locale); in getInstance()
112 sInstanceCache.put(locale, instance); in getInstance()
115 return instance; in getInstance()
DDateTimeKeyListener.java107 DateTimeKeyListener instance; in getInstance() local
109 instance = sInstanceCache.get(locale); in getInstance()
110 if (instance == null) { in getInstance()
111 instance = new DateTimeKeyListener(locale); in getInstance()
112 sInstanceCache.put(locale, instance); in getInstance()
115 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()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java136 InputMethodSubtype[] instance = mInstance; in get() local
137 if (instance == null) { in get()
139 instance = mInstance; in get()
140 if (instance == null) { in get()
147 instance = unmarshall(decompressedData); in get()
150 instance = new InputMethodSubtype[mCount]; in get()
152 mInstance = instance; in get()
156 return instance[index]; in get()
/frameworks/layoutlib/create/tests/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/bluetooth/
DBluetoothGattDescriptor.java149 int instance, int permissions) { in BluetoothGattDescriptor() argument
150 initDescriptor(characteristic, uuid, instance, permissions); in BluetoothGattDescriptor()
156 public BluetoothGattDescriptor(UUID uuid, int instance, int permissions) { in BluetoothGattDescriptor() argument
157 initDescriptor(null, uuid, instance, permissions); in BluetoothGattDescriptor()
161 int instance, int permissions) { in initDescriptor() argument
164 mInstance = instance; in initDescriptor()

123456789