Following methods are in dreamConstants file. From where they got these
constants? From which file they read it?
public double wifiHighPower() {
return 720;
}
public double wifiLowHighTransition() {
return 15;
}
public double wifiHighLowTransition() {
return 8;
}
private static final double[] arrayWifiLinkRatios = {
47.122645, 46.354821, 43.667437, 43.283525, 40.980053, 39.44422,
38.676581,
34.069637, 29.462693, 20.248805, 11.034917, 6.427122
};
private static final double[] arrayWifiLinkSpeeds = {
1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54
};
On Tue, Aug 28, 2012 at 12:59 AM, bob <[email protected]> wrote:
>
> Like this?
>
>
>
> /* Uids as listed in android_filesystem_config.h */
> public static final int AID_ALL = -1; /* A special constant we
> will
> * use to indicate a
> request
> * for global
> information. */
> public static final int AID_ROOT = 0; /* traditional unix root
> user
> */
> public static final int AID_SYSTEM = 1000; /* system server */
> public static final int AID_RADIO = 1001; /* telephony subsystem,
> RIL */
> public static final int AID_BLUETOOTH = 1002; /* bluetooth subsystem */
> public static final int AID_GRAPHICS = 1003; /* graphics devices */
> public static final int AID_INPUT = 1004; /* input devices */
> public static final int AID_AUDIO = 1005; /* audio devices */
> public static final int AID_CAMERA = 1006; /* camera devices */
> public static final int AID_LOG = 1007; /* log devices */
> public static final int AID_COMPASS = 1008; /* compass device */
> public static final int AID_MOUNT = 1009; /* mountd socket */
> public static final int AID_WIFI = 1010; /* wifi subsystem */
> public static final int AID_ADB = 1011; /* android debug bridge
> (adbd) */
> public static final int AID_INSTALL = 1012; /* group for installing
> packages */
> public static final int AID_MEDIA = 1013; /* mediaserver process */
> public static final int AID_DHCP = 1014; /* dhcp client */
> public static final int AID_SHELL = 2000; /* adb and debug shell
> user */
> public static final int AID_CACHE = 2001; /* cache access */
> public static final int AID_DIAG = 2002; /* access to diagnostic
> resources */
> /* The 3000 series are intended for use as supplemental group id's only.
> * They indicate special Android capabilities that the kernel is aware
> of. */
> public static final int AID_NET_BT_ADMIN= 3001; /* bluetooth: create any
> socket */
> public static final int AID_NET_BT = 3002; /* bluetooth: create sco,
> rfcomm or l2cap
> sockets */
> public static final int AID_INET = 3003; /* can create AF_INET and
> AF_INET6 sockets */
> public static final int AID_NET_RAW = 3004; /* can create raw INET
> sockets
> */
> public static final int AID_MISC = 9998; /* access to misc
> storage */
> public static final int AID_NOBODY = 9999;
> public static final int AID_APP =10000; /* first app user */
>
>
> It's probably *AIDL*.
>
> http://developer.android.com/guide/components/aidl.html
>
>
> On Monday, August 27, 2012 7:59:03 AM UTC-5, thejaswi s wrote:
>>
>> I was just going through powertutor source code and found
>> many constants related to WiFi, CPU and LCD components. I can understand
>> the flow but not getting about these constants.I am curious to know about
>> this. Where these constants are derived from ? what are the standard
>> values? etc.. Please point me to the link where I can get these
>> information. Please do reply.
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en