Searched refs:ns (Results 1 - 25 of 77) sorted by relevance

1234

/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...]
/frameworks/base/media/java/android/media/audiofx/
H A DNoiseSuppressor.java64 NoiseSuppressor ns = null;
66 ns = new NoiseSuppressor(audioSession);
68 Log.w(TAG, "not implemented on this device "+ns);
74 return ns;
/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/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/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/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/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/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/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/av/include/cpustats/
H A DThreadCpuUsage.h26 // Units are in per-thread CPU ns, as reported by
79 // then adds a sample for tracked CPU ns since the previous
82 // now disabled, then adds a sample for the tracked CPU ns accumulated
86 // Returns true if the sample 'ns' is valid, or false if invalid.
87 // Note that 'ns' is an output parameter passed by reference.
90 bool sampleAndEnable(double& ns);
95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since
99 // Note that 'ns' is an output parameter passed by reference.
102 bool sample(double& ns);
104 // Return the elapsed delta wall clock ns sinc
[all...]
/frameworks/av/media/libcpustats/include/cpustats/
H A DThreadCpuUsage.h26 // Units are in per-thread CPU ns, as reported by
79 // then adds a sample for tracked CPU ns since the previous
82 // now disabled, then adds a sample for the tracked CPU ns accumulated
86 // Returns true if the sample 'ns' is valid, or false if invalid.
87 // Note that 'ns' is an output parameter passed by reference.
90 bool sampleAndEnable(double& ns);
95 // and don't add sample. Otherwise, adds a sample for tracked CPU ns since
99 // Note that 'ns' is an output parameter passed by reference.
102 bool sample(double& ns);
104 // Return the elapsed delta wall clock ns sinc
[all...]
/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);
/frameworks/native/services/sensorservice/
H A DOrientationSensor.h39 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
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 DCorrectedGyroSensor.h41 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
H A DGravitySensor.h41 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
H A DLinearAccelerationSensor.h43 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
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 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.h40 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
64 virtual status_t setDelay(void* ident, int handle, int64_t ns) override;
H A DSensorInterface.cpp75 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument
76 return mSensorDevice.setDelay(ident, handle, ns);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
H A DWifiAwareDataPathStateManager.java1029 void updateToSupportNewRequest(WifiAwareNetworkSpecifier ns) { argument
1030 if (VDBG) Log.v(TAG, "updateToSupportNewRequest: ns=" + ns);
1031 if (equivalentSpecifiers.add(ns) && state == STATE_CONFIRMED) {
1041 void removeSupportForRequest(WifiAwareNetworkSpecifier ns) { argument
1042 if (VDBG) Log.v(TAG, "removeSupportForRequest: ns=" + ns);
1043 equivalentSpecifiers.remove(ns);
1065 static AwareNetworkRequestInformation processNetworkSpecifier(WifiAwareNetworkSpecifier ns, argument
1071 byte[] peerMac = ns
[all...]

Completed in 3176 milliseconds

1234