/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | MountServiceTests.java | 128 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument 134 sm.mountObb(file.getPath(), null, observer)); in mountObb() 140 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb() 149 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, in mountObbWithoutWait() argument 154 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait() 160 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() argument 164 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in waitForObbActionCompletion() 174 private String checkMountedPath(final StorageManager sm, final File file) { in checkMountedPath() argument 175 final String mountPath = sm.getMountedObbPath(file.getPath()); in checkMountedPath() 182 private void unmountObb(final StorageManager sm, final File file, int expectedState) { in unmountObb() argument [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 | 36 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_addService() local 37 status_t status = sm->addService(String16(instance), binder->getBinder()); in AServiceManager_addService() 45 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_checkService() local 46 sp<IBinder> binder = sm->checkService(String16(instance)); in AServiceManager_checkService() 57 sp<IServiceManager> sm = defaultServiceManager(); in AServiceManager_getService() local 58 sp<IBinder> binder = sm->getService(String16(instance)); in AServiceManager_getService()
|
/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/base/core/tests/utiltests/src/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() 1673 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("smUnhandledMessage"); in testStateMachineUnhandledMessage() local 1674 sm.start(); in testStateMachineUnhandledMessage() 1675 if (sm.isDbg()) tlog("testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage() 1677 synchronized (sm) { in testStateMachineUnhandledMessage() 1680 sm.sendMessage(i); in testStateMachineUnhandledMessage() 1685 sm.wait(); in testStateMachineUnhandledMessage() [all …]
|
/frameworks/native/cmds/dumpsys/ |
D | main.cpp | 33 sp<IServiceManager> sm = defaultServiceManager(); in main() local 35 if (sm == nullptr) { in main() 41 Dumpsys dumpsys(sm.get()); in main()
|
/frameworks/base/cmds/sm/ |
D | Android.mk | 7 LOCAL_MODULE := sm 11 LOCAL_MODULE := sm 12 LOCAL_SRC_FILES := sm
|
D | sm | 6 export CLASSPATH=$base/framework/sm.jar 7 exec app_process $base/bin com.android.commands.sm.Sm "$@"
|
/frameworks/base/cmds/statsd/src/ |
D | statscompanion_util.cpp | 29 static const sp <IServiceManager> sm(defaultServiceManager()); in getStatsCompanionService() local 31 if (sm != nullptr) { in getStatsCompanionService() 33 statsCompanion = interface_cast<IStatsCompanionService>(sm->checkService(name)); in getStatsCompanionService()
|
/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/media/audioserver/ |
D | main_audioserver.cpp | 111 sp<IServiceManager> sm = defaultServiceManager(); in main() local 112 sp<IBinder> binder = sm->getService(String16("media.log")); in main() 137 sp<IServiceManager> sm = defaultServiceManager(); in main() local 138 ALOGI("ServiceManager: %p", sm.get()); in main()
|
/frameworks/native/libs/binder/include/binder/ |
D | IServiceManager.h | 88 const sp<IServiceManager> sm = defaultServiceManager(); in getService() local 89 if (sm != nullptr) { in getService() 90 *outService = interface_cast<INTERFACE>(sm->getService(name)); in getService()
|
/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/av/services/mediadrm/ |
D | main_mediadrmserver.cpp | 38 sp<IServiceManager> sm = defaultServiceManager(); in main() local 39 ALOGI("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()
|
/frameworks/native/cmds/service/ |
D | service.cpp | 94 sp<IServiceManager> sm = defaultServiceManager(); in main() local 96 if (sm == nullptr) { in main() 107 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main() 117 Vector<String16> services = sm->listServices(); in main() 121 sp<IBinder> service = sm->checkService(name); in main() 131 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
|
/frameworks/av/camera/cameraserver/ |
D | main_cameraserver.cpp | 34 sp<IServiceManager> sm = defaultServiceManager(); in main() local 35 ALOGI("ServiceManager: %p", sm.get()); in main()
|
/frameworks/av/services/mediaanalytics/ |
D | main_mediametrics.cpp | 41 sp<IServiceManager> sm(defaultServiceManager()); in main() local 42 ALOGI("ServiceManager: %p", sm.get()); in main()
|
/frameworks/native/libs/binder/ |
D | ProcessInfoService.cpp | 95 const sp<IServiceManager> sm(defaultServiceManager()); in updateBinderLocked() local 96 if (sm != nullptr) { in updateBinderLocked() 98 mProcessInfoService = interface_cast<IProcessInfoService>(sm->checkService(name)); in updateBinderLocked()
|
/frameworks/av/media/mediaserver/ |
D | main_mediaserver.cpp | 39 sp<IServiceManager> sm(defaultServiceManager()); in main() local 40 ALOGI("ServiceManager: %p", sm.get()); in main()
|
/frameworks/native/services/gpuservice/ |
D | main_gpuservice.cpp | 30 sp<IServiceManager> sm(defaultServiceManager()); in main() local 31 sm->addService(String16(GpuService::SERVICE_NAME), gpuservice, false); in main()
|