Home
last modified time | relevance | path

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

12

/frameworks/av/media/libnbaio/
DMonoPipe.cpp135 uint32_t ns; in write() local
141 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
144 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
147 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
150 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
153 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
156 ns = written * (1750000000 / Format_sampleRate(mFormat)); in write()
159 ns = count * (1350000000 / Format_sampleRate(mFormat)); in write()
161 if (ns > 999999999) { in write()
162 ns = 999999999; in write()
[all …]
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp76 bool ThreadCpuUsage::sampleAndEnable(double& ns) in sampleAndEnable() argument
82 return sample(ns); in sampleAndEnable()
85 ns = (double) mAccumulator; in sampleAndEnable()
87 ALOGV("sampleAndEnable %.0f", ns); in sampleAndEnable()
91 ns = 0.0; in sampleAndEnable()
97 bool ThreadCpuUsage::sample(double &ns) in sample() argument
106 ns = 0.0; in sample()
117 ns = (double) mAccumulator; in sample()
118 ALOGV("sample %.0f", ns); in sample()
123 ns = 0.0; in sample()
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
DStackOverflowXmlParser.java33 private static final String ns = null; field in StackOverflowXmlParser
52 parser.require(XmlPullParser.START_TAG, ns, "feed"); in readFeed()
86 parser.require(XmlPullParser.START_TAG, ns, "entry"); in readEntry()
110 parser.require(XmlPullParser.START_TAG, ns, "title"); in readTitle()
112 parser.require(XmlPullParser.END_TAG, ns, "title"); in readTitle()
119 parser.require(XmlPullParser.START_TAG, ns, "link"); in readLink()
128 parser.require(XmlPullParser.END_TAG, ns, "link"); in readLink()
134 parser.require(XmlPullParser.START_TAG, ns, "summary"); in readSummary()
136 parser.require(XmlPullParser.END_TAG, ns, "summary"); in readSummary()
/frameworks/base/media/java/android/media/audiofx/
DNoiseSuppressor.java64 NoiseSuppressor ns = null; in create() local
66 ns = new NoiseSuppressor(audioSession); in create()
68 Log.w(TAG, "not implemented on this device "+ns); in create()
74 return ns; in create()
/frameworks/base/tools/aapt/
DXMLNode.cpp228 const uint16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
229 if (ns == NULL) { in parseStyledString()
230 ns = (const uint16_t*)"\0\0"; in parseStyledString()
233 const String8 nspace(String16(ns, nslen)); in parseStyledString()
285 const uint16_t* ns = inXml->getElementNamespace(&nslen); in parseStyledString() local
286 if (ns == NULL) { in parseStyledString()
287 ns = (const uint16_t*)"\0\0"; in parseStyledString()
290 const String8 nspace(String16(ns, nslen)); in parseStyledString()
397 const uint16_t* ns) in build_namespace() argument
400 if (ns != NULL) { in build_namespace()
[all …]
DXMLNode.h48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() argument
49 return new XMLNode(filename, ns, name, false); in newElement()
86 String16 ns; member
97 const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
99 attribute_entry* editAttribute(const String16& ns, const String16& name);
116 status_t addAttribute(const String16& ns, const String16& name,
/frameworks/av/media/libmedia/
DAudioRecord.cpp816 nsecs_t ns = NS_WHENEVER; in processAudioBuffer() local
820 ns = ((minFrames * 1000000000LL) / mSampleRate) + kFudgeNs; in processAudioBuffer()
825 return ns; in processAudioBuffer()
830 if (ns != NS_WHENEVER) { in processAudioBuffer()
831 timeout.tv_sec = ns / 1000000000LL; in processAudioBuffer()
832 timeout.tv_nsec = ns % 1000000000LL; in processAudioBuffer()
862 if (ns < 0 || myns < ns) { in processAudioBuffer()
863 ns = myns; in processAudioBuffer()
865 return ns; in processAudioBuffer()
996 nsecs_t ns = mReceiver.processAudioBuffer(this); in threadLoop() local
[all …]
DAudioTrack.cpp1560 nsecs_t ns = NS_WHENEVER; in processAudioBuffer() local
1564 ns = ((minFrames * 1000000000LL) / sampleRate) + kFudgeNs; in processAudioBuffer()
1569 return ns; in processAudioBuffer()
1574 if (ns != NS_WHENEVER) { in processAudioBuffer()
1575 timeout.tv_sec = ns / 1000000000LL; in processAudioBuffer()
1576 timeout.tv_nsec = ns % 1000000000LL; in processAudioBuffer()
1606 if (ns < 0 || myns < ns) { in processAudioBuffer()
1607 ns = myns; in processAudioBuffer()
1609 return ns; in processAudioBuffer()
1864 nsecs_t ns = mReceiver.processAudioBuffer(this); in threadLoop() local
[all …]
/frameworks/native/services/sensorservice/
DRotationVectorSensor.cpp59 status_t RotationVectorSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
60 return mSensorFusion.setDelay(ident, ns); in setDelay()
108 status_t GyroDriftSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
109 return mSensorFusion.setDelay(ident, ns); in setDelay()
DCorrectedGyroSensor.cpp64 status_t CorrectedGyroSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
65 mSensorDevice.setDelay(ident, mGyro.getHandle(), ns); in setDelay()
66 return mSensorFusion.setDelay(ident, ns); in setDelay()
DRotationVectorSensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
58 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DSensorInterface.cpp63 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
64 return mSensorDevice.setDelay(ident, handle, ns); in setDelay()
DSensorInterface.h40 virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0;
78 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DOrientationSensor.cpp72 status_t OrientationSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
73 return mSensorFusion.setDelay(ident, ns); in setDelay()
DLinearAccelerationSensor.cpp57 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
58 return mGravitySensor.setDelay(ident, handle, ns); in setDelay()
DGravitySensor.cpp73 status_t GravitySensor::setDelay(void* ident, int handle, int64_t ns) { in setDelay() argument
74 return mSensorFusion.setDelay(ident, ns); in setDelay()
DOrientationSensor.h43 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DLinearAccelerationSensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
DGravitySensor.h44 virtual status_t setDelay(void* ident, int handle, int64_t ns);
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java323 NsdServiceInfo ns = getNsdService(message.arg2); in handleMessage() local
332 ((DiscoveryListener) listener).onStartDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
346 ((DiscoveryListener) listener).onStopDiscoveryFailed(getNsdServiceInfoType(ns), in handleMessage()
350 ((DiscoveryListener) listener).onDiscoveryStopped(getNsdServiceInfoType(ns)); in handleMessage()
353 ((RegistrationListener) listener).onRegistrationFailed(ns, message.arg1); in handleMessage()
362 ((RegistrationListener) listener).onUnregistrationFailed(ns, message.arg1); in handleMessage()
365 ((RegistrationListener) listener).onServiceUnregistered(ns); in handleMessage()
368 ((ResolveListener) listener).onResolveFailed(ns, message.arg1); in handleMessage()
/frameworks/native/libs/gui/
DISensorEventConnection.cpp70 virtual status_t setEventRate(int handle, nsecs_t ns) in setEventRate() argument
75 data.writeInt64(ns); in setEventRate()
117 int ns = data.readInt64(); in onTransact() local
118 status_t result = setEventRate(handle, ns); in onTransact()
DSensorEventQueue.cpp143 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const { in setEventRate()
144 return mSensorEventConnection->setEventRate(sensor->getHandle(), ns); in setEventRate()
/frameworks/av/include/cpustats/
DThreadCpuUsage.h90 bool sampleAndEnable(double& ns);
102 bool sample(double& ns);
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp256 jstring ns, jstring name) in android_content_XmlBlock_nativeGetAttributeIndex() argument
266 if (ns) { in android_content_XmlBlock_nativeGetAttributeIndex()
267 ns16 = env->GetStringChars(ns, NULL); in android_content_XmlBlock_nativeGetAttributeIndex()
268 nsLen = env->GetStringLength(ns); in android_content_XmlBlock_nativeGetAttributeIndex()
276 if (ns) { in android_content_XmlBlock_nativeGetAttributeIndex()
277 env->ReleaseStringChars(ns, ns16); in android_content_XmlBlock_nativeGetAttributeIndex()
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java58 String ns = mParser.getAttributeNamespace(index); in getAttributeNameResource() local
60 if (BridgeConstants.NS_RESOURCES.equals(ns)) { in getAttributeNameResource()
71 if (mContext.getProjectCallback().getNamespace().equals(ns)) { in getAttributeNameResource()

12