blip  0.1
blip Namespace Reference

WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/. More...

Classes

class  AccelerometerSensorEvent
 An accelerometer sensor event, which measures acceleration, including the effects of gravity. More...
 
class  Asset
 An application asset file. More...
 
class  AssetDataReader
 A DataReader which reads from an Android Asset. More...
 
class  AssetDirectory
 An application asset directory. More...
 
class  AssetManager
 An asset manager, which provides access to the application's raw asset files. More...
 
class  AudioClip
 A container for audio data. More...
 
class  AudioDecoder
 An abstract base class for audio decoders. More...
 
class  AudioEngine
 An audio playback engine. More...
 
class  AudioException
 An exception indicating an error in the audio subsystem. More...
 
class  AudioFormat
 An object that describes an audio data format. More...
 
class  AudioPlayer
 An audio playback object. More...
 
class  AudioPlayerListener
 
class  BinaryObject
 An Android Opaque Binary Blob (OBB) object. More...
 
class  Color
 A color with red, green, blue, and alpha components. More...
 
class  DeviceConfiguration
 A container for device configuration information. More...
 
class  DisplayMetrics
 A utility object with methods for converting between pixel units based on a given screen density. More...
 
class  Event
 An abstract base class for all application events. More...
 
class  Font
 A TrueType font. More...
 
class  FontGlyph
 A TrueType font character glyph. More...
 
class  FontManager
 A class for loading and caching TrueType fonts. More...
 
class  GravitySensorEvent
 A gravity sensor event, which measures the direction and magnitude of gravity. More...
 
class  GyroscopeSensorEvent
 A gyroscope sensor event, which measures angular speed. More...
 
class  ImageDecoder
 An abstract base class for image decoders. More...
 
class  InputEvent
 An abstract base class for user input events. More...
 
class  InputEventQueue
 
class  Intent
 
class  JavaBitmap
 
class  KeyEvent
 A keyboard input event. More...
 
class  LEDArray
 A class representing an LED array. More...
 
class  LightSensorEvent
 A light sensor event, which measures ambient light level. More...
 
class  LinearAccelerationSensorEvent
 A linear acceleration sensor event, which measures acceleration, not including the effects of gravity. More...
 
class  Looper
 Low-level Android event looper. More...
 
class  MagneticFieldSensorEvent
 A magnetic field sensor event, which measures the ambient magnetic field. More...
 
class  MotionEvent
 A motion input event. More...
 
class  MP3AudioDecoder
 An AudioDecoder for MP3 audio clips. More...
 
class  NativeActivity
 An abstract base class for all "native" (C++) Android activities. More...
 
struct  NativeActivityRequest
 
class  Pixmap
 A buffer for two-dimensional pixel data, stored in inverted row order (bottom row first, top row last) as expected by OpenGL. More...
 
class  PNGImageDecoder
 An ImageDecoder for PNG images. More...
 
class  Point
 A cartesian point: a value with x and y coordinates. More...
 
class  PressureSensorEvent
 An atmospheric pressure sensor event, which may be used to calculate altitude. More...
 
class  ProximitySensorEvent
 A proximity sensor event, which measures the distance to a nearby object. More...
 
class  Rectangle
 A rectangle in cartesian space. More...
 
class  RenderingContext
 The native rendering context. More...
 
class  ResourceExhaustedException
 An Exception indicating that all instances of a resource have been exhausted. More...
 
class  RotationVectorSensorEvent
 A rotation vector sensor event, which measures orientation in 3D space. More...
 
class  Runtime
 Miscellaneous runtime functions. More...
 
class  Sensor
 A class representing a sensor. More...
 
class  SensorEvent
 An abstract base class for sensor events. More...
 
class  SensorManager
 A class that provides access to the hardware sensors. More...
 
class  Size
 A rectangular size that has a width and a height. More...
 
class  StorageManager
 
class  TemperatureSensorEvent
 A temperature sensor event, which measures ambient temperature. More...
 
class  TimeoutException
 An exception indicating that a blocking operation has timed out. More...
 
class  Timer
 A timer which fires a TimerEvent at a fixed interval. More...
 
class  TimerEvent
 A timer event. More...
 
class  TimerManager
 A class that manages Timers and schedules TimerEvents for delivery when Timers fire. More...
 
class  Vibrator
 A class representing a vibration (haptic feedback) device. More...
 
class  WAVAudioDecoder
 An AudioDecoder for WAV audio clips. More...
 
