Home
last modified time | relevance | path

Searched refs:sm (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/
DMountServiceTests.java140 private void mountObb(StorageManager sm, final int resource, final File file, in mountObb() argument
146 sm.mountObb(file.getPath(), null, observer)); in mountObb()
152 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in mountObb()
161 private ObbObserver mountObbWithoutWait(final StorageManager sm, final int resource, in mountObbWithoutWait() argument
166 assertTrue("mountObb call on " + file.getPath() + " should succeed", sm.mountObb(file in mountObbWithoutWait()
172 private void waitForObbActionCompletion(final StorageManager sm, final File file, in waitForObbActionCompletion() argument
176 assertTrue("OBB should be mounted", sm.isObbMounted(file.getPath())); in waitForObbActionCompletion()
186 private String checkMountedPath(final StorageManager sm, final File file) { in checkMountedPath() argument
187 final String mountPath = sm.getMountedObbPath(file.getPath()); in checkMountedPath()
194 private void unmountObb(final StorageManager sm, final File file, int expectedState) { in unmountObb() argument
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DListContextMenu.java103 …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/rs/
DrsScriptC_LibGL.cpp151 void rsrDrawPath(Context *rsc, Path *sm) { in rsrDrawPath() argument
152 CHECK_OBJ(sm); in rsrDrawPath()
156 sm->render(rsc); in rsrDrawPath()
159 void rsrDrawMesh(Context *rsc, Mesh *sm) { in rsrDrawMesh() argument
160 CHECK_OBJ(sm); in rsrDrawMesh()
164 sm->render(rsc); in rsrDrawMesh()
167 void rsrDrawMeshPrimitive(Context *rsc, Mesh *sm, uint32_t primIndex) { in rsrDrawMeshPrimitive() argument
168 CHECK_OBJ(sm); in rsrDrawMeshPrimitive()
172 sm->renderPrimitive(rsc, primIndex); in rsrDrawMeshPrimitive()
175 void rsrDrawMeshPrimitiveRange(Context *rsc, Mesh *sm, uint32_t primIndex, in rsrDrawMeshPrimitiveRange() argument
[all …]
DrsMesh.cpp274 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()
293 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetVertexBufferCount() local
294 *numVtx = sm->mHal.state.vertexBuffersCount; in rsaMeshGetVertexBufferCount()
298 Mesh *sm = static_cast<Mesh *>(mv); in rsaMeshGetIndexCount() local
299 *numIdx = sm->mHal.state.primitivesCount; in rsaMeshGetIndexCount()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DStateMachineTest.java64 private void dumpLogRecs(StateMachine sm) { in dumpLogRecs() argument
65 int size = sm.getLogRecSize(); in dumpLogRecs()
66 tlog("size=" + size + " count=" + sm.getLogRecCount()); in dumpLogRecs()
68 LogRec lr = sm.getLogRec(i); in dumpLogRecs()
1517 StateMachineUnhandledMessage sm = new StateMachineUnhandledMessage("smUnhandledMessage"); in testStateMachineUnhandledMessage() local
1518 sm.start(); in testStateMachineUnhandledMessage()
1519 if (sm.isDbg()) tlog("testStateMachineUnhandledMessage E"); in testStateMachineUnhandledMessage()
1521 synchronized (sm) { in testStateMachineUnhandledMessage()
1524 sm.sendMessage(i); in testStateMachineUnhandledMessage()
1529 sm.wait(); in testStateMachineUnhandledMessage()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java785 SyncMessenger sm; in obtain() local
788 sm = new SyncMessenger(); in obtain()
789 sm.mHandlerThread = new HandlerThread("SyncHandler-" + sCount++); in obtain()
790 sm.mHandlerThread.start(); in obtain()
791 sm.mHandler = sm.new SyncHandler(sm.mHandlerThread.getLooper()); in obtain()
792 sm.mMessenger = new Messenger(sm.mHandler); in obtain()
794 sm = sStack.pop(); in obtain()
797 return sm; in obtain()
816 SyncMessenger sm = SyncMessenger.obtain(); in sendMessageSynchronously() local
819 msg.replyTo = sm.mMessenger; in sendMessageSynchronously()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DTethering.java225 TetherInterfaceSM sm = mIfaces.get(iface); in interfaceStatusChanged()
227 if (sm == null) { in interfaceStatusChanged()
228 sm = new TetherInterfaceSM(iface, mLooper, usb); in interfaceStatusChanged()
229 mIfaces.put(iface, sm); in interfaceStatusChanged()
230 sm.start(); in interfaceStatusChanged()
237 } else if (sm != null) { in interfaceStatusChanged()
238 sm.sendMessage(TetherInterfaceSM.CMD_INTERFACE_DOWN); in interfaceStatusChanged()
297 TetherInterfaceSM sm = mIfaces.get(iface); in interfaceAdded() local
298 if (sm != null) { in interfaceAdded()
302 sm = new TetherInterfaceSM(iface, mLooper, usb); in interfaceAdded()
[all …]
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp32 sp<IServiceManager> sm = defaultServiceManager(); in main() local
34 if (sm == NULL) { in main()
47 services = sm->listServices(); in main()
64 sp<IBinder> service = sm->checkService(services[i]); in main()
76 sp<IBinder> service = sm->checkService(services[i]); in main()
/frameworks/av/media/mediaserver/
Dmain_mediaserver.cpp101 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/cmds/service/
Dservice.cpp71 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/include/binder/
DIServiceManager.h71 const sp<IServiceManager> sm = defaultServiceManager(); in getService() local
72 if (sm != NULL) { in getService()
73 *outService = interface_cast<INTERFACE>(sm->getService(name)); in getService()
DBinderService.h38 sp<IServiceManager> sm(defaultServiceManager());
39 return sm->addService(
/frameworks/av/drm/drmserver/
Dmain_drmserver.cpp32 sp<IServiceManager> sm = defaultServiceManager(); in main() local
33 ALOGV("ServiceManager: %p", sm.get()); in main()
/frameworks/native/services/surfaceflinger/
Dmain_surfaceflinger.cpp51 sp<IServiceManager> sm(defaultServiceManager()); in main() local
52 sm->addService(String16(SurfaceFlinger::getServiceName()), flinger, false); in main()
/frameworks/native/services/sensorservice/
DBatteryService.cpp34 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/libmediaplayerservice/
DActivityManager.cpp35 sp<IServiceManager> sm = defaultServiceManager(); in openContentProviderFile() local
36 sp<IBinder> am = sm->getService(String16("activity")); in openContentProviderFile()
/frameworks/av/media/ndk/
DNdkMediaCrypto.cpp48 sp<IServiceManager> sm = defaultServiceManager(); in makeCrypto() local
51 sm->getService(String16("media.player")); in makeCrypto()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DAndroidCamera2Capabilities.java193 public static SceneMode sceneModeFromInt(int sm) { in sceneModeFromInt() argument
194 switch (sm) { in sceneModeFromInt()
229 if (sm == LegacyVendorTags.CONTROL_SCENE_MODE_HDR) { in sceneModeFromInt()
233 Log.w(TAG, "Unable to convert from API 2 scene mode: " + sm); in sceneModeFromInt()
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
DFountainRS.java47 Mesh sm = smb.create(); in init() local
50 mScript.set_partMesh(sm); in init()
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
DFountainRS.java47 Mesh sm = smb.create(); in init() local
50 mScript.set_partMesh(sm); in init()
/frameworks/av/media/libmedia/
DIMediaDeathNotifier.cpp40 sp<IServiceManager> sm = defaultServiceManager(); in getMediaPlayerService() local
43 binder = sm->getService(String16("media.player")); in getMediaPlayerService()
/frameworks/base/native/android/
Dstorage_manager.cpp88 sp<IServiceManager> sm = defaultServiceManager(); in initialize() local
89 if (sm == NULL) { in initialize()
94 mMountService = interface_cast<IMountService>(sm->getService(String16("mount"))); in initialize()
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
DFountainFboRS.java49 Mesh sm = smb.create(); in init() local
52 mScript.set_partMesh(sm); in init()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java424 public static void setIdentityM(float[] sm, int smOffset) { in setIdentityM() argument
426 sm[smOffset + i] = 0; in setIdentityM()
429 sm[smOffset + i] = 1.0f; in setIdentityM()
446 public static void scaleM(float[] sm, int smOffset, in scaleM() argument
452 sm[ smi] = m[ mi] * x; in scaleM()
453 sm[ 4 + smi] = m[ 4 + mi] * y; in scaleM()
454 sm[ 8 + smi] = m[ 8 + mi] * z; in scaleM()
455 sm[12 + smi] = m[12 + mi]; in scaleM()
/frameworks/base/rs/java/android/renderscript/
DMesh.java810 Mesh sm = smb.create(); in create() local
812 sm.getVertexAllocation(0).copy1DRangeFromUnchecked(0, mMaxIndex, mVtxData); in create()
815 sm.getVertexAllocation(0).syncAll(Allocation.USAGE_SCRIPT); in create()
819 sm.getIndexSetAllocation(0).copy1DRangeFromUnchecked(0, mIndexCount, mIndexData); in create()
821 sm.getIndexSetAllocation(0).syncAll(Allocation.USAGE_SCRIPT); in create()
824 return sm; in create()

12