Searched defs:ns (Results 1 - 25 of 43) sorted by relevance

12

/frameworks/base/tools/aapt/
H A DAaptXml.h37 android::String8 getAttribute(const android::ResXMLTree& tree, const char* ns,
53 int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns,
61 inline int32_t getIntegerAttribute(const android::ResXMLTree& tree, const char* ns, argument
63 return getIntegerAttribute(tree, ns, attr, -1, outError);
H A DAaptXml.cpp79 String8 getAttribute(const ResXMLTree& tree, const char* ns, argument
81 ssize_t idx = tree.indexOfAttribute(ns, attr);
139 int32_t getIntegerAttribute(const ResXMLTree& tree, const char* ns, argument
141 ssize_t idx = tree.indexOfAttribute(ns, attr);
H A DXMLNode.h50 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { argument
51 return new XMLNode(filename, ns, name, false);
89 String16 ns; member in struct:XMLNode::attribute_entry
100 const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
101 bool removeAttribute(const String16& ns, const String16& name);
103 attribute_entry* editAttribute(const String16& ns, const String16& name);
120 status_t addAttribute(const String16& ns, const String16& name,
/frameworks/base/core/java/android/net/
H A DMatchAllNetworkSpecifier.java32 * Utility method which verifies that the ns argument is not a MatchAllNetworkSpecifier and
35 public static void checkNotMatchAllNetworkSpecifier(NetworkSpecifier ns) { argument
36 if (ns instanceof MatchAllNetworkSpecifier) {
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DTetheringInterfaceUtils.java38 public static @Nullable InterfaceSet getTetheringInterfaces(NetworkState ns) { argument
39 if (ns == null) {
43 final LinkProperties lp = ns.linkProperties;
45 final String if6 = getIPv6Interface(ns);
54 public static @Nullable String getIPv6Interface(NetworkState ns) { argument
70 (ns != null) && (ns.network != null) &&
71 (ns.linkProperties != null) && (ns.networkCapabilities != null) &&
73 ns
[all...]
H A DIPv6TetheringCoordinator.java116 public void updateUpstreamNetworkState(NetworkState ns) { argument
118 Log.d(TAG, "updateUpstreamNetworkState: " + toDebugString(ns));
120 if (TetheringInterfaceUtils.getIPv6Interface(ns) == null) {
127 !ns.network.equals(mUpstreamNetworkState.network)) {
131 setUpstreamNetworkState(ns);
141 private void setUpstreamNetworkState(NetworkState ns) { argument
142 if (ns == null) {
148 new LinkProperties(ns.linkProperties),
149 new NetworkCapabilities(ns.networkCapabilities),
150 new Network(ns
297 toDebugString(NetworkState ns) argument
[all...]
H A DUpstreamNetworkMonitor.java225 return typeStatePair.ns;
464 public NetworkState ns = null; field in class:UpstreamNetworkMonitor.TypeStatePair
488 result.ns = value;
499 for (NetworkState ns : netStates) {
500 final LinkProperties lp = ns.linkProperties;
/frameworks/native/services/sensorservice/
H A DCorrectedGyroSensor.cpp75 status_t CorrectedGyroSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument
76 mSensorDevice.setDelay(ident, mGyro.getHandle(), ns);
77 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns);
H A DGravitySensor.cpp82 status_t GravitySensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument
83 return mSensorFusion.setDelay(FUSION_NOMAG, ident, ns);
H A DLinearAccelerationSensor.cpp68 status_t LinearAccelerationSensor::setDelay(void* ident, int handle, int64_t ns) { argument
69 return mGravitySensor.setDelay(ident, handle, ns);
H A DOrientationSensor.cpp78 status_t OrientationSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument
79 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns);
H A DRotationVectorSensor.cpp69 status_t RotationVectorSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument
70 return mSensorFusion.setDelay(mMode, ident, ns);
154 status_t GyroDriftSensor::setDelay(void* ident, int /*handle*/, int64_t ns) { argument
155 return mSensorFusion.setDelay(FUSION_9AXIS, ident, ns);
H A DSensorFusion.cpp159 status_t SensorFusion::setDelay(int mode, void* ident, int64_t ns) { argument
161 if (ns > (int64_t)5e7) {
162 ns = (int64_t)(5e7);
164 mSensorDevice.batch(ident, mAcc.getHandle(), 0, ns, 0);
H A DSensorInterface.cpp75 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument
76 return mSensorDevice.setDelay(ident, handle, ns);
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DStackOverflowXmlParser.java33 private static final String ns = null; field in class:StackOverflowXmlParser
52 parser.require(XmlPullParser.START_TAG, ns, "feed");
86 parser.require(XmlPullParser.START_TAG, ns, "entry");
110 parser.require(XmlPullParser.START_TAG, ns, "title");
112 parser.require(XmlPullParser.END_TAG, ns, "title");
119 parser.require(XmlPullParser.START_TAG, ns, "link");
128 parser.require(XmlPullParser.END_TAG, ns, "link");
134 parser.require(XmlPullParser.START_TAG, ns, "summary");
136 parser.require(XmlPullParser.END_TAG, ns, "summary");
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dclock_ns.h28 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; local
29 return ns;
34 int64_t ns = kNanosPerSecond * (int64_t)t.tv_sec + (int64_t)t.tv_nsec; local
35 return ns;
48 static inline timespec NsToTimespec(int64_t ns) { argument
52 t.tv_sec = ns / kNanosPerSecond;
53 remainder = ns % kNanosPerSecond;
/frameworks/av/media/libcpustats/
H A DThreadCpuUsage.cpp81 bool ThreadCpuUsage::sampleAndEnable(double& ns) argument
86 return sample(ns);
89 ns = (double) mAccumulator;
91 ALOGV("sampleAndEnable %.0f", ns);
95 ns = 0.0;
101 bool ThreadCpuUsage::sample(double &ns) argument
110 ns = 0.0;
121 ns = (double) mAccumulator;
122 ALOGV("sample %.0f", ns);
127 ns
[all...]
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp91 uint32_t ns; local
103 ns = written * ( 500000000 / Format_sampleRate(mFormat));
106 ns = written * ( 750000000 / Format_sampleRate(mFormat));
109 ns = written * (1000000000 / Format_sampleRate(mFormat));
112 ns = written * (1150000000 / Format_sampleRate(mFormat));
115 ns = written * (1350000000 / Format_sampleRate(mFormat));
118 ns = written * (1750000000 / Format_sampleRate(mFormat));
121 ns = count * (1350000000 / Format_sampleRate(mFormat));
123 if (ns > 999999999) {
124 ns
[all...]
/frameworks/base/wifi/java/android/net/wifi/aware/
H A DWifiAwareAgentNetworkSpecifier.java54 public WifiAwareAgentNetworkSpecifier(WifiAwareNetworkSpecifier ns) { argument
56 mNetworkSpecifiers.add(convert(ns));
61 for (WifiAwareNetworkSpecifier ns : nss) {
62 mNetworkSpecifiers.add(convert(ns));
140 public boolean satisfiesAwareNetworkSpecifier(WifiAwareNetworkSpecifier ns) { argument
141 if (VDBG) Log.v(TAG, "satisfiesAwareNetworkSpecifier: ns=" + ns);
142 ByteArrayWrapper nsBytes = convert(ns);
161 private ByteArrayWrapper convert(WifiAwareNetworkSpecifier ns) { argument
167 ns
[all...]
/frameworks/native/libs/sensor/
H A DISensorEventConnection.cpp75 virtual status_t setEventRate(int handle, nsecs_t ns) argument
80 data.writeInt64(ns);
146 nsecs_t ns = data.readInt64(); local
147 status_t result = setEventRate(handle, ns);
/frameworks/av/media/libstagefright/codecs/opus/dec/
H A DSoftOpus.cpp384 static uint64_t ns_to_samples(uint64_t ns, int kRate) { argument
385 return static_cast<double>(ns) * kRate / 1000000000;
/frameworks/base/core/jni/
H A Dandroid_util_XmlBlock.cpp259 jstring ns, jstring name)
269 if (ns) {
270 ns16 = reinterpret_cast<const char16_t*>(env->GetStringChars(ns, NULL));
271 nsLen = env->GetStringLength(ns);
280 if (ns) {
281 env->ReleaseStringChars(ns, reinterpret_cast<const jchar*>(ns16));
257 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jlong token, jstring ns, jstring name) argument
/frameworks/base/native/webview/loader/
H A Dloader.cpp115 android_namespace_t* ns = local
117 if (ns == NULL) {
127 extinfo.library_namespace = ns;
/frameworks/base/tools/bit/
H A Daapt.cpp45 string ns; member in struct:Attribute
52 string ns; member in struct:Element
67 string GetAttr(const string& ns, const string& name) const;
68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse);
85 Element::GetAttr(const string& ns, const string& name) const argument
90 if (attr.ns == ns && attr.name == name) {
98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse) argument
103 if (child->ns == ns
[all...]
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp463 static void* load_updated_driver(const char* kind, android_namespace_t* ns) { argument
467 .library_namespace = ns,
490 android_namespace_t* ns = android_getDriverNamespace(); local
491 if (ns) {
492 dso = load_updated_driver(kind, ns);

Completed in 2211 milliseconds

12