class  Window
 A native window. More...
 

Typedefs

typedef uint64_t timespan_us_t
 A time interval, measured in microseconds. More...
 
typedef uint64_t timespan_ns_t
 A time interval, measured in nanoseconds. More...
 
typedef int filedesc_t
 A file descriptor. More...
 
typedef void * NativeContext
 
typedef int8_t TimerID
 

Enumerations

enum  LooperID {
  LOOPER_ID_ACTIVITY = 'A', LOOPER_ID_INPUT = 'I', LOOPER_ID_SENSOR = 'S', LOOPER_ID_TIMER = 'T',
  LOOPER_ID_USB = 'U'
}
 
enum  AssetMode { Mode_Unknown, Mode_Random, Mode_Streaming, Mode_Buffer }
 Asset access modes. More...
 
enum  ScreenType {
  ScreenType_Unknown = -1, ScreenType_Any = 0, ScreenType_NoTouch, ScreenType_Stylus,
  ScreenType_Finger
}
 Touchscreen types. More...
 
enum  ScreenOrient {
  ScreenOrient_Unknown = -1, ScreenOrient_Any = 0, ScreenOrient_Portrait, ScreenOrient_Landscape,
  ScreenOrient_Square
}
 Screen orientations. More...
 
enum  ScreenSize {
  ScreenSize_Unknown = -1, ScreenSize_Any = 0, ScreenSize_Small, ScreenSize_Normal,
  ScreenSize_Large, ScreenSize_ExtraLarge
}
 Screen size categories. More...
 
enum  ScreenAspect { ScreenAspect_Unknown = -1, ScreenAspect_Any = 0, ScreenAspect_Normal, ScreenAspect_Wide }
 Screen aspect ratio categories. More...
 
enum  KeyboardType {
  Keyboard_Unknown = -1, Keyboard_Any = 0, Keyboard_None, Keyboard_QWERTY,
  Keyboard_12Key
}
 Keyboard types. More...
 
enum  KeyboardHidden {
  KeyboardHidden_Unknown = -1, KeyboardHidden_Any = 0, KeyboardHidden_No, KeyboardHidden_Yes,
  KeyboardHidden_Soft
}
 
enum  NavigationType {
  NavType_Unknown = - 1, NavType_Any = 0, NavType_None, NavType_DPad,
  NavType_Trackball, NavType_Wheel
}
 Navigation controls types. More...
 
enum  NavigationHidden { NavHidden_Unknown = -1, NavHidden_Any = 0, NavHidden_No, NavHidden_Yes }
 
enum  UIMode {
  UIMode_Unknown = -1, UIMode_Any = 0, UIMode_Normal, UIMode_Desktop,
  UIMode_Car, UIMode_TV, UIMode_Appliance
}
 Dock modes. More...
 
enum  NightMode { NightMode_Unknown = -1, NightMode_Any = 0, NightMode_No, NightMode_Yes }
 Night modes. More...
 
enum  LayoutDirection { LayoutDir_Unknown = -1, LayoutDir_Any = 0, LayoutDir_LeftToRight = 1, LayoutDir_RightToLeft = 2 }
 Layout directions. More...
 
enum  SDKVersion {
  SDK_Unknown = -1, SDK_Any = 0, SDK_1_0 = 1, SDK_1_1 = 2,
  SDK_1_5 = 3, SDK_1_6 = 4, SDK_2_0 = 5, SDK_2_0_1 = 6,
  SDK_2_1 = 7, SDK_2_2 = 8, SDK_2_3 = 9, SDK_2_3_3 = 10,
  SDK_3_0 = 11, SDK_3_1 = 12, SDK_3_2 = 13, SDK_4_0 = 14,
  SDK_4_0_3 = 15, SDK_4_1 = 16, SDK_4_2 = 17, SDK_4_3 = 18,
  SDK_4_4 = 19, SDK_5_0 = 20, SDK_Newer = 999
}
 Android SDK versions. More...
 
enum  ScreenDensity {
  ScreenDensity_None = -1, ScreenDensity_Default = 0, ScreenDensity_Low = 120, ScreenDensity_Medium = 160,
  ScreenDensity_TV = 213, ScreenDensity_High = 240, ScreenDensity_ExtraHigh = 320, ScreenDensity_ExtraExtraHigh = 480,
  ScreenDensity_ExtraExtraExtraHigh = 640
}
 
