/frameworks/native/libs/fakeservicemanager/ |
D | test_sm.cpp | 50 auto sm = new FakeServiceManager(); in TEST() local 51 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 56 auto sm = new FakeServiceManager(); in TEST() local 57 EXPECT_EQ(sm->addService(String16("foo"), nullptr, false /*allowIsolated*/, in TEST() 62 auto sm = new FakeServiceManager(); in TEST() local 63 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 65 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 70 auto sm = new FakeServiceManager(); in TEST() local 71 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST() 73 EXPECT_NE(sm->getService(String16("foo")), nullptr); in TEST() [all …]
|
/frameworks/native/cmds/servicemanager/ |
D | test_sm.cpp | 79 sp<ServiceManager> sm = sp<NiceMock<MockServiceManager>>::make(std::move(access)); in getPermissiveServiceManager() local 80 return sm; in getPermissiveServiceManager() 91 auto sm = getPermissiveServiceManager(); in TEST() local 92 EXPECT_TRUE(sm->addService("foo", getBinder(), false /*allowIsolated*/, in TEST() 97 auto sm = getPermissiveServiceManager(); in TEST() local 98 EXPECT_FALSE(sm->addService("", getBinder(), false /*allowIsolated*/, in TEST() 103 auto sm = getPermissiveServiceManager(); in TEST() local 104 EXPECT_TRUE(sm->addService(std::string(127, 'a'), getBinder(), false /*allowIsolated*/, in TEST() 109 auto sm = getPermissiveServiceManager(); in TEST() local 110 EXPECT_FALSE(sm->addService(std::string(128, 'a'), getBinder(), false /*allowIsolated*/, in TEST() [all …]
|
/frameworks/rs/ |
D | rsApiMesh.cpp | 23 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertexBufferCount() local 24 *numVtx = sm->mHal.state.vertexBuffersCount; in rsaMeshGetVertexBufferCount() 28 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndexCount() local 29 *numIdx = sm->mHal.state.primitivesCount; in rsaMeshGetIndexCount() 33 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertices() local 34 rsAssert(vtxDataCount == sm->mHal.state.vertexBuffersCount); in rsaMeshGetVertices() 37 vtxData[ct] = sm->mHal.state.vertexBuffers[ct]; in rsaMeshGetVertices() 38 sm->mHal.state.vertexBuffers[ct]->incUserRef(); in rsaMeshGetVertices() 43 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndices() local 44 rsAssert(idxDataCount == sm->mHal.state.primitivesCount); in rsaMeshGetIndices() [all …]
|
D | rsScriptC_LibGL.cpp | 147 void rsrDrawPath(Context *rsc, Path *sm) { in rsrDrawPath() argument 151 void rsrDrawMesh(Context *rsc, Mesh *sm) { in rsrDrawMesh() argument 152 CHECK_OBJ(sm); in rsrDrawMesh() 156 sm->render(rsc); in rsrDrawMesh() 159 void rsrDrawMeshPrimitive(Context *rsc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument 160 CHECK_OBJ(sm); in rsrDrawMeshPrimitive() 164 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive() 167 void rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument 169 CHECK_OBJ(sm); in rsrDrawMeshPrimitiveRange() 173 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ListContextMenu.java | 96 …SubMenu sm = menu.addSubMenu(0, 0, 0, "The 2nd item, a sub menu").setIcon(R.drawable.black_square_… in onCreateOptionsMenu() local 97 item = sm.getItem(); in onCreateOptionsMenu() 99 sm.add(1, 0, 0, "Subitem 1"); in onCreateOptionsMenu() 100 sm.add(1, 0, 0, "Subitem 2"); in onCreateOptionsMenu() 101 sm.add(1, 0, 0, "Subitem 3"); in onCreateOptionsMenu() 102 sm.setGroupCheckable(1, true, true); in onCreateOptionsMenu() 110 sm = menu.addSubMenu(0, 0, 0, "Item 10 SM"); in onCreateOptionsMenu() 111 sm.add(0, 0, 0, "Subitem 1"); in onCreateOptionsMenu() 112 sm.add(0, 0, 0, "Subitem 2"); in onCreateOptionsMenu() 113 sm.add(0, 0, 0, "Subitem 3"); in onCreateOptionsMenu() [all …]
|
/frameworks/native/libs/binder/ndk/ |
D | service_manager.cpp | 38 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_addService() local 39 status_t exception = sm->addService(String16(instance), binder->getBinder()); in AServiceManager_addService() 49 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_addServiceWithFlags() local 69 sm->addService(String16(instance), binder->getBinder(), allowIsolated, dumpFlags); in AServiceManager_addServiceWithFlags() 79 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_checkService() local 80 sp<IBinder> binder = sm->checkService(String16(instance)); in AServiceManager_checkService() 91 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_getService() local 92 sp<IBinder> binder = sm->getService(String16(instance)); in AServiceManager_getService() 113 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_waitForService() local 114 sp<IBinder> binder = sm->waitForService(String16(instance)); in AServiceManager_waitForService() [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | IServiceManager.h | 160 LIBBINDER_EXPORTED void setDefaultServiceManager(const sp<IServiceManager>& sm); 164 const sp<IServiceManager> sm = defaultServiceManager(); in waitForService() local 165 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForService() 170 const sp<IServiceManager> sm = defaultServiceManager(); in waitForDeclaredService() local 171 if (!sm->isDeclared(name)) return nullptr; in waitForDeclaredService() 172 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForDeclaredService() 177 const sp<IServiceManager> sm = defaultServiceManager(); in checkDeclaredService() local 178 if (!sm->isDeclared(name)) return nullptr; in checkDeclaredService() 179 return interface_cast<INTERFACE>(sm->checkService(name)); in checkDeclaredService() 199 const sp<IServiceManager> sm = defaultServiceManager(); in getService() local [all …]
|
/frameworks/native/include/binder/ |
D | IServiceManager.h | 160 LIBBINDER_EXPORTED void setDefaultServiceManager(const sp<IServiceManager>& sm); 164 const sp<IServiceManager> sm = defaultServiceManager(); in waitForService() local 165 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForService() 170 const sp<IServiceManager> sm = defaultServiceManager(); in waitForDeclaredService() local 171 if (!sm->isDeclared(name)) return nullptr; in waitForDeclaredService() 172 return interface_cast<INTERFACE>(sm->waitForService(name)); in waitForDeclaredService() 177 const sp<IServiceManager> sm = defaultServiceManager(); in checkDeclaredService() local 178 if (!sm->isDeclared(name)) return nullptr; in checkDeclaredService() 179 return interface_cast<INTERFACE>(sm->checkService(name)); in checkDeclaredService() 199 const sp<IServiceManager> sm = defaultServiceManager(); in getService() local [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderHostDeviceTest.cpp | 119 auto sm = defaultServiceManager(); in TEST_F() local 121 auto services = sm->listServices(); in TEST_F() 126 auto sm = defaultServiceManager(); in TEST_F() local 128 auto rpcBinder = sm->checkService(String16(kServiceName)); in TEST_F() 136 auto sm = defaultServiceManager(); in TEST_F() local 140 auto rpcBinder = sm->getService(String16(kServiceName)); in TEST_F() 149 auto sm = defaultServiceManager(); in TEST_F() local 151 auto rpcBinder = sm->waitForService(String16(kServiceName)); in TEST_F() 159 auto sm = defaultServiceManager(); in TEST_F() local 162 auto rpcBinder = sm->checkService(String16(kServiceName)); in TEST_F()
|
D | binderHostDeviceTestService.cpp | 44 auto sm = android::defaultServiceManager(); in main() local 45 CHECK(sm != nullptr); in main() 47 auto status = sm->addService(android::String16(name), service); in main()
|
/frameworks/base/libs/hwui/ |
D | Mesh.cpp | 49 SafeMath sm; in validate() local 50 size_t vertexSize = sm.mul(vertexStride, vertexCount); in validate() 51 if (sm.add(vertexSize, vertexOffset) > mBufferData->vertexData().size()) { in validate() 86 size_t isize = sm.mul(sizeof(uint16_t), indexCount); in validate() 87 if (sm.add(isize, indexOffset) > mBufferData->indexData().size()) { in validate() 105 if (!sm.ok()) { in validate()
|
/frameworks/libs/modules-utils/javatests/com/android/internal/util/ |
D | StateMachineTest.java | 66 private void dumpLogRecs(StateMachine sm) { in dumpLogRecs() argument 67 int size = sm.getLogRecSize(); in dumpLogRecs() 68 tlog("size=" + size + " count=" + sm.getLogRecCount()); in dumpLogRecs() 70 LogRec lr = sm.getLogRec(i); in dumpLogRecs() 1680 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("smUnhandledMessage"); in testStateMachineUnhandledMessage() local 1681 sm.start(); in testStateMachineUnhandledMessage() 1682 if (sm.isDbg()) tlog("testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage() 1684 synchronized (sm) { in testStateMachineUnhandledMessage() 1687 sm.sendMessage(i); in testStateMachineUnhandledMessage() 1692 sm.wait(); in testStateMachineUnhandledMessage() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/satellite/data/prod/ |
D | DeviceBasedSatelliteRepositoryImpl.kt | 249 sm: SatelliteManager in checkSatelliteSupportAfterMinUptime() 259 return sm.checkSatelliteSupported() in checkSatelliteSupportAfterMinUptime() 292 private suspend fun listenForChangesToSatelliteSupport(sm: SatelliteManager) { in listenForChangesToSatelliteSupport() 296 satelliteSupport.value = Supported(sm) in listenForChangesToSatelliteSupport() 350 private fun satelliteProvisioned(sm: SupportedSatelliteManager): Flow<Boolean> = in satelliteProvisioned() 356 trySend(queryIsSatelliteProvisioned(sm)) in satelliteProvisioned() 369 sm.registerForProvisionStateChanged( in satelliteProvisioned() 380 sm.unregisterForProvisionStateChanged(callback) in satelliteProvisioned() 387 private suspend fun queryIsSatelliteProvisioned(sm: SupportedSatelliteManager): Boolean = in queryIsSatelliteProvisioned() 405 sm.requestIsProvisioned(bgDispatcher.asExecutor(), receiver) in queryIsSatelliteProvisioned() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 806 SyncMessenger sm; in obtain() local 809 sm = new SyncMessenger(); in obtain() 810 sm.mHandlerThread = new HandlerThread("SyncHandler-" + sCount++); in obtain() 811 sm.mHandlerThread.start(); in obtain() 812 sm.mHandler = sm.new SyncHandler(sm.mHandlerThread.getLooper()); in obtain() 813 sm.mMessenger = new Messenger(sm.mHandler); in obtain() 815 sm = sStack.pop(); in obtain() 818 return sm; in obtain() 837 SyncMessenger sm = SyncMessenger.obtain(); in sendMessageSynchronously() local 841 msg.replyTo = sm.mMessenger; in sendMessageSynchronously() [all …]
|
/frameworks/native/cmds/dumpsys/ |
D | main.cpp | 32 sp<IServiceManager> sm = defaultServiceManager(); in main() local 34 if (sm == nullptr) { in main() 40 Dumpsys dumpsys(sm.get()); in main()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | PrivateStorageInfo.java | 41 public static PrivateStorageInfo getPrivateStorageInfo(StorageVolumeProvider sm) { in getPrivateStorageInfo() argument 47 for (VolumeInfo info : sm.getVolumes()) { in getPrivateStorageInfo() 50 privateTotalBytes += sm.getTotalBytes(stats, info); in getPrivateStorageInfo() 51 privateFreeBytes += sm.getFreeBytes(stats, info); in getPrivateStorageInfo()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | SliceBackupHelper.java | 45 ISliceManager sm = ISliceManager.Stub.asInterface( in getBackupPayload() local 48 newPayload = sm.getBackupPayload(UserHandle.USER_SYSTEM); in getBackupPayload() 64 ISliceManager sm = ISliceManager.Stub.asInterface( in applyRestoredPayload() local 67 sm.applyRestore(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
/frameworks/av/camera/cameraserver/ |
D | main_cameraserver.cpp | 38 sp<IServiceManager> sm = defaultServiceManager(); in main() local 39 ALOGI("ServiceManager: %p", sm.get()); in main() 41 ALOGI("ServiceManager: %p done instantiate", sm.get()); in main()
|
/frameworks/av/media/utils/fuzzers/ |
D | SchedulingPolicyServiceFuzz.cpp | 35 const sp<IServiceManager> sm(defaultServiceManager()); in getBatteryService() local 36 if (sm != nullptr) { in getBatteryService() 38 sp<IBinder> obj = sm->checkService(name); in getBatteryService()
|
/frameworks/av/media/audioserver/ |
D | main_audioserver.cpp | 124 sp<IServiceManager> sm = defaultServiceManager(); in main() local 125 sp<IBinder> binder = sm->getService(String16("media.log")); in main() 180 sp<IServiceManager> sm = defaultServiceManager(); in main() local 181 sm->addService(String16(IAudioFlinger::DEFAULT_SERVICE_NAME), afAdapter, in main() 183 sm->addService(String16(AudioPolicyService::getServiceName()), aps, in main()
|
/frameworks/base/cmds/sm/ |
D | sm.sh | 2 export CLASSPATH=/system/framework/sm.jar 3 exec app_process /system/bin com.android.commands.sm.Sm "$@"
|
/frameworks/native/cmds/cmd/ |
D | cmd.cpp | 174 sp<IServiceManager> sm = defaultServiceManager(); in cmdMain() local 178 if (sm == nullptr) { in cmdMain() 192 Vector<String16> services = sm->listServices(); in cmdMain() 197 sp<IBinder> service = sm->checkService(services[i]); in cmdMain() 216 service = sm->waitForService(serviceName); in cmdMain() 218 service = sm->checkService(serviceName); in cmdMain()
|
/frameworks/av/drm/drmserver/ |
D | main_drmserver.cpp | 34 sp<IServiceManager> sm = defaultServiceManager(); in main() local 35 ALOGV("ServiceManager: %p", sm.get()); in main()
|
/frameworks/native/services/vr/virtual_touchpad/ |
D | VirtualTouchpadClient.cpp | 24 sp<IServiceManager> sm = defaultServiceManager(); in Attach() local 25 if (sm == nullptr) { in Attach() 31 sm->getService(IVirtualTouchpadService::SERVICE_NAME())); in Attach()
|
/frameworks/av/media/libmediaplayerservice/ |
D | ActivityManager.cpp | 31 sp<IServiceManager> sm = defaultServiceManager(); in openContentProviderFile() local 32 sp<IBinder> binder = sm->getService(String16("activity")); in openContentProviderFile()
|