/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 | 24 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertexBufferCount() local 25 *numVtx = sm->mHal.state.vertexBuffersCount; in rsaMeshGetVertexBufferCount() 29 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndexCount() local 30 *numIdx = sm->mHal.state.primitivesCount; in rsaMeshGetIndexCount() 34 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertices() local 35 rsAssert(vtxDataCount == sm->mHal.state.vertexBuffersCount); in rsaMeshGetVertices() 38 vtxData[ct] = sm->mHal.state.vertexBuffers[ct]; in rsaMeshGetVertices() 39 sm->mHal.state.vertexBuffers[ct]->incUserRef(); in rsaMeshGetVertices() 44 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndices() local 45 rsAssert(idxDataCount == sm->mHal.state.primitivesCount); in rsaMeshGetIndices() [all …]
|
D | rsScriptC_LibGL.cpp | 151 void rsrDrawPath(Context *rsc, Path *sm) { in rsrDrawPath() argument 155 void rsrDrawMesh(Context *rsc, Mesh *sm) { in rsrDrawMesh() argument 156 CHECK_OBJ(sm); in rsrDrawMesh() 160 sm->render(rsc); in rsrDrawMesh() 163 void rsrDrawMeshPrimitive(Context *rsc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument 164 CHECK_OBJ(sm); in rsrDrawMeshPrimitive() 168 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive() 171 void rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument 173 CHECK_OBJ(sm); in rsrDrawMeshPrimitiveRange() 177 sm->renderPrimitiveRange(rsc, primIndex, start, len); in rsrDrawMeshPrimitiveRange() [all …]
|
D | rsMesh.cpp | 274 Mesh *sm = new Mesh(rsc, vtxCount, idxCount); in rsi_MeshCreate() local 275 sm->incUserRef(); in rsi_MeshCreate() 278 sm->setVertexBuffer((Allocation*)vtx[i], i); in rsi_MeshCreate() 282 sm->setPrimitive((Allocation*)idx[i], (RsPrimitive)primType[i], i); in rsi_MeshCreate() 285 sm->init(); in rsi_MeshCreate() 287 return sm; in rsi_MeshCreate()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ListContextMenu.java | 103 …SubMenu sm = menu.addSubMenu(0, 0, 0, "The 2nd item, a sub menu").setIcon(R.drawable.black_square_… in onCreateOptionsMenu() local 104 item = sm.getItem(); in onCreateOptionsMenu() 106 sm.add(1, 0, 0, "Subitem 1"); in onCreateOptionsMenu() 107 sm.add(1, 0, 0, "Subitem 2"); in onCreateOptionsMenu() 108 sm.add(1, 0, 0, "Subitem 3"); in onCreateOptionsMenu() 109 sm.setGroupCheckable(1, true, true); in onCreateOptionsMenu() 117 sm = menu.addSubMenu(0, 0, 0, "Item 10 SM"); in onCreateOptionsMenu() 118 sm.add(0, 0, 0, "Subitem 1"); in onCreateOptionsMenu() 119 sm.add(0, 0, 0, "Subitem 2"); in onCreateOptionsMenu() 120 sm.add(0, 0, 0, "Subitem 3"); in onCreateOptionsMenu() [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() 1519 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("smUnhandledMessage"); in testStateMachineUnhandledMessage() local 1520 sm.start(); in testStateMachineUnhandledMessage() 1521 if (sm.isDbg()) tlog("testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage() 1523 synchronized (sm) { in testStateMachineUnhandledMessage() 1526 sm.sendMessage(i); in testStateMachineUnhandledMessage() 1531 sm.wait(); in testStateMachineUnhandledMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | IPv6TetheringCoordinator.java | 93 for (TetherInterfaceStateMachine sm : mNotifyList) { in stopIPv6TetheringOnAllInterfaces() 94 stopIPv6TetheringOn(sm); in stopIPv6TetheringOnAllInterfaces() 118 for (TetherInterfaceStateMachine sm : mNotifyList) { in updateIPv6TetheringInterfaces() 119 final LinkProperties lp = getInterfaceIPv6LinkProperties(sm); in updateIPv6TetheringInterfaces() 120 sm.sendMessage(TetherInterfaceStateMachine.CMD_IPV6_TETHER_UPDATE, 0, 0, lp); in updateIPv6TetheringInterfaces() 125 private LinkProperties getInterfaceIPv6LinkProperties(TetherInterfaceStateMachine sm) { in getInterfaceIPv6LinkProperties() argument 128 if (sm.interfaceType() == ConnectivityManager.TETHERING_BLUETOOTH) { in getInterfaceIPv6LinkProperties() 139 if (currentActive != null && currentActive == sm) { in getInterfaceIPv6LinkProperties() 276 private static void stopIPv6TetheringOn(TetherInterfaceStateMachine sm) { in stopIPv6TetheringOn() argument 277 sm.sendMessage(TetherInterfaceStateMachine.CMD_IPV6_TETHER_UPDATE, 0, 0, null); in stopIPv6TetheringOn()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | AsyncChannel.java | 783 SyncMessenger sm; in obtain() local 786 sm = new SyncMessenger(); in obtain() 787 sm.mHandlerThread = new HandlerThread("SyncHandler-" + sCount++); in obtain() 788 sm.mHandlerThread.start(); in obtain() 789 sm.mHandler = sm.new SyncHandler(sm.mHandlerThread.getLooper()); in obtain() 790 sm.mMessenger = new Messenger(sm.mHandler); in obtain() 792 sm = sStack.pop(); in obtain() 795 return sm; in obtain() 814 SyncMessenger sm = SyncMessenger.obtain(); in sendMessageSynchronously() local 817 msg.replyTo = sm.mMessenger; in sendMessageSynchronously() [all …]
|
/frameworks/native/cmds/cmd/ |
D | cmd.cpp | 54 sp<IServiceManager> sm = defaultServiceManager(); in main() local 56 if (sm == NULL) { in main() 68 Vector<String16> services = sm->listServices(); in main() 73 sp<IBinder> service = sm->checkService(services[i]); in main() 86 sp<IBinder> service = sm->checkService(cmd); in main()
|
/frameworks/base/cmds/sm/ |
D | Android.mk | 7 LOCAL_MODULE := sm 11 LOCAL_MODULE := sm 12 LOCAL_SRC_FILES := sm
|
D | sm | 1 # Script to start "sm" on the device, which has a very rudimentary 5 export CLASSPATH=$base/framework/sm.jar 6 exec app_process $base/bin com.android.commands.sm.Sm "$@"
|
/frameworks/native/services/surfaceflinger/ |
D | main_surfaceflinger.cpp | 59 sp<IServiceManager> sm(defaultServiceManager()); in main() local 60 sm->addService(String16(SurfaceFlinger::getServiceName()), flinger, false); in main() 64 sm->addService(String16(GpuService::SERVICE_NAME), gpuservice, false); in main()
|
/frameworks/av/media/audioserver/ |
D | main_audioserver.cpp | 101 sp<IServiceManager> sm = defaultServiceManager(); in main() local 102 sp<IBinder> binder = sm->getService(String16("media.log")); in main() 126 sp<IServiceManager> sm = defaultServiceManager(); in main() local 127 ALOGI("ServiceManager: %p", sm.get()); in main()
|
/frameworks/native/libs/binder/ |
D | ProcessInfoService.cpp | 61 const sp<IServiceManager> sm(defaultServiceManager()); in updateBinderLocked() local 62 if (sm != NULL) { in updateBinderLocked() 64 mProcessInfoService = interface_cast<IProcessInfoService>(sm->checkService(name)); in updateBinderLocked()
|
/frameworks/native/include/binder/ |
D | IServiceManager.h | 71 const sp<IServiceManager> sm = defaultServiceManager(); in getService() local 72 if (sm != NULL) { in getService() 73 *outService = interface_cast<INTERFACE>(sm->getService(name)); in getService()
|
D | BinderService.h | 38 sp<IServiceManager> sm(defaultServiceManager()); 39 return sm->addService(
|
/frameworks/native/cmds/service/ |
D | service.cpp | 71 sp<IServiceManager> sm = defaultServiceManager(); in main() local 73 if (sm == NULL) { in main() 105 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main() 115 Vector<String16> services = sm->listServices(); in main() 119 sp<IBinder> service = sm->checkService(name); in main() 129 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
|
/frameworks/native/cmds/dumpsys/ |
D | dumpsys.cpp | 68 sp<IServiceManager> sm = defaultServiceManager(); in main() local 70 if (sm == NULL) { in main() 150 services = sm->listServices(); in main() 162 sp<IBinder> service = sm->checkService(services[i]); in main() 178 sp<IBinder> service = sm->checkService(service_name); 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/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/camera/cameraserver/ |
D | main_cameraserver.cpp | 30 sp<IServiceManager> sm = defaultServiceManager(); in main() local 31 ALOGI("ServiceManager: %p", sm.get()); in main()
|
/frameworks/native/services/sensorservice/ |
D | BatteryService.cpp | 34 const sp<IServiceManager> sm(defaultServiceManager()); in BatteryService() local 35 if (sm != NULL) { in BatteryService() 37 mBatteryStatService = interface_cast<IBatteryStats>(sm->getService(name)); in BatteryService()
|
/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/av/media/libmediaplayerservice/ |
D | ActivityManager.cpp | 35 sp<IServiceManager> sm = defaultServiceManager(); in openContentProviderFile() local 36 sp<IBinder> am = sm->getService(String16("activity")); in openContentProviderFile()
|
/frameworks/av/media/ndk/ |
D | NdkMediaCrypto.cpp | 40 sp<IServiceManager> sm = defaultServiceManager(); in makeCrypto() local 41 sp<IBinder> binder = sm->getService(String16("media.drm")); in makeCrypto()
|