enum  RequestType {
  REQ_NONE = 0, REQ_CREATE, REQ_PING, REQ_START,
  REQ_RESUME, REQ_SAVE_INSTANCE_STATE, REQ_PAUSE, REQ_STOP,
  REQ_DESTROY, REQ_WINDOW_FOCUS_CHANGED, REQ_WINDOW_CREATED, REQ_WINDOW_RESIZED,
  REQ_WINDOW_REDRAW_NEEDED, REQ_WINDOW_DESTROYED, REQ_INPUT_QUEUE_CREATED, REQ_INPUT_QUEUE_DESTROYED,
  REQ_CONTENT_RECT_CHANGED, REQ_CONFIGURATION_CHANGED, REQ_LOW_MEMORY
}
 
enum  Accuracy {
  Accuracy_Unknown = -1, Accuracy_Unreliable = 0, Accuracy_Low, Accuracy_Medium,
  Accuracy_High
}
 Sensor accuracy ratings. More...
 

Functions

static void __callbackFunc (const char *filename, const int32_t state, void *data)
 
void blip_main (ANativeActivity *activity, void *savedState, size_t savedStateSize, NativeActivity *object)
 

Variables

static const float ONE_THIRD = 1.0f / 3.0f
 
static const float TWO_THIRDS = 2.0f / 3.0f
 
static const char * LOG_TAG = "TimerManager"
 
static const uint32_t RIFF_TAG = 0x46464952
 
static const uint32_t FMT_TAG = 0x20746d66
 
static const uint32_t DATA_TAG = 0x61746164
 
static const uint32_t WAVE_TAG = 0x45564157
 
static const uint16_t PCM_FORMAT = 1
 

Detailed Description

Typedef Documentation

◆ filedesc_t

typedef int filedesc_t

A file descriptor.

◆ NativeContext

typedef void* NativeContext

◆ TimerID

typedef int8_t TimerID

◆ timespan_ns_t

typedef uint64_t timespan_ns_t

A time interval, measured in nanoseconds.

◆ timespan_us_t

typedef uint64_t timespan_us_t

A time interval, measured in microseconds.

Enumeration Type Documentation

◆ Accuracy

enum Accuracy

Sensor accuracy ratings.

Enumerator
Accuracy_Unknown 
Accuracy_Unreliable 
Accuracy_Low 
Accuracy_Medium 
Accuracy_High 

◆ AssetMode

enum AssetMode

Asset access modes.

Enumerator
Mode_Unknown 

No specific access mode.

Mode_Random 

Random access mode, with both forward and backward seeks.

Mode_Streaming 

Sequential access mode, with occasional forward seeks.

Mode_Buffer 

Fast small reads; the system will attempt to load the entire contents of the asset into memory.

◆ KeyboardHidden

Enumerator
KeyboardHidden_Unknown 
KeyboardHidden_Any 
KeyboardHidden_No 
KeyboardHidden_Yes 
KeyboardHidden_Soft 

◆ KeyboardType

Keyboard types.

Enumerator
Keyboard_Unknown 
Keyboard_Any 
Keyboard_None 
Keyboard_QWERTY 
Keyboard_12Key 

◆ LayoutDirection

Layout directions.

Enumerator
LayoutDir_Unknown 
LayoutDir_Any 
LayoutDir_LeftToRight 
LayoutDir_RightToLeft 

◆ LooperID

enum LooperID
Enumerator
LOOPER_ID_ACTIVITY 
LOOPER_ID_INPUT 
LOOPER_ID_SENSOR 
LOOPER_ID_TIMER 
LOOPER_ID_USB 

◆ NavigationHidden

Enumerator
NavHidden_Unknown 
NavHidden_Any 
NavHidden_No 
NavHidden_Yes 

◆ NavigationType

Navigation controls types.

Enumerator
NavType_Unknown 
NavType_Any 
NavType_None 
NavType_DPad 
NavType_Trackball 
NavType_Wheel 

◆ NightMode

enum NightMode

Night modes.

Enumerator
NightMode_Unknown 
NightMode_Any 
NightMode_No 
NightMode_Yes 

◆ RequestType

