/frameworks/base/tools/orientationplot/ |
D | orientationplot.py | 40 def __init__(self, stream): argument 42 self.stream = stream 43 self.buffer = '' 44 self.pos = 0 46 def readline(self): argument 48 index = self.buffer.find('\n', self.pos) 50 result = self.buffer[self.pos:index] 51 self.pos = index + 1 54 self.buffer = self.buffer[self.pos:] 55 self.pos = 0 [all …]
|
/frameworks/base/tools/velocityplot/ |
D | velocityplot.py | 44 def __init__(self, stream): argument 46 self.stream = stream 47 self.buffer = '' 48 self.pos = 0 50 def readline(self): argument 52 index = self.buffer.find('\n', self.pos) 54 result = self.buffer[self.pos:index] 55 self.pos = index + 1 58 self.buffer = self.buffer[self.pos:] 59 self.pos = 0 [all …]
|
/frameworks/compile/libbcc/gdb_plugin/ |
D | android-commands.py | 70 def __init__(self): argument 71 self.name = None 72 self.intent = None 74 def get_name(self): argument 75 return self.name 77 def get_intent(self): argument 78 return self.intent 80 def get_data_directory(self): argument 81 return self.data_directory 83 def get_gdbserver_path(self): argument [all …]
|
/frameworks/native/opengl/tools/glgen2/registry/ |
D | reg.py | 100 def __init__(self, elem): argument 101 self.required = False 102 self.declared = False 103 self.elem = elem 104 def resetState(self): argument 105 self.required = False 106 self.declared = False 112 def __init__(self, elem): argument 113 BaseInfo.__init__(self, elem) 119 def __init__(self, elem): argument [all …]
|
/frameworks/base/media/mca/ |
D | structgen.py | 99 def __init__(self, lineno, message): argument 100 self.lineno = lineno 101 self.message = message 103 def __str__(self): argument 104 return "On line %d: %s" % (self.lineno, self.message) 107 def __init__(self, name, structname, jclassname, package, javatype, ctype, jtype, defval): argument 108 self.name = name 109 self.structname = structname 110 self.jclassname = jclassname 111 self.package = package [all …]
|
/frameworks/base/core/tests/overlaytests/ |
D | testrunner.py | 51 def _print(self): argument 52 s = '\r' + self.text + '[' + '.' * self.i + ' ' * (4 - self.i) + ']' 55 self.i = (self.i + 1) % 5 57 def __init__(self, cond_var, text): argument 58 threading.Thread.__init__(self) 59 self.text = text 60 self.setDaemon(True) 61 self.cond_var = cond_var 62 self.running = False 63 self.i = 0 [all …]
|
/frameworks/native/opengl/libs/GLES_trace/tools/ |
D | genapi.py | 43 def __init__(self, name): argument 44 self.name = name 46 def __str__(self): argument 47 if self.name == "pointer": # pointers map to the INT64 DataType 49 return self.name.upper() 51 def getProtobufCall(self): argument 52 if self.name == "void": 54 elif self.name == "char" or self.name == "byte" \ 55 or self.name == "enum": 57 elif self.name == "pointer": [all …]
|
D | testgenapi.py | 25 def test_parsing(self): argument 33 self.assertEqual(api.func, "glCopyTexImage2D") 34 self.assertEqual(api.callsite, 'glCopyTexImage2D(target, level, internalformat, ' \ 36 self.assertEqual(api.ret, 'void') 37 self.assertEqual(api.arglist, 'GLenum target, GLint level, ' \ 41 def test_num_functions_parsed(self): argument 47 self.assertEqual(len(gl2_apis), 142) 48 self.assertEqual(len(gl2ext_apis), 121) 49 self.assertEqual(len(gl_apis), 145) 50 self.assertEqual(len(glext_apis), 140) [all …]
|
/frameworks/wilhelm/include/SLES/ |
D | OpenSLES.h | 403 SLObjectItf self, 407 SLObjectItf self, 411 SLObjectItf self, 415 SLObjectItf self, 420 SLObjectItf self, 425 SLObjectItf self 428 SLObjectItf self 431 SLObjectItf self, 436 SLObjectItf self, 441 SLObjectItf self, [all …]
|
D | OpenSLES_Android.h | 70 SLresult (*CreateEffect) (SLAndroidEffectItf self, 73 SLresult (*ReleaseEffect) (SLAndroidEffectItf self, 76 SLresult (*SetEnabled) (SLAndroidEffectItf self, 80 SLresult (*IsEnabled) (SLAndroidEffectItf self, 84 SLresult (*SendCommand) (SLAndroidEffectItf self, 107 SLAndroidEffectSendItf self, 113 SLAndroidEffectSendItf self, 118 SLAndroidEffectSendItf self, 122 SLAndroidEffectSendItf self, 126 SLAndroidEffectSendItf self, [all …]
|
/frameworks/wilhelm/include/OMXAL/ |
D | OpenMAXAL.h | 166 XAObjectItf self, 170 XAObjectItf self, 174 XAObjectItf self, 178 XAObjectItf self, 183 XAObjectItf self, 188 XAObjectItf self 191 XAObjectItf self 194 XAObjectItf self, 199 XAObjectItf self, 204 XAObjectItf self, [all …]
|
/frameworks/support/v4/kitkat/android/support/v4/provider/ |
D | DocumentsContractApi19.java | 32 public static boolean isDocumentUri(Context context, Uri self) { in isDocumentUri() argument 33 return DocumentsContract.isDocumentUri(context, self); in isDocumentUri() 36 public static String getName(Context context, Uri self) { in getName() argument 37 return queryForString(context, self, DocumentsContract.Document.COLUMN_DISPLAY_NAME, null); in getName() 40 private static String getRawType(Context context, Uri self) { in getRawType() argument 41 return queryForString(context, self, DocumentsContract.Document.COLUMN_MIME_TYPE, null); in getRawType() 44 public static String getType(Context context, Uri self) { in getType() argument 45 final String rawType = getRawType(context, self); in getType() 53 public static boolean isDirectory(Context context, Uri self) { in isDirectory() argument 54 return DocumentsContract.Document.MIME_TYPE_DIR.equals(getRawType(context, self)); in isDirectory() [all …]
|
/frameworks/ex/common/tools/ |
D | make-iana-tld-pattern.py | 30 def __init__(self, baseLetter): argument 31 self.base=baseLetter 32 self.words=[] 33 self.letters=[] 35 def dump(self, isWebUrl=False, isFirst=False, isLast=False): argument 36 if (len(self.words) == 0) and (len(self.letters) == 0): 39 self.words.sort() 40 self.letters.sort() 52 if len(self.words) != 0: 59 for word in self.words: [all …]
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 105 def __init__(self): argument 106 reg.OutputGenerator.__init__(self, sys.stderr, sys.stderr, None) 108 def genCmd(self, cmd, name): argument 109 reg.OutputGenerator.genCmd(self, cmd, name) 122 file=self.outFile) 129 def __init__(self): argument 130 reg.OutputGenerator.__init__(self, sys.stderr, sys.stderr, None) 131 self.cmds = [] 132 self.enums = collections.OrderedDict() 134 def genCmd(self, cmd, name): argument [all …]
|
/frameworks/wilhelm/src/itf/ |
D | I3DSource.c | 22 static SLresult I3DSource_SetHeadRelative(SL3DSourceItf self, SLboolean headRelative) in I3DSource_SetHeadRelative() argument 26 I3DSource *thiz = (I3DSource *) self; in I3DSource_SetHeadRelative() 36 static SLresult I3DSource_GetHeadRelative(SL3DSourceItf self, SLboolean *pHeadRelative) in I3DSource_GetHeadRelative() argument 43 I3DSource *thiz = (I3DSource *) self; in I3DSource_GetHeadRelative() 55 static SLresult I3DSource_SetRolloffDistances(SL3DSourceItf self, in I3DSource_SetRolloffDistances() argument 64 I3DSource *thiz = (I3DSource *) self; in I3DSource_SetRolloffDistances() 76 static SLresult I3DSource_GetRolloffDistances(SL3DSourceItf self, in I3DSource_GetRolloffDistances() argument 84 I3DSource *thiz = (I3DSource *) self; interface_lock_shared(thiz); in I3DSource_GetRolloffDistances() 97 static SLresult I3DSource_SetRolloffMaxDistanceMute(SL3DSourceItf self, SLboolean mute) in I3DSource_SetRolloffMaxDistanceMute() argument 101 I3DSource *thiz = (I3DSource *) self; in I3DSource_SetRolloffMaxDistanceMute() [all …]
|
D | IRecord.c | 22 static SLresult IRecord_SetRecordState(SLRecordItf self, SLuint32 state) in IRecord_SetRecordState() argument 31 IRecord *thiz = (IRecord *) self; in IRecord_SetRecordState() 50 static SLresult IRecord_GetRecordState(SLRecordItf self, SLuint32 *pState) in IRecord_GetRecordState() argument 54 IRecord *thiz = (IRecord *) self; in IRecord_GetRecordState() 69 static SLresult IRecord_SetDurationLimit(SLRecordItf self, SLmillisecond msec) in IRecord_SetDurationLimit() argument 73 IRecord *thiz = (IRecord *) self; in IRecord_SetDurationLimit() 87 static SLresult IRecord_GetPosition(SLRecordItf self, SLmillisecond *pMsec) in IRecord_GetPosition() argument 94 IRecord *thiz = (IRecord *) self; in IRecord_GetPosition() 116 static SLresult IRecord_RegisterCallback(SLRecordItf self, slRecordCallback callback, in IRecord_RegisterCallback() argument 121 IRecord *thiz = (IRecord *) self; in IRecord_RegisterCallback() [all …]
|
D | IEnvironmentalReverb.c | 41 static SLresult IEnvironmentalReverb_SetRoomLevel(SLEnvironmentalReverbItf self, SLmillibel room) in IEnvironmentalReverb_SetRoomLevel() argument 50 IEnvironmentalReverb *thiz = (IEnvironmentalReverb *) self; in IEnvironmentalReverb_SetRoomLevel() 71 static SLresult IEnvironmentalReverb_GetRoomLevel(SLEnvironmentalReverbItf self, SLmillibel *pRoom) in IEnvironmentalReverb_GetRoomLevel() argument 78 IEnvironmentalReverb *thiz = (IEnvironmentalReverb *) self; in IEnvironmentalReverb_GetRoomLevel() 102 SLEnvironmentalReverbItf self, SLmillibel roomHF) in IEnvironmentalReverb_SetRoomHFLevel() argument 111 IEnvironmentalReverb *thiz = (IEnvironmentalReverb *) self; in IEnvironmentalReverb_SetRoomHFLevel() 133 SLEnvironmentalReverbItf self, SLmillibel *pRoomHF) in IEnvironmentalReverb_GetRoomHFLevel() argument 140 IEnvironmentalReverb *thiz = (IEnvironmentalReverb *) self; in IEnvironmentalReverb_GetRoomHFLevel() 163 SLEnvironmentalReverbItf self, SLmillisecond decayTime) in IEnvironmentalReverb_SetDecayTime() argument 170 IEnvironmentalReverb *thiz = (IEnvironmentalReverb *) self; in IEnvironmentalReverb_SetDecayTime() [all …]
|
D | IVolume.c | 22 static SLresult IVolume_SetVolumeLevel(SLVolumeItf self, SLmillibel level) in IVolume_SetVolumeLevel() argument 29 IVolume *thiz = (IVolume *) self; in IVolume_SetVolumeLevel() 45 static SLresult IVolume_GetVolumeLevel(SLVolumeItf self, SLmillibel *pLevel) in IVolume_GetVolumeLevel() argument 52 IVolume *thiz = (IVolume *) self; in IVolume_GetVolumeLevel() 64 static SLresult IVolume_GetMaxVolumeLevel(SLVolumeItf self, SLmillibel *pMaxLevel) in IVolume_GetMaxVolumeLevel() argument 79 static SLresult IVolume_SetMute(SLVolumeItf self, SLboolean mute) in IVolume_SetMute() argument 83 IVolume *thiz = (IVolume *) self; in IVolume_SetMute() 99 static SLresult IVolume_GetMute(SLVolumeItf self, SLboolean *pMute) in IVolume_GetMute() argument 106 IVolume *thiz = (IVolume *) self; in IVolume_GetMute() 118 static SLresult IVolume_EnableStereoPosition(SLVolumeItf self, SLboolean enable) in IVolume_EnableStereoPosition() argument [all …]
|
D | IMIDIMuteSolo.c | 22 static SLresult IMIDIMuteSolo_SetChannelMute(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_SetChannelMute() argument 30 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; in IMIDIMuteSolo_SetChannelMute() 45 static SLresult IMIDIMuteSolo_GetChannelMute(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_GetChannelMute() argument 53 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; in IMIDIMuteSolo_GetChannelMute() 65 static SLresult IMIDIMuteSolo_SetChannelSolo(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_SetChannelSolo() argument 73 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; in IMIDIMuteSolo_SetChannelSolo() 88 static SLresult IMIDIMuteSolo_GetChannelSolo(SLMIDIMuteSoloItf self, SLuint8 channel, in IMIDIMuteSolo_GetChannelSolo() argument 96 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; in IMIDIMuteSolo_GetChannelSolo() 108 static SLresult IMIDIMuteSolo_GetTrackCount(SLMIDIMuteSoloItf self, SLuint16 *pCount) in IMIDIMuteSolo_GetTrackCount() argument 115 IMIDIMuteSolo *thiz = (IMIDIMuteSolo *) self; in IMIDIMuteSolo_GetTrackCount() [all …]
|
D | IAndroidEffect.cpp | 23 static SLresult IAndroidEffect_CreateEffect(SLAndroidEffectItf self, in IAndroidEffect_CreateEffect() argument 28 IAndroidEffect *thiz = (IAndroidEffect *) self; in IAndroidEffect_CreateEffect() 49 static SLresult IAndroidEffect_ReleaseEffect(SLAndroidEffectItf self, in IAndroidEffect_ReleaseEffect() argument 54 IAndroidEffect *thiz = (IAndroidEffect *) self; in IAndroidEffect_ReleaseEffect() 61 static SLresult IAndroidEffect_SetEnabled(SLAndroidEffectItf self, in IAndroidEffect_SetEnabled() argument 66 IAndroidEffect *thiz = (IAndroidEffect *) self; in IAndroidEffect_SetEnabled() 73 static SLresult IAndroidEffect_IsEnabled(SLAndroidEffectItf self, in IAndroidEffect_IsEnabled() argument 78 IAndroidEffect *thiz = (IAndroidEffect *) self; in IAndroidEffect_IsEnabled() 85 static SLresult IAndroidEffect_SendCommand(SLAndroidEffectItf self, in IAndroidEffect_SendCommand() argument 91 IAndroidEffect *thiz = (IAndroidEffect *) self; in IAndroidEffect_SendCommand() [all …]
|
D | IPrefetchStatus.c | 22 static SLresult IPrefetchStatus_GetPrefetchStatus(SLPrefetchStatusItf self, SLuint32 *pStatus) in IPrefetchStatus_GetPrefetchStatus() argument 29 IPrefetchStatus *thiz = (IPrefetchStatus *) self; in IPrefetchStatus_GetPrefetchStatus() 41 static SLresult IPrefetchStatus_GetFillLevel(SLPrefetchStatusItf self, SLpermille *pLevel) in IPrefetchStatus_GetFillLevel() argument 48 IPrefetchStatus *thiz = (IPrefetchStatus *) self; in IPrefetchStatus_GetFillLevel() 60 static SLresult IPrefetchStatus_RegisterCallback(SLPrefetchStatusItf self, in IPrefetchStatus_RegisterCallback() argument 65 IPrefetchStatus *thiz = (IPrefetchStatus *) self; in IPrefetchStatus_RegisterCallback() 76 static SLresult IPrefetchStatus_SetCallbackEventsMask(SLPrefetchStatusItf self, SLuint32 eventFlags) in IPrefetchStatus_SetCallbackEventsMask() argument 84 IPrefetchStatus *thiz = (IPrefetchStatus *) self; in IPrefetchStatus_SetCallbackEventsMask() 96 static SLresult IPrefetchStatus_GetCallbackEventsMask(SLPrefetchStatusItf self, in IPrefetchStatus_GetCallbackEventsMask() argument 104 IPrefetchStatus *thiz = (IPrefetchStatus *) self; in IPrefetchStatus_GetCallbackEventsMask() [all …]
|
D | IVibra.c | 22 static SLresult IVibra_Vibrate(SLVibraItf self, SLboolean vibrate) in IVibra_Vibrate() argument 26 IVibra *thiz = (IVibra *) self; in IVibra_Vibrate() 36 static SLresult IVibra_IsVibrating(SLVibraItf self, SLboolean *pVibrating) in IVibra_IsVibrating() argument 43 IVibra *thiz = (IVibra *) self; in IVibra_IsVibrating() 55 static SLresult IVibra_SetFrequency(SLVibraItf self, SLmilliHertz frequency) in IVibra_SetFrequency() argument 65 IVibra *thiz = (IVibra *) self; in IVibra_SetFrequency() 76 static SLresult IVibra_GetFrequency(SLVibraItf self, SLmilliHertz *pFrequency) in IVibra_GetFrequency() argument 83 IVibra *thiz = (IVibra *) self; in IVibra_GetFrequency() 95 static SLresult IVibra_SetIntensity(SLVibraItf self, SLpermille intensity) in IVibra_SetIntensity() argument 105 IVibra *thiz = (IVibra *) self; in IVibra_SetIntensity() [all …]
|
D | IPlay.c | 22 static SLresult IPlay_SetPlayState(SLPlayItf self, SLuint32 state) in IPlay_SetPlayState() argument 31 IPlay *thiz = (IPlay *) self; in IPlay_SetPlayState() 117 static SLresult IPlay_GetPlayState(SLPlayItf self, SLuint32 *pState) in IPlay_GetPlayState() argument 124 IPlay *thiz = (IPlay *) self; in IPlay_GetPlayState() 152 static SLresult IPlay_GetDuration(SLPlayItf self, SLmillisecond *pMsec) in IPlay_GetDuration() argument 160 IPlay *thiz = (IPlay *) self; in IPlay_GetDuration() 195 static SLresult IPlay_GetPosition(SLPlayItf self, SLmillisecond *pMsec) in IPlay_GetPosition() argument 202 IPlay *thiz = (IPlay *) self; in IPlay_GetPosition() 240 static SLresult IPlay_RegisterCallback(SLPlayItf self, slPlayCallback callback, void *pContext) in IPlay_RegisterCallback() argument 244 IPlay *thiz = (IPlay *) self; in IPlay_RegisterCallback() [all …]
|
/frameworks/wilhelm/src/ |
D | sles_allinclusive.h | 114 typedef void (*VoidHook)(void *self); 116 typedef SLresult (*AsyncHook)(void *self, SLboolean async); 117 typedef bool (*BoolHook)(void *self); 118 typedef predestroy_t (*PreDestroyHook)(void *self); 306 extern void IObject_Destroy(SLObjectItf self); 335 extern predestroy_t C3DGroup_PreDestroy(void *self); 337 extern SLresult CAudioPlayer_Realize(void *self, SLboolean async); 338 extern SLresult CAudioPlayer_Resume(void *self, SLboolean async); 339 extern void CAudioPlayer_Destroy(void *self); 340 extern predestroy_t CAudioPlayer_PreDestroy(void *self); [all …]
|
/frameworks/native/libs/ui/ |
D | FramebufferNativeWindow.cpp | 238 FramebufferNativeWindow* self = getSelf(window); in dequeueBuffer() local 239 Mutex::Autolock _l(self->mutex); in dequeueBuffer() 240 framebuffer_device_t* fb = self->fbDev; in dequeueBuffer() 242 int index = self->mBufferHead++; in dequeueBuffer() 243 if (self->mBufferHead >= self->mNumBuffers) in dequeueBuffer() 244 self->mBufferHead = 0; in dequeueBuffer() 247 while (self->mNumFreeBuffers < 2) { in dequeueBuffer() 248 self->mCondition.wait(self->mutex); in dequeueBuffer() 250 ALOG_ASSERT(self->buffers[index] != self->front); in dequeueBuffer() 253 self->mNumFreeBuffers--; in dequeueBuffer() [all …]
|