Enumerator
REQ_NONE 
REQ_CREATE 
REQ_PING 
REQ_START 
REQ_RESUME 
REQ_SAVE_INSTANCE_STATE 
REQ_PAUSE 
REQ_STOP 
REQ_DESTROY 
REQ_WINDOW_FOCUS_CHANGED 
REQ_WINDOW_CREATED 
REQ_WINDOW_RESIZED 
REQ_WINDOW_REDRAW_NEEDED 
REQ_WINDOW_DESTROYED 
REQ_INPUT_QUEUE_CREATED 
REQ_INPUT_QUEUE_DESTROYED 
REQ_CONTENT_RECT_CHANGED 
REQ_CONFIGURATION_CHANGED 
REQ_LOW_MEMORY 

◆ ScreenAspect

Screen aspect ratio categories.

Enumerator
ScreenAspect_Unknown 
ScreenAspect_Any 
ScreenAspect_Normal 
ScreenAspect_Wide 

◆ ScreenDensity

Enumerator
ScreenDensity_None 
ScreenDensity_Default 

Default density (160 dpi)

ScreenDensity_Low 

Low density (120 dpi)

ScreenDensity_Medium 

Medium density (160 dpi)

ScreenDensity_TV 

TV density (213 dpi)

ScreenDensity_High 

High density (240 dpi)

ScreenDensity_ExtraHigh 

Extra-high density (320 dpi)

ScreenDensity_ExtraExtraHigh 

Extra-extra-high density (480 dpi)

ScreenDensity_ExtraExtraExtraHigh 

Extra-extra-extra-high density (640 dpi)

◆ ScreenOrient

Screen orientations.

Enumerator
ScreenOrient_Unknown 
ScreenOrient_Any 
ScreenOrient_Portrait 
ScreenOrient_Landscape 
ScreenOrient_Square 

◆ ScreenSize

enum ScreenSize

Screen size categories.

Enumerator
ScreenSize_Unknown 
ScreenSize_Any 
ScreenSize_Small 
ScreenSize_Normal 
ScreenSize_Large 
ScreenSize_ExtraLarge 

◆ ScreenType

enum ScreenType

Touchscreen types.

Enumerator
ScreenType_Unknown 
ScreenType_Any 
ScreenType_NoTouch 
ScreenType_Stylus 
ScreenType_Finger 

◆ SDKVersion

enum SDKVersion

Android SDK versions.

Enumerator
SDK_Unknown 
SDK_Any 
SDK_1_0 

1.0

SDK_1_1 

1.1

SDK_1_5 

Cupcake.

SDK_1_6 

Donut.

SDK_2_0 

Eclair.

SDK_2_0_1 

Eclair.

SDK_2_1 

Eclair.

SDK_2_2 

Froyo.

SDK_2_3 

Gingerbread.

SDK_2_3_3 

Gingerbread.

SDK_3_0 

Honeycomb.

SDK_3_1 

Honeycomb.

SDK_3_2 

Honeycomb.

SDK_4_0 

Ice Cream Sandwich.

SDK_4_0_3 

Ice Cream Sandwich.

SDK_4_1 

Jelly Bean.

SDK_4_2 

Jelly Bean.

SDK_4_3 

Jelly Bean.

SDK_4_4 

Jelly Bean.

SDK_5_0 

Lemon Meringue Pie.

SDK_Newer 

Unknown newer version.

◆ UIMode

enum UIMode

Dock modes.

Enumerator
UIMode_Unknown 
UIMode_Any 
UIMode_Normal 
UIMode_Desktop 
UIMode_Car 
UIMode_TV 
UIMode_Appliance 

Function Documentation

◆ __callbackFunc()

static void blip::__callbackFunc ( const char *  filename,
const int32_t  state,
void *  data 
)
static

◆ blip_main()

void blip::blip_main ( ANativeActivity *  activity,
void *  savedState,
size_t  savedStateSize,
NativeActivity object 
)

Variable Documentation

◆ DATA_TAG

const uint32_t DATA_TAG = 0x61746164
static

◆ FMT_TAG

const uint32_t FMT_TAG = 0x20746d66
static

◆ LOG_TAG

const char* LOG_TAG = "TimerManager"
static

◆ ONE_THIRD

const float ONE_THIRD = 1.0f / 3.0f
static

◆ PCM_FORMAT

const uint16_t PCM_FORMAT = 1
static

◆ RIFF_TAG

const uint32_t RIFF_TAG = 0x46464952
static

◆ TWO_THIRDS

const float TWO_THIRDS = 2.0f / 3.0f
static

◆ WAVE_TAG

const uint32_t WAVE_TAG = 0x45564157
static